Link issues trying to package fwts for Mageia
Bruno Cornec
Bruno.Cornec at hp.com
Thu Sep 11 10:05:31 UTC 2014
Hello,
Sorry for the delay on this, but the Mageia distribution now has a fwts
package which will be part of the upcoming 5 release.
I've had to make some adaptations to package it correctly, and I think
some of them should be fixed upstream instead.
Bruno Cornec said on Wed, May 21, 2014 at 07:51:31AM +0200:
> Colin Ian King said on Fri, May 16, 2014 at 02:32:51PM +0100:
> > I managed to figure out how to get Megeia 4 installed and configured
> > with the necessary packages to build fwts. The only issue I found was
> > that the json-c headers were in a different location, so I had to make a
> > small change to some of the sources to fix this up.
>
> Ok. I adopted your change and build string and it works.
> The difference is around the way to invoke configure which makes it
> fail. I'll try to investigate.
I had to avoid using our prebuilt configure macro which were breaking
the build. I finally used:
./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-static
(the macro is defined as:
configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix}
--bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir}
--datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir}
--libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir}
--sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir}
--infodir=%{_infodir} %*
so there seems to be one parameter used in this list which is not
handled properly.
That's a minor point, now the right way to build it is found.
> I think that could be handled at autoconf level BTW, by checking both
> json/json.h and json-c/json.h and generating the appropriate entry in
> config.h and use it (which it doesn't seem to be BTW)
>
> BTW not having found json/json.h should generate an error in configure no ?
> The build process shouldn't continue I think.
It seems that in the latest version, ome has been fixed upstream, but
not all. I still had to use this magic:
find . -name '*.c' -o -name '*.h' | xargs perl -pi -e 's|#include <json/json.h>|#include <json-c/json.h>|'
perl -pi -e 's|json/json.h|json-c/json.h|' configure.ac
In order for it to work.
Also it seems that nothing is generated for fwts-frontend except the man
page by default. Maybe I missed something.
The tool has run on my system without issue (except the errors detected
of course ;-).
You can see the upload at:
http://pkgsubmit.mageia.org/?user=bcornec
My spec file:
http://svnweb.mageia.org/packages/cauldron/fwts/current/SPECS/fwts.spec?view=markup&pathrev=674689
Thanks for your help with this build.
Best regards,
Bruno.
--
Open Source Profession, Linux Community Lead WW http://opensource.hp.com
EMEA EG Open Source Technology Strategist http://hpintelco.net
FLOSS projects: http://mondorescue.org http://project-builder.org
Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org
More information about the fwts-devel
mailing list