Bug#575265: nodm does not build on kfreebsd
Package: nodm Version: 0.6-2 Severity: serious -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, it seems that nodm does not build on freebsd any more. It did build versoin 0.4-1. The error seems to be: gcc -DHAVE_CONFIG_H -I.-DNODM_SESSION='"/usr/sbin/nodm"' -g -O2 -c -o nodm-nodm.o `test -f 'nodm.c' || echo './'`nodm.c nodm.c:72:20: error: sys/vt.h: No such file or directory Usage of vt was introduced in 0.5 to fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504842 As 0.4 is in testing, this hinders migration of nodm. Dear Debian/kFreeBSD-Team: Is there a way to have sys/vt.h on kFreeBSD, a simple replacement or a different solution for this bug? Thanks, Joachim - -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuqNREACgkQ9ijrk0dDIGyCKwCgivAkYbCteJ2q5eoYEZYEBjvs wI8AnRNsYyvdqsHEVlS9903WStbuwq39 =wmSJ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100324155145.3020.4561.report...@kirk.ehbuehl.net
Re: Bug#630206: libnss-myhostname: FTBFS: fatal error: asm/types.h: No such file or directory
Hi Christoph, Hello Lennart, Am Sonntag, den 12.06.2011, 12:34 +0200 schrieb Christoph Egger: > Package: src:libnss-myhostname > Version: 0.3-1 > Severity: serious > Tags: sid wheezy > Justification: fails to build from source (but built successfully in the past) > > Hi! > > Your pacage failed to build on the kfreebsd-* buildds: > libtool: compile: x86_64-kfreebsd-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. > -I/build/buildd-libnss-myhostname_0.3-1-kfreebsd-amd64-oyrjWQ/libnss-myhostname-0.3 > -include ./config.h -Wall -g -O2 -Wall -W -Wextra -pedantic -pipe -Wformat > -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal > -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes > -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith > -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math > -fvisibility=hidden -fdiagnostics-show-option -MT netlink.lo -MD -MP -MF > .deps/netlink.Tpo -c > /build/buildd-libnss-myhostname_0.3-1-kfreebsd-amd64-oyrjWQ/libnss-myhostname-0.3/netlink.c > -fPIC -DPIC -o .libs/netlink.o > /build/buildd-libnss-myhostname_0.3-1-kfreebsd-amd64-oyrjWQ/libnss-myhostname-0.3/netlink.c:25:23: > fatal error: asm/types.h: No such file or directory > compilation terminated. > make[3]: *** [netlink.lo] Error 1 > > Full build log at > https://buildd.debian.org/status/fetch.php?pkg=libnss-myhostname&arch=kfreebsd-amd64&ver=0.3-1&stamp=1307742167 > > If you have further questions please mail debian-bsd@lists.debian.org it seems that nss-myhostname has changed the way it acquires link addresses between versions 0.2 to 0.3 to make use of the netlink interface. This breaks the package on hurd and freebsd kernels. What should we do here? I see three options: A. Mark the package as Linux-only. Least hassle, but of course not great for the BSDers. Also, I would want to suggest to the debian-installer folk to consider to install this by default instead of having to generated a suitable /etc/hosts, and I’m sure they are more likely to do so if the package works on all kernels. PRO: No additional work. CON: Probably no installation by default, and wider adoption of the tool is, I think, also in Lennart’s interest. B. Ask Lennart to try to make his program portable. PRO: No Debian-specific changes required. CON: More work for Lennart and, if I correctly read what he wrote about systemd, he is in favor of choosing small code size over portability. C. Patch BSD-support ourself onto it. PRO: It is not A, but does not require B to happen. CON: Derivation from upstream, and someone else has to do the work, as I don’t think I’ll be able to do that. Unless either Lennart or someone else is willing to support BSD (and, less importantly, Hurd), we will have to go with A. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata signature.asc Description: This is a digitally signed message part
Re: Bug#630206: libnss-myhostname: FTBFS: fatal error: asm/types.h: No such file or directory
Hi, Am Dienstag, den 14.06.2011, 23:01 +0200 schrieb Robert Millan: > 2011/6/14 Lennart Poettering : > > if LEGACY > > foo_SOURCES += legacy.c > > else > > foo_SOURCES += netlink.c > > endif > > > > In the Makefile.am file. > > Here. I have applied and uploaded this patch to the Debian package. If there will be a better patch that addresses the ifindex issue, I’ll be happy to apply that as well. BTW, Lennart, I am also applying the attached patch because HOST_NAME_MAX does not always exist. If you could include that patch in the next version as well, that would be great, as it further reduces the difference to the Debian version. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata From 818479cdd74dd257bf53d013c03aa404ed47331b Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Fri, 4 Jun 2010 11:27:46 +0200 Subject: Fix building on kFreeBSD (MAX_HOST_NAME) --- configure.ac | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 38cd58f..a766d7a 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,16 @@ AC_FUNC_MALLOC AC_FUNC_SELECT_ARGTYPES AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn]) +# HOST_NAME_MAX not available on BSD-Kernels +# first call to AC_CHECK_DECL can not be nested, thus add a dummy call here +AC_CHECK_DECL(DUMMY,[],[]) +AC_CHECK_DECL(HOST_NAME_MAX,[], + AC_CHECK_DECL(_POSIX_HOST_NAME_MAX, + AC_DEFINE(HOST_NAME_MAX, _POSIX_HOST_NAME_MAX, []), + AC_DEFINE(HOST_NAME_MAX, 256, [Define to 256 if neither have HOST_NAME_MAX nor _POSIX_HOST_NAME_MAX]), + [[#include ]]), +[[#include ]]) + # LYNX documentation generation ZP_LYNX_DOC -- 1.7.5.4 signature.asc Description: This is a digitally signed message part
getPeerCred on kfreebsd-*
Hi, the latest version of haskell-dbus is failing on the BSDs, as it started to use getPeerCred in haskell-network. That is only available if the following configure.ac snippet detects it: dnl -- dnl * test for SO_PEERCRED and struct ucred dnl -- AC_MSG_CHECKING(for SO_PEERCRED and struct ucred in sys/socket.h) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include #ifndef SO_PEERCRED # error no SO_PEERCRED #endif struct ucred u;]])],ac_cv_ucred=yes,ac_cv_ucred=no) if test "x$ac_cv_ucred" = xno; then old_CFLAGS="$CFLAGS" CFLAGS="-D_GNU_SOURCE $CFLAGS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include #ifndef SO_PEERCRED # error no SO_PEERCRED #endif struct ucred u;]])],ac_cv_ucred=yes,ac_cv_ucred=no) if test "x$ac_cv_ucred" = xyes; then EXTRA_CPPFLAGS=-D_GNU_SOURCE fi else old_CFLAGS="$CFLAGS" fi if test "x$ac_cv_ucred" = xno; then CFLAGS="$old_CFLAGS" AC_MSG_RESULT(no) else AC_DEFINE([HAVE_STRUCT_UCRED], [1], [Define to 1 if you have both SO_PEERCRED and struct ucred.]) AC_MSG_RESULT(yes) fi Would you care to see if this is actually supported on BSD, and suggest a patch against haskell-network (no haskell knowledge required, I think)? Or, if it is not supported, tell me so so that I can remove haskell-dbus on the BSDs. Thanks, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata signature.asc Description: This is a digitally signed message part