[opensuse-packaging] Content of %build section ignored

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%3Agrenz... 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@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Hi; On Fri, Feb 18, 2011 at 2:57 PM, Volker Stoppe <grenzlaeufer@gmx.net> wrote:
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.
I see this in %prep section %define mysqllib -L/usr/lib/mysql %endif %ifarch x86_64 %define mysqllib -L/usr/lib64/mysql %endif The first %endif has no corresponding %if line. That might be causing problems. Regards, ismail -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On 02/18/2011 03:00 PM, İsmail Dönmez wrote:
Hi;
On Fri, Feb 18, 2011 at 2:57 PM, Volker Stoppe <grenzlaeufer@gmx.net> wrote:
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.
I see this in %prep section
%define mysqllib -L/usr/lib/mysql %endif %ifarch x86_64 %define mysqllib -L/usr/lib64/mysql %endif
and why do you use the %ifarch anyway and not simply "-L%{_libdir)/mysql"? It takes away the need for all the conditionals which would only be needed if your spec was cross distribution and the other distribution had a different library naming scheme. Dave P
The first %endif has no corresponding %if line. That might be causing problems.
Regards, ismail
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Thanks for you quick response Ismail and Dave, Am 18.02.2011 14:00, schrieb İsmail Dönmez:
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.
I see this in %prep section
%define mysqllib -L/usr/lib/mysql %endif %ifarch x86_64 %define mysqllib -L/usr/lib64/mysql %endif
The first %endif has no corresponding %if line. That might be causing problems.
I have added an ifarch and after that I replaced the whole section with the line: %define mysqllib -L/usr/%{_libdir)/mysql Unfortunately it doesn´t make a difference. The result is: ----------------------------------------------------------------- ----- building postfix.spec (user abuild) ----------------------------------------------------------------- ----------------------------------------------------------------- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:grenzlaeufer/SLE_11_SP1/04211905f6464106355eee5ce8726060-postfix' /usr/src/packages/SOURCES/postfix.spec [ 47.676977] System halted. https://build.opensuse.org/package/show?package=postfix&project=home%3Agrenz... I would really like to know what is going wrong. Maybe someone could have a look: https://build.opensuse.org/package/show?package=postfix&project=home%3Agrenz... Greetings volk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On 02/21/2011 01:11 PM, Volker Stoppe wrote:
%define mysqllib -L/usr/%{_libdir)/mysql
Unfortunately it doesn´t make a difference. The result is: %define mysqllib -L/usr/%{_libdir)/mysql expands to "-L/usr/usr/lib64/mysql" on an x86_64 system. Use "%define mysqllib -L%{_libdir)/mysql"
If you look though /usr/lib/rpm/macros you will see most of the common macro definitions. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dave Plater
-
Dave Plater
-
İsmail Dönmez
-
Volker Stoppe