[opensuse-buildservice] Help with a rpmlint failure note
Hello all, I'm stuck with an error I get in OBS when building the package libspf2 in my project home:gbvalor. It builds OK in all but opensuse-11.0 and opensuse-factory . It also build the rpms but it seems rpmlint doesn't like a shared lib name : --- libspf2.x86_64: E: shlib-policy-name-error (Badness: 10000) libspf2-2 Your package contains a single shared library but is not named after its SONAME. --- But the strange thing is there no 'libspf2-2' file. Any help?. Is this a bug in rpmlint?. There are other nice things since rpmlint is working in OBS. I get warnings about no Packager tag in my rpms but if I set them in the spec files I also get a warning about 'hardwired packager tag in spec'. I suspect there is another way to set the Packager tag, but I don't know. Thank you, Guillermo -- Guillermo Ballester Valor gbv@oxixares.com http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2008/6/14 Guillermo Ballester Valor: > --- > libspf2.x86_64: E: shlib-policy-name-error (Badness: 10000) libspf2-2 > Your package contains a single shared library but is not named after its > SONAME. > --- > > But the strange thing is there no 'libspf2-2' file. Any help?. Is this a bug > in rpmlint?. http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy says: * Shared libraries in /lib{,64} or /usr/lib{,64} shall be packaged into rpms whose name is "lib" + $NAME + $NUM. [$NAME is formed by cutting off the prefix "lib" and suffix ".so.*" from the SONAME] [If $NAME ends in a digit, a dash is inserted between $NAME and $NUM. So it is libfoo1-0, not libfoo10.] Do a "objdump -x libspf2.so.2 | grep SONAME" and you get: "SONAME libspf2.so.2" So NAME is spf2 and NUM is 2. The package name should be libspf2-2, but you named it just libspf2. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Thank you Christian! I will rename de rpm. Regards, Guillermo El Saturday 14 June 2008 11:47:41 Christian Morales Vega escribió:
2008/6/14 Guillermo Ballester Valor
: --- libspf2.x86_64: E: shlib-policy-name-error (Badness: 10000) libspf2-2 Your package contains a single shared library but is not named after its SONAME. ---
But the strange thing is there no 'libspf2-2' file. Any help?. Is this a bug in rpmlint?.
http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy says: * Shared libraries in /lib{,64} or /usr/lib{,64} shall be packaged into rpms whose name is "lib" + $NAME + $NUM.
[$NAME is formed by cutting off the prefix "lib" and suffix ".so.*" from the SONAME] [If $NAME ends in a digit, a dash is inserted between $NAME and $NUM. So it is libfoo1-0, not libfoo10.]
Do a "objdump -x libspf2.so.2 | grep SONAME" and you get: "SONAME libspf2.so.2" So NAME is spf2 and NUM is 2. The package name should be libspf2-2, but you named it just libspf2. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Guillermo Ballester Valor gbv@oxixares.com http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-06-14 13:27:21 +0000, Guillermo Ballester Valor wrote:
Thank you Christian!
I will rename de rpm.
Regards,
Guillermo
El Saturday 14 June 2008 11:47:41 Christian Morales Vega escribió:
2008/6/14 Guillermo Ballester Valor
: --- libspf2.x86_64: E: shlib-policy-name-error (Badness: 10000) libspf2-2 Your package contains a single shared library but is not named after its SONAME. ---
But the strange thing is there no 'libspf2-2' file. Any help?. Is this a bug in rpmlint?.
http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy says: * Shared libraries in /lib{,64} or /usr/lib{,64} shall be packaged into rpms whose name is "lib" + $NAME + $NUM.
[$NAME is formed by cutting off the prefix "lib" and suffix ".so.*" from the SONAME] [If $NAME ends in a digit, a dash is inserted between $NAME and $NUM. So it is libfoo1-0, not libfoo10.]
Do a "objdump -x libspf2.so.2 | grep SONAME" and you get: "SONAME libspf2.so.2" So NAME is spf2 and NUM is 2. The package name should be libspf2-2, but you named it just libspf2. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
to save you some work use the subpackage approach shown in http://lists.opensuse.org/opensuse-packaging/2008-04/msg00086.html -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Guillermo Ballester Valor escribió:
Thank you Christian!
I will rename de rpm.
Regards,
If you have further questions about this. drop a note to the opensuse-packaging mailing list ;-) -- “First they ignore you, then they laugh at you, then they fight you, then you win.” - Gandhi Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Hello, El Saturday 14 June 2008 18:52:13 Cristian Rodríguez escribió:
Guillermo Ballester Valor escribió:
Thank you Christian!
I will rename de rpm.
Regards,
If you have further questions about this. drop a note to the opensuse-packaging mailing list ;-)
I finally splitted the rpm 'libspf2' into 'spf2' (for binaries) and 'libspf2-2' (for shared libraries). Have a nice sunday. Guillermo. -- Guillermo Ballester Valor gbv@oxixares.com http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Saturday 14 June 2008 13:24:06 Guillermo Ballester Valor wrote:
Hello all,
I'm stuck with an error I get in OBS when building the package libspf2 in my project home:gbvalor.
It builds OK in all but opensuse-11.0 and opensuse-factory . It also build the rpms but it seems rpmlint doesn't like a shared lib name :
--- libspf2.x86_64: E: shlib-policy-name-error (Badness: 10000) libspf2-2 Your package contains a single shared library but is not named after its SONAME. ---
But the strange thing is there no 'libspf2-2' file. Any help?. Is this a bug in rpmlint?.
No, this is an enforced policy by rpmlint for some base distributions. When you package a library, you should put it into a package called libspf2-2 (in your case). You can read the details here: http://en.opensuse.org/Packaging/Shared_Library_Packaging_Policy -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Adrian Schröter
-
Christian Morales Vega
-
Cristian Rodríguez
-
Guillermo Ballester Valor
-
Marcus Rueckert