Bug#816352: qjackctl: FTBFS[!linux]: gethostname undeclared

Steven Chamberlain steven at pyro.eu.org
Tue Mar 1 03:53:52 UTC 2016


Package: qjackctl
Version: 0.4.1-1
Severity: important
Tags: patch

Hi,

qjackctl stopped building on kfreebsd and hurd with upstream version
0.4.1.  I've attached a patch which also explains the regression:

    Upstream commit 5e9eb4e32a1233ca92ec3684c357cec33a38d18b
    removed #include <unistd.h>, but this source file uses
    gethostname() if CONFIG_X11 and CONFIG_XUNIQUE are defined.
    
    On Linux the ALSA headers include unistd.h anyway, but this
    broke the build on Debian GNU/kFreeBSD and Hurd.
    
    So, add this back in, guarded by those macros just in case
    some platforms don't have or need it.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-unistd.h-again.patch
Type: text/x-diff
Size: 1004 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20160301/a6de16cc/attachment.patch>


More information about the pkg-multimedia-maintainers mailing list