[leafnode-list] FTBFS on RHEL-7

Matěj Cepl mcepl at cepl.eu
Thu Jul 24 18:13:11 CEST 2014


Hi, Matthias,

aside from mirroring the git repo on
https://gitorious.org/leafnode-2/leafnode-2 I have obviously also tried
to build a package from it on my RHEL-7 (more or less like Fedora 19).

Aside from need to fix one POD file (see attached patch), build also
fails in Koji (the official Fedora build system), because Fedora doesn’t
have per default user 'news'. Moreover, of course, build system has
absolutely nothing common with the system where the leafnode-2 in the
end will run.

It is possible to define in the .spec file (roughly equivalent of
Debian’s debian/ directory) that before installation of the package on
target system new user will be created (installation of the package
obviously runs as root) and then it could be defined which files should
be set as owned by defined group or user. But I cannot create new user
on the build system (and I don't think it makes any sense anyway).

Any ideas how to patch build system to allow this?

Best,

Matěj
-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl at ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC

But if we find we have left our bones to bleach in these desert
sands for nothing, beware the fury of the legions...
      -- Centurion in a letter home from North Africa
         3rd Century


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-POD-in-tools-lsmac.pl.patch
Type: text/x-patch
Size: 1058 bytes
Desc: not available
URL: <http://krusty.dt.e-technik.tu-dortmund.de/pipermail/leafnode-list/attachments/20140724/5b7a73ff/attachment.bin>
-------------- next part --------------
Mock Version: 1.1.39
Mock Version: 1.1.39
ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target i686 --nodeps builddir/build/SPECS/leafnode-2.spec'], False, '/var/lib/mock/f22-build-2207172-404719/root/', None, 86400, True, False, 1000, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=<mockbuild.trace_decorator.getLog object at 0x1cabb90>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target i686 --nodeps builddir/build/SPECS/leafnode-2.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
warning: bogus date in %changelog: Tue Jan 02 2006 Matěj Cepl <mcepl at redhat.com> 2.0.0.alpha20061010a-0
warning: Could not canonicalize hostname: buildhw-01.phx2.fedoraproject.org
Building target platforms: i686
Building for target i686
Wrote: /builddir/build/SRPMS/leafnode-2-2.0.0.alpha-0.0.vcs20140724git3f38b2b.fc22.src.rpm
Child return code was: 0
LEAVE do --> 

ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps  builddir/build/SPECS/leafnode-2.spec'], False, '/var/lib/mock/f22-build-2207172-404719/root/', None, 86400, True, False, 1000, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=<mockbuild.trace_decorator.getLog object at 0x1cabb90>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps  builddir/build/SPECS/leafnode-2.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
warning: bogus date in %changelog: Tue Jan 02 2006 Matěj Cepl <mcepl at redhat.com> 2.0.0.alpha20061010a-0
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PpCMSF
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf leafnode-2-leafnode-2
+ /usr/bin/gzip -dc /builddir/build/SOURCES/3f38b2b61aaf9ec87ff443e30f7af1655c332afe.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd leafnode-2-leafnode-2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
Patch #0 (leafnode-2-fix-pod.patch):
+ echo 'Patch #0 (leafnode-2-fix-pod.patch):'
+ /usr/bin/cat /builddir/build/SOURCES/leafnode-2-fix-pod.patch
+ /usr/bin/patch -p1 --fuzz=0
patching file tools/lsmac.pl
+ iconv -f iso-8859-1 -t utf-8 -o leafnode.8.conv leafnode.8.in
+ mv leafnode.8.conv leafnode.8.in
+ autoreconf -v -i
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:7: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:7: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:15: installing './compile'
configure.ac:7: installing './install-sh'
configure.ac:7: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory `.'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Wg0lju
+ umask 022
+ cd /builddir/build/BUILD
+ cd leafnode-2-leafnode-2
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro '
+ export LDFLAGS
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name config.sub
+ '[' 1 = 1 ']'
+ '[' x '!=' x ']'
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-spooldir=/var/spool/news --enable-runas-user=news --with-runas-group=news --sysconfdir=/etc/leafnode --with-pam
configure: WARNING: unrecognized options: --with-runas-group
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for inline... inline
checking for i686-redhat-linux-gnu-strip... no
checking for strip... strip
checking for id... /usr/bin/id
checking for gawk... (cached) gawk
checking for i686-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking for gcc option to accept ISO C99... -std=gnu99
checking whether make sets $(MAKE)... (cached) yes
checking for i686-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-redhat-linux-gnu-ar... no
checking for ar... ar
checking for lynx... no
checking for rpm... /usr/bin/rpm
checking for gzip... /usr/bin/gzip
checking for bzip2... /usr/bin/bzip2
checking for sed... /usr/bin/sed
checking for sendmail... /usr/sbin/sendmail
checking if gcc -std=gnu99 is really Intel C++... no
checking for additional compiler options...  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wformat=2 -ggdb -fno-common -Wsequence-point -Wswitch -Wunused -Wuninitialized -Wundef -Wc++-compat
checking runas-user... news
checking runas-user uid... /usr/bin/id: news: no such user
configure: error: user news does not exist. Please add this user before building leafnode.
                  Most systems have man adduser or man useradd to tell you how to do this.
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.Wg0lju (%build)
    bogus date in %changelog: Tue Jan 02 2006 Matěj Cepl <mcepl at redhat.com> 2.0.0.alpha20061010a-0
    Bad exit status from /var/tmp/rpm-tmp.Wg0lju (%build)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps  builddir/build/SPECS/leafnode-2.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 376, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps  builddir/build/SPECS/leafnode-2.spec']
LEAVE do --> EXCEPTION RAISED


More information about the leafnode-list mailing list