Please link against libbsd, now that it has been available in stable
for quite a while, instead of glib.
Some day, libbsd may get upped to important (I hope), so that this
can replace netcat-traditional and netcat6 at once. It’s also much
more lightweight a dependency AND the “original source” of strlcpy
and friends AND will probably require a much smaller patch only.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-6-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh
Versions of packages netcat-openbsd depends on:
ii libc6 2.9-27 GNU C Library: Shared libraries
ii libglib2.0-0 2.22.2-2 The GLib library of C routines
netcat-openbsd recommends no packages.
netcat-openbsd suggests no packages.
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Hi!
On Sun, 2009-10-11 at 15:12:02 +0000, Thorsten Glaser wrote:
> Package: netcat-openbsd
> Severity: wishlist
>
> Please link against libbsd, now that it has been available in stable
> for quite a while, instead of glib.
>
> Some day, libbsd may get upped to important (I hope), so that this
> can replace netcat-traditional and netcat6 at once. It’s also much
> more lightweight a dependency AND the “original source” of strlcpy
> and friends AND will probably require a much smaller patch only.
Here's a patch to switch to libbsd. I've added few functions needed by
netcat-openbsd on the last upstream release so this helps in reducing
the delta with upstream. If there's more stuff you need in the future
please request it and I'll consider its addition.
Here's a summary of the changes:
* no-strtonum.patch: Remove, use strtonum from libbsd.
* openbsd-compat.patch: Remove, use readpassphrase from libbsd.
* quit-timer.patch: Change to use strtonum instead of strtoul.
* gcc-warnings.patch: Refreshed to take into account no-strotonum
patch removal.
* getservbyname.patch: Likewise.
* glib-strlcpy.patch: Remove hunks related to glib conversion
(strlcpy and arc4random) as those are now from libbsd. Remaining
changes are unrelated to glib, so rename to ...
* disable-setsockopts.patch: ... this.
* socks-b64-prototype.patch: Remove, not strictly libbsd related, but
as I was at it, switch to use the function from <resolv.h> which
requires to link against -lresolv on GNU systems, and avoids using
the local embedded code.
* bsd-compat.patch: New. This one should be obvious given the previous.
regards,
guillem
Wonderful, thanks. I'll apply this.
--
things change.
dec...@red-bean.com