[opensuse-packaging] Strange build behaviour
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug? Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/11/2009 12:19 PM, Dave Plater wrote:
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug? Regards Dave P
I forgot to add that it's only the 11.2 and standard builds that have this behaviour. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Dec 11, 2009 at 12:19:08PM +0200, Dave Plater wrote:
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug?
There are asneeded related errors in the build that probably lead to this (they do not abort the build, just make it half way done). At the start of %build do export SUSE_ASNEEDED=0 Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/11/2009 12:41 PM, Marcus Meissner wrote:
On Fri, Dec 11, 2009 at 12:19:08PM +0200, Dave Plater wrote:
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug?
There are asneeded related errors in the build that probably lead to this (they do not abort the build, just make it half way done).
At the start of %build do
export SUSE_ASNEEDED=0
Ciao, Marcus
Is this the error returned by btape during the build, it's the only one I can find. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Dec 11, 2009 at 01:08:20PM +0200, Dave Plater wrote:
On 12/11/2009 12:41 PM, Marcus Meissner wrote:
On Fri, Dec 11, 2009 at 12:19:08PM +0200, Dave Plater wrote:
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug?
There are asneeded related errors in the build that probably lead to this (they do not abort the build, just make it half way done).
At the start of %build do
export SUSE_ASNEEDED=0
Ciao, Marcus
Is this the error returned by btape during the build, it's the only one I can find.
Yes. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/11/2009 01:16 PM, Marcus Meissner wrote:
On Fri, Dec 11, 2009 at 01:08:20PM +0200, Dave Plater wrote:
On 12/11/2009 12:41 PM, Marcus Meissner wrote:
On Fri, Dec 11, 2009 at 12:19:08PM +0200, Dave Plater wrote:
Hi, I am confused by a strange anomaly in the build service when building the package home:plater:branches:openSUSE:Factory:Contrib bacula. When I use rpmbuild to build the package the server rpm includes the bin bacula-sd and bacula-sd.conf but when I build in the above project the files aren't found unless I copy them over in the install stage. What causes this difference in behavior or have I found a bug?
There are asneeded related errors in the build that probably lead to this (they do not abort the build, just make it half way done).
At the start of %build do
export SUSE_ASNEEDED=0
Ciao, Marcus
Is this the error returned by btape during the build, it's the only one I can find.
Yes.
Ciao, Marcus
Ok so as a rule, if I get an error with 11.2 and factory but not with <= 11.1 I can suspect "SUSE_ASNEEDED" which is due to static library builds? Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
export SUSE_ASNEEDED=0
Ciao, Marcus
Is this the error returned by btape during the build, it's the only one I can find.
Yes.
Ciao, Marcus
Ok so as a rule, if I get an error with 11.2 and factory but not with <= 11.1 I can suspect "SUSE_ASNEEDED" which is due to static library builds?
No. As we enabled --as-needed by default, the -llibname must be in the right order, otherwise you will get undefined symbols (like in your case right now). This behaviour is only enabled in the buildservice and export SUSE_ASNEEDED=0 disables it. (And since btape fails to build, bacula-sd is probably not build at all... even if make does not abort.) Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/11/2009 02:27 PM, Marcus Meissner wrote:
export SUSE_ASNEEDED=0
Ciao, Marcus
Is this the error returned by btape during the build, it's the only one I can find.
Yes.
Ciao, Marcus
Ok so as a rule, if I get an error with 11.2 and factory but not with <= 11.1 I can suspect "SUSE_ASNEEDED" which is due to static library builds?
No.
As we enabled --as-needed by default, the -llibname must be in the right order, otherwise you will get undefined symbols (like in your case right now).
This behaviour is only enabled in the buildservice and export SUSE_ASNEEDED=0 disables it.
(And since btape fails to build, bacula-sd is probably not build at all... even if make does not abort.)
Ciao, Marcus
I noticed the btape error a while ago and in fact bacula-sd looked like a complete unstripped elf binary when examined and the server side installed and worked after I copied it and it's .conf file in the install stage. This is a pitfall I must watch out for in future. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Dave Plater
-
Marcus Meissner