Skip to Content.
Sympa Menu

en - [sympa-users] configure failure / rpmbuild failure

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Daniel Maher <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] configure failure / rpmbuild failure
  • Date: Tue, 06 Apr 2010 15:41:21 +0200

Hello / Bonjour,

On a basic CentOS 5.4 x86_64 system :

# rpmbuild -ta sympa-6.0.1.tar.gz
...
Processing files: sympa-6.0.1-1
error: File not found: /var/tmp/sympa-6.0.1/var/lib/sympa
error: File not found: /var/tmp/sympa-6.0.1/var/spool/sympa
error: File not found by glob: /var/tmp/sympa-6.0.1/usr/sbin/*
error: File not found by glob: /var/tmp/sympa-6.0.1/usr/libexec/*
error: File not found: /var/tmp/sympa-6.0.1/usr/lib64/sympa
error: File not found by glob: /var/tmp/sympa-6.0.1/usr/share/man/man8/*
error: File not found: /var/tmp/sympa-6.0.1/usr/share/sympa
error: File not found by glob: /var/tmp/sympa-6.0.1/usr/share/locale/*/*/*
error: File not found: /var/tmp/sympa-6.0.1/etc/sympa
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.63443
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd sympa-6.0.1
+ DOCDIR=/var/tmp/sympa-6.0.1/usr/share/doc/sympa-6.0.1
+ export DOCDIR
+ rm -rf /var/tmp/sympa-6.0.1/usr/share/doc/sympa-6.0.1
+ /bin/mkdir -p /var/tmp/sympa-6.0.1/usr/share/doc/sympa-6.0.1
+ cp -pr README README.charset NEWS COPYING AUTHORS doc/sample /var/tmp/sympa-6.0.1/usr/share/doc/sympa-6.0.1
+ exit 0
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/sympa-6.0.1
error: Installed (but unpackaged) file(s) found:

(many items here. some examples...)

/sample/README
/sample/employees.ldap
/sample/robot.conf
/sample/test/config
/usr/bin/List.pm
/usr/bin/Lock.pm
/usr/bin/Log.pm
/usr/bin/Marc.pm
/usr/default/crawlers_detection.conf
/usr/default/create_list.conf
/usr/default/scenari/review.listmaster
/usr/default/scenari/review.owner
/usr/default/web_tt2/d_editfile.tt2
/usr/default/web_tt2/d_install_shared.tt2
/usr/locale/nl/LC_MESSAGES/sympa.mo
/usr/locale/nl/LC_MESSAGES/web_help.mo
/usr/man/man8/bounced.8.gz
/usr/man/man8/sympa.8.gz
/usr/static_content/icons/back.png
/usr/static_content/icons/begin.png

(etc...)

The problem appears to be poorly specified directories within the build process. As a test, i passed some explicit directory options to rpmbuild thusly :

# rpmbuild -ta sympa-6.0.1.tar.gz --define "_prefix /opt/sympa" --define "_localedir /usr/share/locale"

The prefix was respected in some cases, and ignored in others. The locale destination was ignored. Taking a look at the Makefile of a basic ./configure from source, we can see that some of the destinations are built dynamically based on ${var} (such as prefix), but others are not. This is not tidy, and is the likely source of the prefix being only partially applied during the build.

The locale destination was ignored because the related argument is not supported by ./configure (despite what --help says) :

# ./configure --help | grep localedir
--with-localedir=DIR obsolete option, use --localedir instead
# ./configure --localedir=/usr/share/locale
configure: error: unrecognized option: --localedir=/usr/share/locale

That said, passing --with-locale= to ./configure works properly.

I did not test any other options, but it may be the case that the variables expected by the .spec are not being generated or set properly during at configure or build time.

All of this leads to my final question : is there an official .spec file available that works ?

Finalement, je parle français aussi : la liste francophone, est-elle plus actif ? Si oui, je demanderai là-bas. :)

Thank you / merci !


--
Daniel MAHER <dma+sympa AT witbe DOT net>



Archive powered by MHonArc 2.6.19+.

Top of Page