[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] spec file issues
From: |
Daniel Pocock |
Subject: |
[Confuse-devel] spec file issues |
Date: |
Tue, 07 Apr 2009 10:48:30 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
I just tried to do
rpmbuild -tb confuse-2.6.tar.gz
using the distribution from the web site.
On RHEL4, it fails here:
/bin/cp COPYING
/var/tmp/build-libconfuse-2.6/usr/share/doc/libconfuse/COPYING
/bin/cp: cannot stat `COPYING': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.69023 (%install)
=> please include the full license text in a file called COPYING, the
ISC text can be cut and pasted from here:
http://en.wikipedia.org/wiki/ISC_license
On RHEL5, it fails like this:
error: Legacy syntax is unsupported: copyright
error: line 32: Unknown tag: Copyright: ISC
=> rename the tag Copyright, call it `License' instead
- Copyright: ISC
+ License: ISC
On RHEL5, after fixing the Copyright tag, it fails on fwrite (not
checking return value). RHEL5 rpmbuild uses -D_FORTIFY_SOURCE=2, so it
fails even though this is just a warning:
cc1: warnings being treated as errors
lexer.c: In function 'cfg_yylex':
lexer.l:270: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
Given that the RHEL5 version of flex is generating this (bad?) code, it
is not a fault in confuse, and so some kind of workaround is needed,
such as :
%pre
%setup ...
+ RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 'address@hidden@@'`"
CFLAGS="${RPM_OPT_FLAGS}" \
Regards,
Daniel
- [Confuse-devel] spec file issues,
Daniel Pocock <=
- Re: [Confuse-devel] spec file issues, Diego E., 2009/04/08
- Re: [Confuse-devel] spec file issues, Daniel Pocock, 2009/04/08
- Re: [Confuse-devel] spec file issues, Diego E., 2009/04/08
- Re: [Confuse-devel] spec file issues, Carlo Marcelo Arenas Belon, 2009/04/09
- RE: [Confuse-devel] spec file issues, Daniel.Pocock, 2009/04/16
- [Confuse-devel] libConfuse maintainer?, Martin Hedenfalk, 2009/04/17
- [Confuse-devel] Re: libConfuse maintainer?, Carlo Marcelo Arenas Belon, 2009/04/21