[opensuse-packaging] Dangling symblink warnings
Hi, I am trying to use rc* symlink for systemd services as outlined in http://lists.opensuse.org/opensuse-factory/2012-07/msg00066.html for Factory builds rctargets="shorewall shorewall-lite shorewall6 shorewall6-lite" for i in $rctargets; do %if 0%{?suse_version} > 1220 ln -sf /sbin/service %buildroot%_sbindir/rc${i} %else ln -sf %_initddir/${i} %buildroot%_sbindir/rc${i} %endif done but I am getting these warnings " shorewall6-lite.noarch: W: dangling-symlink /usr/sbin/rcshorewall6-lite /sbin/service horewall6.noarch: W: dangling-symlink /usr/sbin/rcshorewall6 /sbin/service shorewall.noarch: W: dangling-symlink /usr/sbin/rcshorewall /sbin/service shorewall-lite.noarch: W: dangling-symlink /usr/sbin/rcshorewall-lite /sbin/service The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain." How can I fix this warning as /sbin/service is in aaa_base Thanks Togan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Quoting Togan Muftuoglu
The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain."
This paragraph actually contains the info needed: you are not depending on aaa_base from your package; rpm can't know that this is a rather basic package for openSUSE. Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 09/05/2012 11:24 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain."
This paragraph actually contains the info needed: you are not depending on aaa_base from your package; rpm can't know that this is a rather basic package for openSUSE.
It doesn't make a difference if I put aaa_base in BuildRequires (it is installed by default anyway) I still get the warning. So what do you suggest -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Quoting Togan Muftuoglu
On 09/05/2012 11:24 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain."
This paragraph actually contains the info needed: you are not depending on aaa_base from your package; rpm can't know that this is a rather basic package for openSUSE.
It doesn't make a difference if I put aaa_base in BuildRequires (it is installed by default anyway) I still get the warning. So what do you suggest
===
this package or its file based dependencies.
How about Requires: ? Dominqiue -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 09/05/2012 11:51 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: On 09/05/2012 11:24 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain."
This paragraph actually contains the info needed: you are not depending on aaa_base from your package; rpm can't know that this is a rather basic package for openSUSE.
It doesn't make a difference if I put aaa_base in BuildRequires (it is installed by default anyway) I still get the warning. So what do you suggest
===
this package or its file based dependencies.
How about Requires: ?
It only stop complainig if there is Requires: /sbin/service But to me that is not the ideal solution since when building for openSUSE 12.2 and earlier I am using the following and without the specific Requires: directive there are no warnings ln -sf %_initddir/${i} %buildroot%_sbindir/rc${i} Therefore something is fishy which I do not understand Togan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia środa, 5 września 2012 12:02:40 Togan Muftuoglu pisze:
It only stop complainig if there is Requires: /sbin/service
But to me that is not the ideal solution since when building for openSUSE 12.2 and earlier I am using the following and without the specific Requires: directive there are no warnings
ln -sf %_initddir/${i} %buildroot%_sbindir/rc${i}
Therefore something is fishy which I do not understand
The scripts from %_initdir belong to System V init, systemd does not use them so they are gone. HTH, Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 09/05/2012 08:06 PM, Křištof Želechovski wrote:
Dnia środa, 5 września 2012 12:02:40 Togan Muftuoglu pisze:
It only stop complainig if there is Requires: /sbin/service
But to me that is not the ideal solution since when building for openSUSE 12.2 and earlier I am using the following and without the specific Requires: directive there are no warnings
ln -sf %_initddir/${i} %buildroot%_sbindir/rc${i}
Therefore something is fishy which I do not understand
The scripts from %_initdir belong to System V init, systemd does not use them so they are gone.
Maybe you should read the initial mail and see what I want to achieve and then reply only to the list Togan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Togan Muftuoglu wrote:
On 09/05/2012 11:51 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: On 09/05/2012 11:24 AM, Dominique Leuenberger a.k.a DimStar wrote:
Quoting Togan Muftuoglu
: The target of the symbolic link does not exist within this package or its file based dependencies. Verify spelling of the link target and that the target is included in a package in this package's dependency chain."
This paragraph actually contains the info needed: you are not depending on aaa_base from your package; rpm can't know that this is a rather basic package for openSUSE.
It doesn't make a difference if I put aaa_base in BuildRequires (it is installed by default anyway) I still get the warning. So what do you suggest
===
this package or its file based dependencies.
How about Requires: ?
It only stop complainig if there is Requires: /sbin/service
But to me that is not the ideal solution since when building for openSUSE 12.2 and earlier I am using the following and without the specific Requires: directive there are no warnings
%if 0%{?suse_version} > 1220 Requires: /sbin/service %endif alternatively we could install a global rpmlint filter to just ignore dangling symlinks to /sbin/service. cu Ludwig [1] /usr/sbin/service in the future, right? -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 09/06/2012 11:59 AM, Ludwig Nussel wrote:
Togan Muftuoglu wrote:
It only stop complainig if there is Requires: /sbin/service
But to me that is not the ideal solution since when building for openSUSE 12.2 and earlier I am using the following and without the specific Requires: directive there are no warnings
%if 0%{?suse_version} > 1220 Requires: /sbin/service %endif
That is exactly where I ended up Ludwig
alternatively we could install a global rpmlint filter to just ignore dangling symlinks to /sbin/service.
I guess that is better since /sbin/service or as you point out the future /usr/sbin/service is part of the aaa_base which as far as I know is installed by default. So a global rpmlint filter sounds a better option Togan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Dominique Leuenberger a.k.a DimStar
-
Křištof Želechovski
-
Ludwig Nussel
-
Togan Muftuoglu