[Nut-upsdev] openSUSE 11.0 - NUT

Stanislav Brabec sbrabec at suse.cz
Fri May 2 12:24:47 UTC 2008


Arnaud Quette wrote:

> I've seen another mail from a SuSE guy, and fwded by Arjen, about
> libtool and possibly dependencies. I gotta check it.

Probably Andreas Schwab. His patch (see the attachment) applies on
2.2.2, but breaks the build. Without his patch, it fails on IA64 and
S390. I will look deeper into it:
 gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wsign-compare -MT parseconf.lo -MD -MP -MF .deps/parseconf.Tpo -c parseconf.c  -fPIC -DPIC -o .libs/parseconf.o
mv -f .deps/state.Tpo .deps/state.Po
mv -f .deps/parseconf.Tpo .deps/parseconf.Po
mv -f .deps/common.Tpo .deps/common.Po
rm -f libcommon.a
/usr/bin/ar cru libcommon.a common.o  
ranlib libcommon.a
mv -f .deps/parseconf.Tpo .deps/parseconf.Plo
mv: cannot stat `.deps/parseconf.Tpo': No such file or directory
make[1]: *** [parseconf.lo] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/nut-2.2.2-pre3/common'
make: *** [all-recursive] Error 1

I am attaching one another cosmetic patch. It prevents warning mentioned
in the patch preamble, which is considered as error by SuSE QA tools.
Adding an explicit cast lets to know to the compiler, that cast from
integer for void * is really intended here.

Arnaud Quette wrote:
 
> I've tested it with "make -j2", and 2 config set (--disable-shared for
> full static, and --enable-static for linking clients on the shared lib
> while still shipping the static lib) and everything seems fine.
> Can you confirm on your side?

Yes, it seems to fix parallel build. Tried ~10 times, no failure.

Regarding my hald-addon path patch - it is an intermediate solution,
which will probably break in SuSE:
https://bugzilla.novell.com/show_bug.cgi?id=304316

But I guess that upstream will take care of correct setting of
hald-addon directory (see bugs in my previous mail).

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-libtool.diff
Type: text/x-patch
Size: 1587 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080502/3765bb76/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-intptr.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080502/3765bb76/attachment-0001.bin 


More information about the Nut-upsdev mailing list