Re: kFreeBSD future
Steven Chamberlain ste...@pyro.eu.org writes: On 30/09/14 21:48, Christoph Egger wrote: There's some thing with mesa complaining about my graphics card not supported before linux 3.4 [0] but then IIRC it broke in between two kfreebsd 10.1 snapshots? You may want to build the latest package from SVN which is much more recent (BETA 3). Otherwise it may not be too difficult to bisect to whatever commit broke this? There were very few that touched the kernel in that period. I didn't get a kms console at all with the latest experimental kernel (it's fine now). But I already had this in 10.0 (but again, not with stable/10 HEAD) Christoph -- 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 Debian Developer | Lisp Hacker | CaCert Assurer pgp38uxlxcWDI.pgp Description: PGP signature
Re: kFreeBSD future
Hi! Steven Chamberlain ste...@pyro.eu.org writes: Suspend-to-RAM (S3) works *mostly*, though I'd need to script some things like: lock the desktop first, log me out of XMPP, stop sound server and restart it afterward. Oh it does? never got that working on the x220, maybe I should try harder. How are you doing that? Just `acpiconf -s 3`? Yes, that. With radeonkms, it only started working for me in 10.1. Although I have to `pkill jackd` and `kldunload snd_envy24` because that module has a problem with suspend (exact same as on Linux, actually). Sometimes resume from suspend is extremely fast ( 5 seconds) but other times the SATA disk seems to take a scary while to reset/resume. It does! Just resumed successfully! Christoph -- 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 Debian Developer | Lisp Hacker | CaCert Assurer pgpLrmVFSqmC5.pgp Description: PGP signature
Bug#763675: mutter: FTBFS[kfreebsd]: undeclared dependency on libgbm-dev
Package: mutter Version: 3.14.0-1 Severity: serious Tags: patch Hi, On kfreebsd the configure script fails a check for 'gbm', from libgbm-dev (which it needs on all architectures). It is not listed as a dependency in mutter's control file, but it can be seen to be brought in as a dependency in buildd logs on Linux arches - due to some [linux-any] package requiring it (not sure which one): https://buildd.debian.org/status/fetch.php?pkg=mutterarch=i386ver=3.14.0-1stamp=1411423646 Therefore, please add an explicit dependency: --- debian/control.orig 2014-09-22 21:20:06.0 +0100 +++ debian/control 2014-10-01 20:07:39.243736579 +0100 @@ -41,6 +41,7 @@ libxinerama-dev, libxext-dev, libxrandr-dev, + libgbm-dev, libsm-dev, libice-dev, libpam0g-dev, Thanks. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001191155.90017.50501.report...@sid.kfreebsd-amd64.pyro.eu.org
Bug#763679: regexxer: FTBFS[kfreebsd-amd64,mips*]: related to -fPIC?
Package: regexxer Version: 0.9-5 Severity: serious Hi, regexxer 0.9-5 FTBFS on kfreebsd-amd64, mips and mipsel: https://buildd.debian.org/status/logs.php?pkg=regexxerver=0.9-5 from config.log: | configure:3289: checking whether we are cross compiling | configure:3297: gcc -o conftest -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -Wl,-z,defs -Wl,-O1 -Wl,--as-needed | -pie -Wl,-z,relro -Wl,-z,now conftest.c 5 | /usr/bin/ld.bfd.real: /tmp/ccGMnb8i.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC | /tmp/ccGMnb8i.o: error adding symbols: Bad value | collect2: error: ld returned 1 exit status | configure:3301: $? = 1 | configure:3308: ./conftest | /home/steven/regexxer-0.9/./configure: line 3310: ./conftest: No such file or directory | configure:3312: $? = 127 | configure:3319: error: in `/home/steven/regexxer-0.9': | configure:3321: error: cannot run C compiled programs. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001194335.93924.95974.report...@sid.kfreebsd-amd64.pyro.eu.org
Re: Bug#763675: mutter: FTBFS[kfreebsd]: undeclared dependency on libgbm-dev
Hello Steven Chamberlain! Thanks for looking into this problem. On Wed, Oct 01, 2014 at 08:29:13PM +0100, Steven Chamberlain wrote: The mutter configure script demands libgbm-dev be installed. mesa doesn't build a libgbm for kfreebsd, I'm not sure why. Is mutter solely used for gnome-shell? Should it be linux-any and simply removed from kfreebsd? I'll just say that I won't stand in your way if you want the packages removed on kfreebsd. Please just make sure that the removal goes more smoothly then last time! eg. deal with reverse dependencies (first). If you install ubuntu-dev-tools theres a utility there that will make it easy for you to identify reverse dependencies. eg. reverse-depends src:mutter Then you run the same thing recursively for all packages down to the leaf packages (which has no reverse dependencies) and make up a plan on how they all can be modified to avoid the dependency or if they too needs to be removed. Then work your way from the leaf packages down to mutter having no reverse dependencies left and finally you're ready to remove mutter. Regards, Andreas Henriksson -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001200238.ga16...@fatal.se
Bug#763685: apt-cacher-ng: FTBFS[!linux]: C++11 syntax error, systemd dependency
Package: apt-cacher-ng Version: 0.8.0~rc3-1 Severity: serious Hi, apt-cacher-ng FTBFS on non-Linux architectures. Firstly, this line of code seems to be incorrect syntax in C++11, I guess because of the new initialiser list feature: --- include/dlcon.h.orig2014-09-20 11:52:07.0 +0100 +++ include/dlcon.h 2014-10-01 21:01:18.170747446 +0100 @@ -51,7 +51,7 @@ #define fdWakeRead m_wakeventfd #define fdWakeWrite m_wakeventfd #else - int m_wakepipe[] = {-1, -1}; + int m_wakepipe[2] = {-1, -1}; #define fdWakeRead m_wakepipe[0] #define fdWakeWrite m_wakepipe[1] #endif Secondly, there is a dependency on libsystemd-daemon-dev which is [linux-any] Finally the dh_install step does some systemd-specific things which fail on non-Linux: | dh_install | sed -e s,^Type=simple,Type=notify, systemd/apt-cacher-ng.service debian/apt-cacher-ng.service | grep -q libsystemd /home/steven/apt-cacher-ng-0.8.0~rc3/debian/apt-cacher-ng/usr/sbin/apt-cacher-ng | make[1]: *** [override_dh_install] Error 1 -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001201201.96977.75056.report...@sid.kfreebsd-amd64.pyro.eu.org
Re: Bug#763675: mutter: FTBFS[kfreebsd]: undeclared dependency on libgbm-dev
Hello again! On Wed, Oct 01, 2014 at 09:50:45PM +0100, Steven Chamberlain wrote: [...] Thanks, this is useful. According to this, the only reverse-deps are linux-any packages: | $ reverse-depends src:mutter [...] | * gnome-core-devel (for libmutter-dev) [...] ^ (Oh well, no reverse dependencies and it looks like the kfreebsd binaries doesn't exist for it so I guess I can take care of this.) Regards, Andreas Henriksson -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001210425.ga17...@fatal.se
Bug#763693: dnsmasq: FTBFS[kfreebsd]: missing strlcpy
Package: dnsmasq Version: 2.72-1 Severity: serious Tags: patch User: debian-bsd@lists.debian.org Usertags: kfreebsd Hi, dnsmasq FTBFS on kfreebsd, because it builds some code to use FreeBSD PF, which also uses strlcpy, which is only found in FreeBSD libc. For Debian GNU/kFreeBSD it is possible to get this function from libbsd; patch attached! Thanks. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash diff -Nru dnsmasq-2.72.orig/debian/control dnsmasq-2.72/debian/control --- dnsmasq-2.72.orig/debian/control 2014-10-01 21:57:13.0 +0100 +++ dnsmasq-2.72/debian/control 2014-10-01 22:07:34.489734195 +0100 @@ -3,7 +3,7 @@ Priority: optional Build-depends: gettext, libnetfilter-conntrack-dev [linux-any], libidn11-dev, libdbus-1-dev (=0.61), libgmp-dev, - nettle-dev (=2.4-3) + nettle-dev (=2.4-3), libbsd-dev [!linux-any] Maintainer: Simon Kelley si...@thekelleys.org.uk Standards-Version: 3.9.5 diff -Nru dnsmasq-2.72.orig/debian/rules dnsmasq-2.72/debian/rules --- dnsmasq-2.72.orig/debian/rules 2014-10-01 21:57:13.0 +0100 +++ dnsmasq-2.72/debian/rules 2014-10-01 22:05:34.282734624 +0100 @@ -83,6 +83,11 @@ DEB_COPTS += -DHAVE_DNSSEC endif +ifneq ($(DEB_BUILD_ARCH_OS),linux) + # For strlcpy + LDFLAGS += -lbsd +endif + clean: $(checkdir) rm -rf debian/daemon debian/base debian/utils debian/*~ debian/files debian/substvars debian/utils-substvars diff -Nru dnsmasq-2.72.orig/src/tables.c dnsmasq-2.72/src/tables.c --- dnsmasq-2.72.orig/src/tables.c 2014-10-01 22:05:38.761734000 +0100 +++ dnsmasq-2.72/src/tables.c 2014-10-01 22:06:03.831679913 +0100 @@ -19,6 +19,9 @@ #include dnsmasq.h #if defined(HAVE_IPSET) defined(HAVE_BSD_NETWORK) +#ifndef __FreeBSD__ +#include bsd/string.h +#endif #include sys/types.h #include sys/ioctl.h
Re: Bug#763685: apt-cacher-ng: FTBFS[!linux]: C++11 syntax error, systemd dependency
tags 763685 + patch thanks Hi, In addition to fixing the syntax error in include/dlcon.h, the attached packaging changes seem to allow apt-cacher-ng to still build on non-Linux, and the sysvinit scripts still work to start and stop it. (Not sure if dh-systemd should be disabled; it did not cause a problem building on kfreebsd-amd64 though). Thanks, Regards, -- Steven Chamberlain ste...@pyro.eu.org diff -Nru apt-cacher-ng-0.8.0~rc3.orig/debian/control apt-cacher-ng-0.8.0~rc3/debian/control --- apt-cacher-ng-0.8.0~rc3.orig/debian/control 2014-09-20 11:53:25.0 +0100 +++ apt-cacher-ng-0.8.0~rc3/debian/control 2014-10-01 22:14:41.631681461 +0100 @@ -2,7 +2,7 @@ Section: net Priority: optional Maintainer: Eduard Bloch bl...@debian.org -Build-Depends: debhelper (= 9), cmake (= 2.6.2), libbz2-dev, zlib1g-dev, liblzma-dev, libfuse-dev [!hurd-i386], pkg-config, libwrap0-dev, lsb-base ( 3.0-6), dh-systemd (= 1.5), po-debconf, libssl-dev, libsystemd-daemon-dev +Build-Depends: debhelper (= 9), cmake (= 2.6.2), libbz2-dev, zlib1g-dev, liblzma-dev, libfuse-dev [!hurd-i386], pkg-config, libwrap0-dev, lsb-base ( 3.0-6), dh-systemd (= 1.5), po-debconf, libssl-dev, libsystemd-daemon-dev [linux-any] Standards-Version: 3.9.5 Homepage: http://www.unix-ag.uni-kl.de/~bloch/acng/ diff -Nru apt-cacher-ng-0.8.0~rc3.orig/debian/rules apt-cacher-ng-0.8.0~rc3/debian/rules --- apt-cacher-ng-0.8.0~rc3.orig/debian/rules 2014-09-20 11:53:25.0 +0100 +++ apt-cacher-ng-0.8.0~rc3/debian/rules 2014-10-01 22:05:13.062740285 +0100 @@ -13,6 +13,8 @@ export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + %: dh $@ --parallel --with systemd @@ -22,8 +24,10 @@ override_dh_install: dh_install $(shell test -e build/acngfs || echo -Xacngfs) sed -e s,^Type=simple,Type=notify, systemd/apt-cacher-ng.service debian/apt-cacher-ng.service -# make sure it has sd_notify support enabled +ifeq ($(DEB_BUILD_ARCH_OS),linux) + # on Linux, make sure it has sd_notify support enabled grep -q libsystemd $(TGT)/usr/sbin/apt-cacher-ng +endif cp systemd/apt-cacher-ng.conf debian/apt-cacher-ng.tmpfile install -m 755 scripts/expire-caller.pl $(TGT)/usr/lib/apt-cacher-ng $(MAKE) -C dbgen package DBGENERATOR=dbgenerator
Re: Bug#754718: lmms: FTBFS on kfreebsd-*: 'ESTRPIPE' was not declared in this scope
tags 754718 - help + patch thanks Hi, On 22:04, Petter Reinholdtsen wrote: I had a look in the source history, and the use of ESTRPIPE seem to have been present for a long time. I have no idea why it is missing on kFreeBSD. Anyone got a clue? ESTRPIPE (Streams pipe error) refers to an optional POSIX extension called Streams and FreeBSD doesn't implement it. I'm surprised if even Linux ALSA uses it. Even if we defined it, we'd never return that value... Come to think of it, why build the lmms ALSA output module on kFreeBSD? W supports OSS, PulseAuio and JACK but our ALSA library is just a wrapper around OSS. Tested patch follows :) --- debian/rules.orig 2014-10-01 20:13:22.0 +0100 +++ debian/rules2014-10-01 22:55:19.415683658 +0100 @@ -4,9 +4,15 @@ DH_CMAKE_BUILD_DIR=obj -${DEB_BUILD_GNU_TYPE} DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +CMAKE_OPTS= +ifneq ($(DEB_BUILD_ARCH_OS),linux) +CMAKE_OPTS+= -DWANT_ALSA=0 +endif %: dh $@ --buildsystem cmake override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) + dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) $(CMAKE_OPTS) Regards, -- Steven Chamberlain ste...@pyro.eu.org -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001221145.gd7...@squeeze.pyro.eu.org
Bug#763705: vlc: [kfreebsd] quits after ~30 seconds: xdg_screensaver_plugin
Package: vlc Version: 2.2.0~pre3-1 Severity: important File: /usr/lib/vlc/plugins/misc/libxdg_screensaver_plugin.so User: debian-bsd@lists.debian.org Usertags: kfreebsd Control: found -1 vlc/2.1.5-1 X-Debbugs-Cc: debian-bsd@lists.debian.org Hi, On kfreebsd, vlc quits after ~30 seconds playback. I identified the XDG screensaver inhibitor plugin as the cause of this. It happens whether xdg-utils is installed or not. If it is installed, it successfully forks `xscreensaver-command -deactivate` but triggers a clean exit from vlc immediately after. [000848001268] core vout display debug: auto hiding mouse cursor ...30 seconds of playback... [00604358] core libvlc debug: removing all interfaces [00604358] core libvlc debug: exiting ...etc. (cleanly shuts down) Attached is output from kFreeBSD's ktrace, showing: pid, thread ID, process name, elapsed time (seconds), and syscalls All I have to do is move misc/libxdg_screensaver_plugin.so out of the plugins dir and VLC is fine to play a full movie on kfreebsd. Thanks. -- System Information: Debian Release: jessie/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 10.1-0-amd64 Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages vlc depends on: ii fonts-freefont-ttf 20120503-4 ii libaa1 1.4p5-41 ii libavcodec566:11-1 ii libavutil54 6:11-1 ii libc0.1 2.19-11 ii libcaca00.99.beta18-1 ii libegl1-mesa [libegl1-x11] 10.1.2-1 ii libfreetype62.5.2-2 ii libfribidi0 0.19.5-2 ii libgcc1 1:4.9.1-14 ii libgl1-mesa-glx [libgl1]10.2.6-1 ii libgles1-mesa [libgles1]10.2.6-1 ii libgles2-mesa [libgles2]10.2.6-1 ii libice6 2:1.0.9-1 ii libpulse0 4.0-6 ii libqtcore4 4:4.8.6+git64-g5dc8b2b+dfsg-2 ii libqtgui4 4:4.8.6+git64-g5dc8b2b+dfsg-2 ii libsdl-image1.2 1.2.12-5+b2 ii libsdl1.2debian 1.2.15-8 ii libsm6 2:1.2.2-1 ii libstdc++6 4.9.1-14 ii libva-drm1 1.3.1-3 ii libva-x11-1 1.3.1-3 ii libva1 1.3.1-1 ii libvlccore8 2.2.0~pre3-1 ii libvncclient0 0.9.9+dfsg-6 ii libx11-62:1.6.2-3 ii libxcb-composite0 1.10-3 ii libxcb-keysyms1 0.3.9-2 ii libxcb-randr0 1.10-3 ii libxcb-render0 1.9.1-3.1 ii libxcb-shape0 1.9.1-3.1 ii libxcb-shm0 1.9.1-3.1 ii libxcb-xfixes0 1.9.1-3.1 ii libxcb-xv0 1.10-3 ii libxcb1 1.10-3 ii libxext62:1.3.2-1 ii libxinerama12:1.1.3-1 ii libxpm4 1:3.5.10-1 ii vlc-nox 2.2.0~pre3-1 ii zlib1g 1:1.2.8.dfsg-2 Versions of packages vlc recommends: ii vlc-plugin-notify 2.2.0~pre3-1 ii vlc-plugin-samba 2.2.0~pre3-1 pn xdg-utils none Versions of packages vlc suggests: pn videolan-doc none Versions of packages vlc-nox depends on: ii liba52-0.7.4 0.7.4-17 ii libass50.10.2-3 ii libavahi-client3 0.6.31-2 ii libavahi-common3 0.6.31-2 ii libavcodec56 6:11-1 ii libavformat56 6:11-1 ii libavutil546:11-1 ii libbasicusageenvironment0 2014.01.13-1 ii libbluray1 1:0.6.2-1 ii libc0.12.19-11 ii libcam610.1~svn271690-1 ii libcddb2 1.3.2-4 ii libcdio13 0.83-4.1 ii libchromaprint01.1-1+b2 ii libdbus-1-31.8.6-2 ii libdca00.0.5-6 ii libdirectfb-1.2-9 1.2.10.0-5 ii libdvbpsi9 1.2.0-1 ii libdvdnav4 4.2.0+20130225-4 ii libdvdread44.2.0+20130219-3 ii libebml4 1.3.0-2 ii libfaad2 2.7-8 ii libflac8 1.3.0-2 ii libfontconfig1 2.11.0-6.1 ii libfreetype6 2.5.2-2 ii libfribidi00.19.5-2 ii libgcc11:4.9.1-14 ii libgcrypt201.6.2-3 ii libgnutls-deb0-28 3.3.7-2 ii libgpg-error0 1.13-0.2 ii libgroupsock1 2014.01.13-1 ii libiso9660-8 0.83-4.1 ii libjpeg62 1:1.3.1-3 ii libkate1 0.4.1-1 ii liblircclient0 0.9.0~pre1-1 ii liblivemedia23 2014.01.13-1 ii liblua5.2-05.2.3-1 ii libmad00.15.1b-8 ii libmatroska6 1.4.1-2
Bug#763706: kfreebsd-10: kern.ipc.shmall default too low for Qt apps
Source: kfreebsd-10 Version: 10.1~svn271306-2 Severity: important Hi, kfreebsd-10's default setting kern.ipc.shmall is 4096 Qt applications exhaust this very quickly; after that, widgets fail to render and errors like these are spewed to stdout: | X Error: BadDrawable (invalid Pixmap or Window parameter) 9 | Major opcode: 62 (X_CopyArea) | Resource id: 0x0 I think this is also the reason for VLC to segfault in xcb_xv vout: | [000848001268] xcb_xv vout display error: shared memory allocation error: Cannot allocate memory | Segmentation fault This shared memory quota can be exhausted by lmms alone, or qjackctl + vlc, or qjackctl + psi-plus + other Qt applications running together. As suggested here: http://lists.freebsd.org/pipermail/freebsd-stable/2013-July/074203.html raising kern.ipc.shmall: 4096 - 32768 seems sufficient so far. -- System Information: Debian Release: jessie/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 10.1-0-amd64 Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141001232018.9391.55735.reportbug@localhost
Re: Bug#763685: apt-cacher-ng: FTBFS[!linux]: C++11 syntax error, systemd dependency
Hi! On Wed, 2014-10-01 at 22:20:31 +0100, Steven Chamberlain wrote: In addition to fixing the syntax error in include/dlcon.h, the attached packaging changes seem to allow apt-cacher-ng to still build on non-Linux, and the sysvinit scripts still work to start and stop it. diff -Nru apt-cacher-ng-0.8.0~rc3.orig/debian/rules apt-cacher-ng-0.8.0~rc3/debian/rules --- apt-cacher-ng-0.8.0~rc3.orig/debian/rules 2014-09-20 11:53:25.0 +0100 +++ apt-cacher-ng-0.8.0~rc3/debian/rules 2014-10-01 22:05:13.062740285 +0100 @@ -13,6 +13,8 @@ export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + %: dh $@ --parallel --with systemd @@ -22,8 +24,10 @@ override_dh_install: dh_install $(shell test -e build/acngfs || echo -Xacngfs) sed -e s,^Type=simple,Type=notify, systemd/apt-cacher-ng.service debian/apt-cacher-ng.service -# make sure it has sd_notify support enabled +ifeq ($(DEB_BUILD_ARCH_OS),linux) I think you want DEB_HOST_ARCH_OS here too. + # on Linux, make sure it has sd_notify support enabled grep -q libsystemd $(TGT)/usr/sbin/apt-cacher-ng +endif cp systemd/apt-cacher-ng.conf debian/apt-cacher-ng.tmpfile install -m 755 scripts/expire-caller.pl $(TGT)/usr/lib/apt-cacher-ng $(MAKE) -C dbgen package DBGENERATOR=dbgenerator Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141002032309.ga27...@gaara.hadrons.org
Re: Bug#763572: pbs-drmaa: FTBFS[kfreebsd]: uses non-POSIX mode flag
Hi! On Wed, 2014-10-01 at 03:14:07 +0100, Steven Chamberlain wrote: Package: pbs-drmaa Version: 1.0.17-1 Severity: serious Tags: patch User: debian-bsd@lists.debian.org Usertags: kfreebsd pbs-drmaa/job.c uses S_ISREG, which is not part of core POSIX specification; instead it should use the S_IFREG macro. This caused the FTBFS on kfreebsd. (It seems the macros got swapped in the mail body, but are fine on the patch.) GNU/kFreeBSD does have S_IFREG, but it does not get exposed by default. I guess this package might have been possibly caught up with the glibc transition from _BSD_SOURCE and _SVID_SOURCE to _DEFAULT_SOURCE? In any case the proposed patch is better than the current code or enabling those feature macros anyway. From: Steven Chamberlain ste...@pyro.eu.org Subject: use POSIX-recommended macro to check file type --- a/pbs_drmaa/job.c +++ b/pbs_drmaa/job.c @@ -401,7 +401,7 @@ struct stat tmpstat; fsd_log_error((Failed to open job status file: %s, status_file)); - if (stat(start_file, tmpstat) == 0 (tmpstat.st_mode S_IFREG)) + if (stat(start_file, tmpstat) == 0 S_ISREG(tmpstat.st_mode)) { exit_status = 143; /* SIGTERM */ fsd_log_info((But start file exist %s. Assuming that job was killed (exit_status=%d)., start_file, exit_status)); Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141002033949.gb27...@gaara.hadrons.org
Re: Bug#763693: dnsmasq: FTBFS[kfreebsd]: missing strlcpy
Hi! On Wed, 2014-10-01 at 22:24:29 +0100, Steven Chamberlain wrote: Package: dnsmasq Version: 2.72-1 Severity: serious Tags: patch User: debian-bsd@lists.debian.org Usertags: kfreebsd dnsmasq FTBFS on kfreebsd, because it builds some code to use FreeBSD PF, which also uses strlcpy, which is only found in FreeBSD libc. For Debian GNU/kFreeBSD it is possible to get this function from libbsd; patch attached! diff -Nru dnsmasq-2.72.orig/debian/rules dnsmasq-2.72/debian/rules --- dnsmasq-2.72.orig/debian/rules2014-10-01 21:57:13.0 +0100 +++ dnsmasq-2.72/debian/rules 2014-10-01 22:05:34.282734624 +0100 @@ -83,6 +83,11 @@ DEB_COPTS += -DHAVE_DNSSEC endif +ifneq ($(DEB_BUILD_ARCH_OS),linux) This should be DEB_HOST_ARCH_OS. + # For strlcpy + LDFLAGS += -lbsd +endif + clean: $(checkdir) rm -rf debian/daemon debian/base debian/utils debian/*~ debian/files debian/substvars debian/utils-substvars diff -Nru dnsmasq-2.72.orig/src/tables.c dnsmasq-2.72/src/tables.c --- dnsmasq-2.72.orig/src/tables.c2014-10-01 22:05:38.761734000 +0100 +++ dnsmasq-2.72/src/tables.c 2014-10-01 22:06:03.831679913 +0100 @@ -19,6 +19,9 @@ #include dnsmasq.h #if defined(HAVE_IPSET) defined(HAVE_BSD_NETWORK) +#ifndef __FreeBSD__ +#include bsd/string.h +#endif The other option is to use the libbsd overlay, which should require no upstream source patching. Either through pkg-config, or passing the equivalent output to CPPFLAGS: $ pkg-config --cflags libbsd-overlay But it needs to be tested as it could meddle with the build. Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141002034727.gc27...@gaara.hadrons.org
Re: Bug#754718: lmms: FTBFS on kfreebsd-*: 'ESTRPIPE' was not declared in this scope
Hi! On Wed, 2014-10-01 at 23:11:45 +0100, Steven Chamberlain wrote: --- debian/rules.orig 2014-10-01 20:13:22.0 +0100 +++ debian/rules2014-10-01 22:55:19.415683658 +0100 @@ -4,9 +4,15 @@ DH_CMAKE_BUILD_DIR=obj -${DEB_BUILD_GNU_TYPE} DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +CMAKE_OPTS= +ifneq ($(DEB_BUILD_ARCH_OS),linux) Here DEB_HOST_ARCH_OS too. +CMAKE_OPTS+= -DWANT_ALSA=0 +endif Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141002034931.gd27...@gaara.hadrons.org