Mailinglist Archive: opensuse-packaging (284 mails)

< Previous Next >
[opensuse-packaging] Content of %build section ignored
  • From: Volker Stoppe <grenzlaeufer@xxxxxxx>
  • Date: Fri, 18 Feb 2011 13:57:22 +0100
  • Message-id: <4D5E6CB2.6080807@gmx.net>
Hallo list!

Has anyone had the situation, that the contents of the %build-section of a spec file is ignored? All source files are extrackted and patches are applied but as a resault I only get a source.rpm. /var/tmp doesn´t contain any temporary script files.
My spec worked for a while and I can´t remember what I could have changed.

This is my section:
===================================================
%build
export CCARGS="-DHAS_LDAP -DHAS_PCRE -DUSE_SASL_AUTH -I/usr/include/sasl"
export CCARGS="$CCARGS -DMAX_DYNAMIC_MAPS"
export CCARGS="$CCARGS -DHAS_MYSQL -I/usr/include/mysql"
export CCARGS="$CCARGS -DHAS_PGSQL -I/usr/include/pgsql"
export CCARGS="$CCARGS -DUSE_CYRUS_SASL"
export AUXLIBS="-lldap -llber -lpcre"
export AUXLIBS="$AUXLIBS -lsasl2"
%if %{usetls}
export AUXLIBS="$AUXLIBS -lssl -lcrypto"
%endif
%if %{usetls}
export CCARGS="$CCARGS -DUSE_TLS"
%endif
export CCARGS="$CCARGS $RPM_OPT_FLAGS -Wno-comments"
export PIE=-pie
make makefiles DEBUG=""
cd lib
for i in dns global master tls util milter; do
ln -sf lib${i}.a lib%{name}-${i}.so.1.0.1;
done
cd -
make LD_LIBRARY_PATH=$(pwd)/lib:${LD_LIBRARY_PATH}
===================================================

This is the last part of my build:
===================================================
Patch #11 (postfix-vda-2.7.1.patch):
+ patch -p1 -s
+ exit 0
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/postfix-2.7.2-build
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/postfix-2.7.2-build
Wrote: /usr/src/packages/SRPMS/postfix-2.7.2-22.1.src.rpm
... saving built packages
/usr/src/packages/SRPMS/postfix-2.7.2-22.1.src.rpm

build30 finished "build postfix.spec" at Wed Feb 16 17:59:25 UTC 2011.

[ 70.076192] System halted.
build: extracting built packages...
postfix-2.7.2-22.1.src.rpm
===================================================

You can find my package here:
https://build.opensuse.org/package/show?package=postfix&project=home%3Agrenzlaeufer

PS: A few days ago I had to figure out that a commented %makeinstall ("# %makeinstall") in the %build section is executed despite the "#".


I would be interested if I made a mistake (and which) or if it is a errer in the matrix of "reality".

Greetings

volk
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups