[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 (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
/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:
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 :

 %setup ...
+ RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 'address@hidden@@'`"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]