[opensuse-buildservice] brp-check-la error
I am getting the below error while building for openSUSE_11.1. Is there a way I can disable brp-check-la? I have been able to build this ealier. Even now I am able to build it successfully on FC10. On opeSUSE 11.1 however, I am having this error. setting /var/tmp/indimail-1.4-6.1-iGubxb/ to root:root 0755. (wrong owner/group abuild:abuild) setting /var/tmp/indimail-1.4-6.1-iGubxb/etc to root:root 0755. (wrong owner/group abuild:abuild) setting /var/tmp/indimail-1.4-6.1-iGubxb/usr to root:root 0755. (wrong owner/group abuild:abuild) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-debug + /usr/lib/rpm/brp-check-la found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file /var/tmp/indimail-1.4-6.1-iGubxb/var/indimail/lib/libindimail.la error: Bad exit status from /var/tmp/rpm-tmp.92262 (%install) -- Regards Manvendra - http://www.indimail.org Sent from: Tamil Nadu India. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Manvendra Bhangui wrote:
found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file /var/tmp/indimail-1.4-6.1-iGubxb/var/indimail/lib/libindimail.la error: Bad exit status from /var/tmp/rpm-tmp.92262 (%install)
That's a packaging bug you need to fix. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Feb 19, 2009 at 1:10 PM, Ludwig Nussel <ludwig.nussel@suse.de> wrote:
Manvendra Bhangui wrote:
found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file /var/tmp/indimail-1.4-6.1-iGubxb/var/indimail/lib/libindimail.la error: Bad exit status from /var/tmp/rpm-tmp.92262 (%install)
That's a packaging bug you need to fix.
I have in my Makefile.am -Leps-1.2 -leps -L/usr/lib/mysql -lmysqlclient The above gets expanded to (as seen in the build log) -L/usr/src/packages/BUILD/indimail-1.4/eps-1.2 -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -L/var/indimail/lib -leps -L/usr/lib/mysql -L/var/tmp/indimail-1.4-11.1-VOX9FX/usr/lib/mysql -lmysqlclient I am perplexed why -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib is getting added. Will doing -L./eps-1.2 instead of -Leps-1.2 help? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2009/2/19 Manvendra Bhangui <mbhangui@gmail.com>:
On Thu, Feb 19, 2009 at 1:10 PM, Ludwig Nussel <ludwig.nussel@suse.de> wrote:
Manvendra Bhangui wrote:
found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file /var/tmp/indimail-1.4-6.1-iGubxb/var/indimail/lib/libindimail.la error: Bad exit status from /var/tmp/rpm-tmp.92262 (%install)
That's a packaging bug you need to fix.
I have in my Makefile.am
-Leps-1.2 -leps -L/usr/lib/mysql -lmysqlclient
The above gets expanded to (as seen in the build log)
-L/usr/src/packages/BUILD/indimail-1.4/eps-1.2 -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -L/var/indimail/lib -leps -L/usr/lib/mysql -L/var/tmp/indimail-1.4-11.1-VOX9FX/usr/lib/mysql -lmysqlclient
I am perplexed why -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib is getting added.
Will doing -L./eps-1.2 instead of -Leps-1.2 help?
From http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy#Best_Practi... "Avoid packaging libtool config files (.la files). In general they are not needed if you do not package a static library. If in doubt, ask."
So, you probably can just remove the file. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Feb 19, 2009 at 1:50 PM, Cristian Morales Vega <cmorve69@yahoo.es> wrote:
I have in my Makefile.am
-Leps-1.2 -leps -L/usr/lib/mysql -lmysqlclient
The above gets expanded to (as seen in the build log)
-L/usr/src/packages/BUILD/indimail-1.4/eps-1.2 -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -L/var/indimail/lib -leps -L/usr/lib/mysql -L/var/tmp/indimail-1.4-11.1-VOX9FX/usr/lib/mysql -lmysqlclient
I am perplexed why -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib is getting added.
Will doing -L./eps-1.2 instead of -Leps-1.2 help?
From http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy#Best_Practi... "Avoid packaging libtool config files (.la files). In general they are not needed if you do not package a static library. If in doubt, ask."
So, you probably can just remove the file. --
Thanks. That should solve my problem on openSUSE 11.1 build. On further investigation, I find that libtool on openSUSE 11.1 seems to be expanding the -Leps-1.1 -leps to -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -leps The same spec file and the same source on FC10 for example gives -L/home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2 /home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2/.libs/libeps.so -L/usr/lib64/mysql -lmysqlclient -lm -Wl,-soname -Wl,libindimail-1.4.so.0 -o .libs/libindimail-1.4.so.0.0.0 I don't see any any instance of RPM_BUILD_ROOT. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2/19/2009 at 9:33 AM, Manvendra Bhangui <mbhangui@gmail.com> wrote: On Thu, Feb 19, 2009 at 1:50 PM, Cristian Morales Vega Thanks. That should solve my problem on openSUSE 11.1 build.
On further investigation, I find that libtool on openSUSE 11.1 seems to be expanding the -Leps-1.1 -leps to -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -leps
The same spec file and the same source on FC10 for example gives -L/home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2 /home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2/.libs/libeps.so -L/usr/lib64/mysql -lmysqlclient -lm -Wl,-soname -Wl,libindimail-1.4.so.0 -o .libs/libindimail-1.4.so.0.0.0
I don't see any any instance of RPM_BUILD_ROOT.
$RPM_BUILD_ROOT == var/tmp/indimail-1.4-11.1-VOX9FX So there IS a reference to the BUILD_ROOT (just not literally). Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Feb 19, 2009 at 2:23 PM, Dominique Leuenberger <Dominique.Leuenberger@tmf-group.com> wrote:
On further investigation, I find that libtool on openSUSE 11.1 seems to be expanding the -Leps-1.1 -leps to -L/var/tmp/indimail-1.4-11.1-VOX9FX/var/indimail/lib -leps
The same spec file and the same source on FC10 for example gives -L/home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2 /home/abuild/rpmbuild/BUILD/indimail-1.4/eps-1.2/.libs/libeps.so - -lmysqlclient -lm -Wl,-soname -Wl,libindimail-1.4.so.0 -o .libs/libindimail-1.4.so.0.0.0
I don't see any any instance of RPM_BUILD_ROOT.
$RPM_BUILD_ROOT == var/tmp/indimail-1.4-11.1-VOX9FX
So there IS a reference to the BUILD_ROOT (just not literally).
Sorry if I was not clear. I meant the same as what you are implying. On FC10 there is no instance of /var/tmp/indimail-1.4-11.1-VOX9FX appearing in the build log But in the build log of openSUSE 11.1 I see /var/tmp/indimail-1.4-11.1-VOX9FX appearing in the compilation of my library. The spec file and all the .tar.gz files are exactly the same for FC10 build and openSUSE 11.1 build The line which is causing this problem is libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ -Leps-1.2 -leps -L@mysql_libdir@ -lmysqlclient -lm -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Manvendra Bhangui wrote:
The line which is causing this problem is
libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ -Leps-1.2 -leps -L@mysql_libdir@ -lmysqlclient -lm
Bad use of libtool: -L should refer to system wide library. If you want to refer to uninstalled library, you have to specify a part to .la file without -L or -l. Possible fix: libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm Well, cdb/*.o is incorrect as well. It should be specified in libindimail_la_SOURCES or you can create a temporary libtool library using noinst_LTLIBRARIES and then refer to its .la file. Note that if cdb objects are not built yet it may expands to empty string => You may have problems and you probably will have problems with parallel build. Then it may look: libindimail_la_SOURCES = .... cdb/... libindimail_la_LIBADD = @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm or libindimail_la_LIBADD = $(top_builddir)/cdb/libcdb.la @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm and in another cdb/Makefile.am noinst_LTLIBRARIES = libcdb.la libcdb_la_SOURCES = ... (listing them explicitly is better than $(top_srcdir)/cdb/*.c) I agree with deleting of .la files, but even without it deleting, you should get no failure. For more see info libtool: Linking executables Hint: "make distcheck" can point to possible upstream problems. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2009/2/19 Stanislav Brabec <sbrabec@suse.cz>:
Bad use of libtool: -L should refer to system wide library. If you want to refer to uninstalled library, you have to specify a part to .la file without -L or -l.
Possible fix: libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm
Well, cdb/*.o is incorrect as well. It should be specified in libindimail_la_SOURCES or you can create a temporary libtool library using noinst_LTLIBRARIES and then refer to its .la file.
Note that if cdb objects are not built yet it may expands to empty string => You may have problems and you probably will have problems with parallel build.
Then it may look: libindimail_la_SOURCES = .... cdb/... libindimail_la_LIBADD = @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm or libindimail_la_LIBADD = $(top_builddir)/cdb/libcdb.la @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm and in another cdb/Makefile.am noinst_LTLIBRARIES = libcdb.la libcdb_la_SOURCES = ...
(listing them explicitly is better than $(top_srcdir)/cdb/*.c)
Thanks a ton. I have finally understood the problem. Appreciate the time you took to explain this. Regards Manvendra -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Manvendra Bhangui escribió: /var/indimail/lib/libindimail.la what the heck is going on here eh ? :-D why your package installing "la" files in /var ? o_O this looks : a) plain wrong ;-) b) like you have to remove the "la" files anyway... -- "The 'sanctity of life' is kind of a selective thing..we get to choose which forms of life we feel are sacred, and we get to kill the rest, pretty neat deal huh ?" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (6)
-
Cristian Morales Vega
-
Cristian Rodríguez
-
Dominique Leuenberger
-
Ludwig Nussel
-
Manvendra Bhangui
-
Stanislav Brabec