1 |
On 2023-01-13 15:45, Joonas Niilola wrote: |
2 |
> I've merged your rssguard contributions, thanks! Some problems with tin |
3 |
> below: |
4 |
> |
5 |
> On 12.1.2023 12.32, Anna Vyalkova wrote: |
6 |
> > In this episode: |
7 |
> > |
8 |
> > net-nntp/tin/Manifest | 1 + |
9 |
> > net-nntp/tin/metadata.xml | 19 +++--- |
10 |
> > net-nntp/tin/tin-2.6.2.ebuild | 108 ++++++++++++++++++++++++++++++++++ |
11 |
> > 3 files changed, 120 insertions(+), 8 deletions(-) |
12 |
> > create mode 100644 net-nntp/tin/tin-2.6.2.ebuild |
13 |
> > |
14 |
> > + |
15 |
> > +src_configure() { |
16 |
> > + tc-export AR CC RANLIB |
17 |
> > + tc-export_build_env |
18 |
> > + |
19 |
> > + local myeconfargs=( |
20 |
> > + $(use_enable cancel-locks) $(use_with cancel-locks canlock) |
21 |
> |
22 |
> Can we single-line this please? |
23 |
> |
24 |
> > + $(use_enable debug) |
25 |
> > + $(use_enable gpg pgp-gpg) |
26 |
> > + $(use_enable nls) |
27 |
> > + $(use_with pcre2 pcre2-config) |
28 |
> > + $(use_with !pcre2 pcre "${ESYSROOT}"/usr) |
29 |
> > + $(use_with socks5 socks) $(use_with socks5) |
30 |
> |
31 |
> This too. I don't mind if you separate these from the others via |
32 |
> newlines, e.g. |
33 |
> |
34 |
> $(use_enable cancel-locks) |
35 |
> $(use_with cancel-locks canlock) |
36 |
> |
37 |
> $(use_enable debug) |
38 |
> $(use_enable gpg pgp-gpg) |
39 |
> $(use_enable nls) |
40 |
> ... |
41 |
> |
42 |
> but this current way was surprisingly hard to read (since I've never |
43 |
> seen such being used). |
44 |
|
45 |
Fixed both! |
46 |
|
47 |
> > + --disable-mime-strict-charset |
48 |
> > + --enable-nntp-only |
49 |
> > + --enable-prototypes |
50 |
> > + --with-coffee # easter egg :) |
51 |
> > + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}" |
52 |
> > + --with-screen=ncursesw |
53 |
> > + ) |
54 |
> > + |
55 |
> |
56 |
> I had a build failure with |
57 |
> USE="cancel-locks gnutls sasl socks5 ssl -debug -gpg -libtls -nls |
58 |
> -openssl -pcre2": |
59 |
|
60 |
This is a bug, I'll report it upstream. USE="debug" is needed for gnutls |
61 |
support (because of ifdefs). Added to REQUIRED_USE. |
62 |
|
63 |
> >>> Install net-nntp/tin-2.6.2 into |
64 |
> /var/tmp/portage/net-nntp/tin-2.6.2/image |
65 |
> make -j32 DESTDIR=/var/tmp/portage/net-nntp/tin-2.6.2/image install |
66 |
> make[1]: Entering directory |
67 |
> '/var/tmp/portage/net-nntp/tin-2.6.2/work/tin-2.6.2/src' |
68 |
> mkdir -p /var/tmp/portage/net-nntp/tin-2.6.2/image/usr/bin |
69 |
> make[2]: Entering directory |
70 |
> '/var/tmp/portage/net-nntp/tin-2.6.2/work/tin-2.6.2/src' |
71 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
72 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
73 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
74 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
75 |
> -frecord-gcc-switches -c ./nntps.c |
76 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
77 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
78 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
79 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
80 |
> -frecord-gcc-switches -c ./sigfile.c |
81 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
82 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
83 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
84 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
85 |
> -frecord-gcc-switches -c ./signal.c |
86 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
87 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
88 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
89 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
90 |
> -frecord-gcc-switches -c ./strftime.c |
91 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
92 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
93 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
94 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
95 |
> -frecord-gcc-switches -c ./string.c |
96 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
97 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
98 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
99 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
100 |
> -frecord-gcc-switches -c ./tags.c |
101 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
102 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
103 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
104 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
105 |
> -frecord-gcc-switches -c ./tcurses.c |
106 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
107 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
108 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
109 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
110 |
> -frecord-gcc-switches -c ./tmpfile.c |
111 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
112 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
113 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
114 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
115 |
> -frecord-gcc-switches -c ./thread.c |
116 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
117 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
118 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
119 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
120 |
> -frecord-gcc-switches -c ./version.c |
121 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
122 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
123 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
124 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
125 |
> -frecord-gcc-switches -c ./wildmat.c |
126 |
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include |
127 |
> -DLOCALEDIR=\"/usr/share/locale\" -I../include -D_DEFAULT_SOURCE |
128 |
> -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED |
129 |
> -I/usr/include/libcanlock-3 -march=native -O2 -pipe |
130 |
> -frecord-gcc-switches -c ./xref.c |
131 |
> ./nntps.c: In function 'tintls_open': |
132 |
> ./nntps.c:281:53: error: 'verification_func' undeclared (first use in |
133 |
> this function) |
134 |
> 281 | gnutls_session_set_verify_function(client, |
135 |
> &verification_func); |
136 |
> | |
137 |
> ^~~~~~~~~~~~~~~~~ |
138 |
> ./nntps.c:281:53: note: each undeclared identifier is reported only once |
139 |
> for each function it appears in |
140 |
> make[2]: *** [Makefile:301: nntps.o] Error 1 |
141 |
> make[2]: *** Waiting for unfinished jobs.... |
142 |
> make[2]: Leaving directory |
143 |
> '/var/tmp/portage/net-nntp/tin-2.6.2/work/tin-2.6.2/src' |
144 |
> make[1]: *** [Makefile:417: install] Error 2 |
145 |
> make[1]: Leaving directory |
146 |
> '/var/tmp/portage/net-nntp/tin-2.6.2/work/tin-2.6.2/src' |
147 |
> make: *** [Makefile:415: install] Error 2 |
148 |
> * ERROR: net-nntp/tin-2.6.2::gentoo failed (install phase): |
149 |
> * emake failed |
150 |
> |
151 |
> Could you take a look? It's happening in install phase which is a bit weird. |
152 |
> |
153 |
> |
154 |
> |
155 |
> -- juippis |
156 |
> |
157 |
|
158 |
Thanks for review :) |