Message ID | 20161018080454.4775-2-ng0@we.make.ritual.n0.is |
---|---|
State | New |
Headers |
Received: (qmail 33305 invoked by uid 89); 18 Oct 2016 08:05:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=47, 7, downstream, UD:it X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Oct 2016 08:05:47 +0000 Received: from localhost ([::1]:39463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bwPP8-00009W-0g for patchwork@sourceware.org; Tue, 18 Oct 2016 04:05:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ng0@we.make.ritual.n0.is>) id 1bwPOm-0008Pz-4D for guix-devel@gnu.org; Tue, 18 Oct 2016 04:05:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ng0@we.make.ritual.n0.is>) id 1bwPOl-0008PO-3F for guix-devel@gnu.org; Tue, 18 Oct 2016 04:05:24 -0400 Received: from aibo.runbox.com ([91.220.196.211]:42746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <ng0@we.make.ritual.n0.is>) id 1bwPOk-0008Ox-Sn for guix-devel@gnu.org; Tue, 18 Oct 2016 04:05:23 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from <ng0@we.make.ritual.n0.is>) id 1bwPOj-0002bc-S6 for guix-devel@gnu.org; Tue, 18 Oct 2016 10:05:21 +0200 Received: from x5d83fab7.dyn.telefonica.de ([93.131.250.183] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bwPOP-0005gm-4f; Tue, 18 Oct 2016 10:05:01 +0200 From: ng0 <ng0@we.make.ritual.n0.is> To: guix-devel@gnu.org Subject: [PATCH] gnu: Add whois. Date: Tue, 18 Oct 2016 08:04:54 +0000 Message-Id: <20161018080454.4775-2-ng0@we.make.ritual.n0.is> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161018080454.4775-1-ng0@we.make.ritual.n0.is> References: <20161018080454.4775-1-ng0@we.make.ritual.n0.is> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 91.220.196.211 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
non such
Oct. 18, 2016, 8:04 a.m. UTC
* gnu/packages/networking.scm (whois): New variable. --- gnu/packages/networking.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)
Comments
ng0 <ng0@we.make.ritual.n0.is> writes:
> * gnu/packages/networking.scm (whois): New variable.
Thanks! This works for me. I have a couple of remarks that can be added
before committing if you agree, no need to send an updated patch.
* The source headers seems to indicate that this is GPL2+.
* The only reference to this program on the home page is a link to
GitHub, do you think we should use that as home-page?
* Gettext only seems used for building locales and is not referenced at
runtime, perhaps it should be a native-input?
* The Debian package is built with HAVE_ICONV=1, should we set that too?
Additionally it installs locales, but looks for /usr/share/locale at
runtime. Fixing this would probably require upstream help, I don't want
to hardcode either "/run/current-system/locale" or ~/.guix-profile. The
current version probably works on foreign distros, if nothing else.
Are these changes sensible?
Marius Bakke <mbakke@fastmail.com> writes: > ng0 <ng0@we.make.ritual.n0.is> writes: > >> * gnu/packages/networking.scm (whois): New variable. > > Thanks! This works for me. I have a couple of remarks that can be added > before committing if you agree, no need to send an updated patch. > > * The source headers seems to indicate that this is GPL2+. > * The only reference to this program on the home page is a link to > GitHub, do you think we should use that as home-page? > * Gettext only seems used for building locales and is not referenced at > runtime, perhaps it should be a native-input? Ok. > * The Debian package is built with HAVE_ICONV=1, should we set that too? I can send an updated patch with libiconv in the inputs. This is when you use a libc which does not provide a (usable) iconv, which is why Gentoo provides the option to build it with this too. As we are _currently_ only providing options to do one libc globally this is not so inmportant. I will even build uclibc-ng (I am working on that) with an outside iconv because reportedly their iconv is in bad shape. So with this information, should I send a new patch which adds libiconv and the build option? > Additionally it installs locales, but looks for /usr/share/locale at > runtime. Fixing this would probably require upstream help, I don't want > to hardcode either "/run/current-system/locale" or ~/.guix-profile. The > current version probably works on foreign distros, if nothing else. If you know how to fix it, try to bring it to upstream or include a patch / substitute phase at our end? > Are these changes sensible? >
ng0 <ng0@we.make.ritual.n0.is> writes: >> * The Debian package is built with HAVE_ICONV=1, should we set that too? > > I can send an updated patch with libiconv in the inputs. This is when > you use a libc which does not provide a (usable) iconv, which is why > Gentoo provides the option to build it with this too. As we are > _currently_ only providing options to do one libc globally this is not > so inmportant. I will even build uclibc-ng (I am working on that) with > an outside iconv because reportedly their iconv is in bad shape. > > So with this information, should I send a new patch which adds libiconv > and the build option? Since we only support glibc at the moment, I don't think adding a package for libiconv first is necessary. On the other hand, if it can cause problems on other libc's, it's nice to use an external one. IMO adding libiconv as input is something that can be done later, when there is an actual need for it. I guess there are more packages that will require it. But I don't really mind either way :) >> Additionally it installs locales, but looks for /usr/share/locale at >> runtime. Fixing this would probably require upstream help, I don't want >> to hardcode either "/run/current-system/locale" or ~/.guix-profile. The >> current version probably works on foreign distros, if nothing else. > > If you know how to fix it, try to bring it to upstream or include a > patch / substitute phase at our end? I tried patching whois.c to use the glibc default in the call to bindtextdomain(3), instead of the LOCALEDIR build option. That almost worked: it searches the system locales, but also expect to find the translation files there. I'll see if I can cook up a fix for upstream, but don't think this should hold back the package.
Marius Bakke <mbakke@fastmail.com> writes: > ng0 <ng0@we.make.ritual.n0.is> writes: > >>> * The Debian package is built with HAVE_ICONV=1, should we set that too? >> >> I can send an updated patch with libiconv in the inputs. This is when >> you use a libc which does not provide a (usable) iconv, which is why >> Gentoo provides the option to build it with this too. As we are >> _currently_ only providing options to do one libc globally this is not >> so inmportant. I will even build uclibc-ng (I am working on that) with >> an outside iconv because reportedly their iconv is in bad shape. >> >> So with this information, should I send a new patch which adds libiconv >> and the build option? > > Since we only support glibc at the moment, I don't think adding a > package for libiconv first is necessary. On the other hand, if it can > cause problems on other libc's, it's nice to use an external one. > > IMO adding libiconv as input is something that can be done later, when > there is an actual need for it. I guess there are more packages that > will require it. But I don't really mind either way :) > >>> Additionally it installs locales, but looks for /usr/share/locale at >>> runtime. Fixing this would probably require upstream help, I don't want >>> to hardcode either "/run/current-system/locale" or ~/.guix-profile. The >>> current version probably works on foreign distros, if nothing else. >> >> If you know how to fix it, try to bring it to upstream or include a >> patch / substitute phase at our end? > > I tried patching whois.c to use the glibc default in the call to > bindtextdomain(3), instead of the LOCALEDIR build option. That almost > worked: it searches the system locales, but also expect to find the > translation files there. I'll see if I can cook up a fix for upstream, > but don't think this should hold back the package. > I think we can bundle the patch until it/if gets accepts at all by upstream.
ng0 <ng0@we.make.ritual.n0.is> writes: > Marius Bakke <mbakke@fastmail.com> writes: > >> ng0 <ng0@we.make.ritual.n0.is> writes: >> >>> * gnu/packages/networking.scm (whois): New variable. >> >> Thanks! This works for me. I have a couple of remarks that can be added >> before committing if you agree, no need to send an updated patch. >> >> * The source headers seems to indicate that this is GPL2+. >> * The only reference to this program on the home page is a link to >> GitHub, do you think we should use that as home-page? >> * Gettext only seems used for building locales and is not referenced at >> runtime, perhaps it should be a native-input? > > Ok. > >> * The Debian package is built with HAVE_ICONV=1, should we set that too? > > I can send an updated patch with libiconv in the inputs. This is when > you use a libc which does not provide a (usable) iconv, which is why > Gentoo provides the option to build it with this too. As we are > _currently_ only providing options to do one libc globally this is not > so inmportant. I will even build uclibc-ng (I am working on that) with > an outside iconv because reportedly their iconv is in bad shape. I have my uclibc-ng system not booted: When I specify libiconv in the inputs, shouldn't it get reported by ldd? ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ls mkpasswd whois ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd whois linux-vdso.so.1 (0x00007ffcd84fe000) libidn.so.11 => /gnu/store/sbj1kgn8bs91bn7ba9qk4n3l2rr7dxbr-libidn-1.32/lib/libidn.so.11 (0x00007f311084e000) libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007f3110638000) libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007f3110296000) /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007f3110a81000) ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd mkpasswd linux-vdso.so.1 (0x00007ffed81c7000) libcrypt.so.1 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libcrypt.so.1 (0x00007fc0328e5000) libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fc0326cf000) libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007fc03232d000) /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007fc032b1c000) > So with this information, should I send a new patch which adds libiconv > and the build option? > >> Additionally it installs locales, but looks for /usr/share/locale at >> runtime. Fixing this would probably require upstream help, I don't want >> to hardcode either "/run/current-system/locale" or ~/.guix-profile. The >> current version probably works on foreign distros, if nothing else. > > If you know how to fix it, try to bring it to upstream or include a > patch / substitute phase at our end? > >> Are these changes sensible? >> > >
ng0 <ng0@we.make.ritual.n0.is> writes: > I have my uclibc-ng system not booted: When I specify libiconv in the > inputs, shouldn't it get reported by ldd? > > ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ls > mkpasswd whois > ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd whois > linux-vdso.so.1 (0x00007ffcd84fe000) > libidn.so.11 => /gnu/store/sbj1kgn8bs91bn7ba9qk4n3l2rr7dxbr-libidn-1.32/lib/libidn.so.11 (0x00007f311084e000) > libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007f3110638000) > libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007f3110296000) > /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007f3110a81000) > ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd mkpasswd > linux-vdso.so.1 (0x00007ffed81c7000) > libcrypt.so.1 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libcrypt.so.1 (0x00007fc0328e5000) > libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fc0326cf000) > libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007fc03232d000) > /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007fc032b1c000) I'm guessing it silently picks the glibc one. FWIW the Gentoo ebuild does the same thing. Does uclibc-ng provide an iconv interface at all? Maybe it can be circumvented by having [libc implementation] propagate libiconv, instead of adding it as a direct input to packages.
Marius Bakke <mbakke@fastmail.com> writes: > ng0 <ng0@we.make.ritual.n0.is> writes: > > >> I have my uclibc-ng system not booted: When I specify libiconv in the >> inputs, shouldn't it get reported by ldd? >> >> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ls >> mkpasswd whois >> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd whois >> linux-vdso.so.1 (0x00007ffcd84fe000) >> libidn.so.11 => /gnu/store/sbj1kgn8bs91bn7ba9qk4n3l2rr7dxbr-libidn-1.32/lib/libidn.so.11 (0x00007f311084e000) >> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007f3110638000) >> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007f3110296000) >> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007f3110a81000) >> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd mkpasswd >> linux-vdso.so.1 (0x00007ffed81c7000) >> libcrypt.so.1 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libcrypt.so.1 (0x00007fc0328e5000) >> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fc0326cf000) >> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007fc03232d000) >> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007fc032b1c000) > > I'm guessing it silently picks the glibc one. FWIW the Gentoo ebuild > does the same thing. That is if your toolchain is glibc based. I have no uclibc-ng or musl gentoo system at the moment to check this. > Does uclibc-ng provide an iconv interface at all? Yes, but so far I wasn't able to get a response by the hardened project to get a comment on their "the iconv of uclibc and uclibc-ng is horrible at the moment" comment.. so I'll ask on gentoo-dev list about this, irc didn't work. > Maybe it can be circumvented by having [libc implementation] propagate > libiconv, instead of adding it as a direct input to packages. Possibly. I'm not yet at the point where I can build a system I like with this.
ng0 <ng0@we.make.ritual.n0.is> writes: > Marius Bakke <mbakke@fastmail.com> writes: > >> ng0 <ng0@we.make.ritual.n0.is> writes: >> >> >>> I have my uclibc-ng system not booted: When I specify libiconv in the >>> inputs, shouldn't it get reported by ldd? >>> >>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ls >>> mkpasswd whois >>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd whois >>> linux-vdso.so.1 (0x00007ffcd84fe000) >>> libidn.so.11 => /gnu/store/sbj1kgn8bs91bn7ba9qk4n3l2rr7dxbr-libidn-1.32/lib/libidn.so.11 (0x00007f311084e000) >>> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007f3110638000) >>> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007f3110296000) >>> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007f3110a81000) >>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd mkpasswd >>> linux-vdso.so.1 (0x00007ffed81c7000) >>> libcrypt.so.1 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libcrypt.so.1 (0x00007fc0328e5000) >>> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fc0326cf000) >>> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007fc03232d000) >>> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007fc032b1c000) >> >> I'm guessing it silently picks the glibc one. FWIW the Gentoo ebuild >> does the same thing. > > That is if your toolchain is glibc based. I have no uclibc-ng or musl > gentoo system at the moment to check this. > >> Does uclibc-ng provide an iconv interface at all? > > Yes, but so far I wasn't able to get a response by the hardened project > to get a comment on their "the iconv of uclibc and uclibc-ng is horrible > at the moment" comment.. so I'll ask on gentoo-dev list about this, irc > didn't work. > >> Maybe it can be circumvented by having [libc implementation] propagate >> libiconv, instead of adding it as a direct input to packages. > > Possibly. I'm not yet at the point where I can build a system I like > with this. I'm happy to commit this package now with the changes mentioned earlier, if that's okay with you. Making it use an external iconv library feels like "premature optimization", since it works fine with what we have.
Marius Bakke <mbakke@fastmail.com> writes: > ng0 <ng0@we.make.ritual.n0.is> writes: > >> Marius Bakke <mbakke@fastmail.com> writes: >> >>> ng0 <ng0@we.make.ritual.n0.is> writes: >>> >>> >>>> I have my uclibc-ng system not booted: When I specify libiconv in the >>>> inputs, shouldn't it get reported by ldd? >>>> >>>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ls >>>> mkpasswd whois >>>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd whois >>>> linux-vdso.so.1 (0x00007ffcd84fe000) >>>> libidn.so.11 => /gnu/store/sbj1kgn8bs91bn7ba9qk4n3l2rr7dxbr-libidn-1.32/lib/libidn.so.11 (0x00007f311084e000) >>>> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007f3110638000) >>>> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007f3110296000) >>>> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007f3110a81000) >>>> ng0@shadowwalker /gnu/store/fkkvgiqa0x01j6cxipddmn7k20hax1xn-whois-5.2.12/bin$ ldd mkpasswd >>>> linux-vdso.so.1 (0x00007ffed81c7000) >>>> libcrypt.so.1 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libcrypt.so.1 (0x00007fc0328e5000) >>>> libgcc_s.so.1 => /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fc0326cf000) >>>> libc.so.6 => /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6 (0x00007fc03232d000) >>>> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/ld-linux-x86-64.so.2 (0x00007fc032b1c000) >>> >>> I'm guessing it silently picks the glibc one. FWIW the Gentoo ebuild >>> does the same thing. >> >> That is if your toolchain is glibc based. I have no uclibc-ng or musl >> gentoo system at the moment to check this. >> >>> Does uclibc-ng provide an iconv interface at all? >> >> Yes, but so far I wasn't able to get a response by the hardened project >> to get a comment on their "the iconv of uclibc and uclibc-ng is horrible >> at the moment" comment.. so I'll ask on gentoo-dev list about this, irc >> didn't work. >> >>> Maybe it can be circumvented by having [libc implementation] propagate >>> libiconv, instead of adding it as a direct input to packages. >> >> Possibly. I'm not yet at the point where I can build a system I like >> with this. > > I'm happy to commit this package now with the changes mentioned earlier, > if that's okay with you. Making it use an external iconv library feels > like "premature optimization", since it works fine with what we have. Yes, okay for me.
ng0 <ng0@we.make.ritual.n0.is> writes:
> * gnu/packages/networking.scm (whois): New variable.
I pushed the updated version of this as
9c798f9036d2d3f90e567052efb06b269c08ed14 with a minor modification to
the description.
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 4b77aad..eb0f3de 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -47,6 +47,7 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) + #:use-module (gnu packages libidn) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages mit-krb5) @@ -423,6 +424,43 @@ and up to 1 Mbit/s downstream.") ;; src/md5.[ch] is released under the zlib license (license (list license:isc license:zlib)))) +(define-public whois + (package + (name "whois") + (version "5.2.12") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://debian/pool/main/w/whois/" + name "_" version ".tar.xz")) + (sha256 + (base32 + "1wfdyqi64l5x56j259jrrlbh19b7q7i6r83a8q8rjzcqp0kl0vdj")))) + (build-system gnu-build-system) + ;; TODO: unbundle mkpasswd binary + its po files. + (arguments + `(#:tests? #f ; Does not exist + #:make-flags (list "CC=gcc" + (string-append "prefix=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No configure + (add-before 'build 'setenv + (lambda _ + (setenv "HAVE_LIBIDN" "1")))))) + (inputs + `(("libidn" ,libidn) + ("gnu-gettext" ,gnu-gettext))) + (native-inputs + `(("perl" ,perl))) + (synopsis "Improved whois client") + (description "This whois client is intelligent and can +automatically select the appropriate whois server for most queries. +Because of historic reasons this also includes a software to +encrypt a password with crypt.") + (home-page "http://www.linux.it/~md/software/") + (license license:gpl2))) + (define-public wireshark (package (name "wireshark")