[opensuse-packaging] /var/run is a symlink now
Hi, The filesystem package was changed to provide /var/run only as a symlink to /run instead of doing two mounts of the same file system. This has one (and only one AFAICS) consequence: %ghost entries in packages need to move to /run - as packaging behind symlinks is forbidden by policy. In doubt you can easily remove this %ghost entry - their only use case is reporting something for rpm -qf, which is of doubtful use as most packages create a directory with their name and leave the content unreported for -qf. All other uses of /var/run will continue to work, so don't touch them unless you have a very good reason to do so. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El 22/04/14 08:11, Stephan Kulow escribió:
Hi,
The filesystem package was changed to provide /var/run only as a symlink to /run instead of doing two mounts of the same file system.
This has one (and only one AFAICS) consequence: %ghost entries in packages need to move to /run - as packaging behind symlinks is forbidden by policy.
In doubt you can easily remove this %ghost entry - their only use case is reporting something for rpm -qf, which is of doubtful use as most packages create a directory with their name and leave the content unreported for -qf.
All other uses of /var/run will continue to work, so don't touch them unless you have a very good reason to do so.
Greetings, Stephan
I strongly suggest NOT to %ghost files under /run..remove it from the spec file.. it is meaningless as any file there will disappear after reboot or after tmpfiles clean runs, it may actually even go away behind your back while you are running rpm -qf It was indeed correct to %ghost this files when /var/run was in persistent storage though, but the old times are gone now. -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 22.04.2014 13:11, schrieb Stephan Kulow:
Hi,
The filesystem package was changed to provide /var/run only as a symlink to /run instead of doing two mounts of the same file system.
This has one (and only one AFAICS) consequence: %ghost entries in packages need to move to /run - as packaging behind symlinks is forbidden by policy.
In doubt you can easily remove this %ghost entry - their only use case is reporting something for rpm -qf, which is of doubtful use as most packages create a directory with their name and leave the content unreported for -qf.
rpmlint has an error now (as just sending mails to opensuse-packaging results in nothing ;( Sorry for the ascii screenshot, but this is from https://build.opensuse.org/project/status/openSUSE:Factory: clamav security Fails for 1 days: /var/run blocked by rpmlint cyrus-sasl-saslauthd openSUSE:Factory Fails for 1 days: /var/run blocked by rpmlint dovecot21 server:mail Fails for 1 days: /var/run blocked by rpmlint freeradius-server network Fails for 1 days: /var/run blocked by rpmlint frozen-bubble games Fails for 1 days: /var/run blocked by rpmlint icinga server:monitoring Fails for 1 days: /var/run blocked by rpmlint inn server:mail Fails for 1 days: /var/run blocked by rpmlint monit server:monitoring Fails for 1 days: /var/run blocked by rpmlint mysql-community-server server:database Fails for 1 days: /var/run blocked by rpmlint nagios server:monitoring Fails for 1 days: /var/run blocked by rpmlint novell-ipsec-tools network:vpn Fails for 1 days: /var/run blocked by rpmlint nrpe server:monitoring Fails for 1 days: /var/run blocked by rpmlint openCryptoki security Fails for 1 days: dir-or-file-in-var-lock openstack-ceilometer Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-cinder Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-glance Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-heat Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-keystone Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-neutron Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-nova Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-swift Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint openstack-tempest Cloud:OpenStack:Factory Fails for 103 days: E: non-ghost-in-var-lock openstack-trove Cloud:OpenStack:Factory Fails for 1 days: /var/run blocked by rpmlint pdns-recursor server:dns Fails for 1 days: /var/run blocked by rpmlint powerman hardware Fails for 1 days: /var/run blocked by rpmlint quagga network Fails for 1 days: /var/run blocked by rpmlint radvd network Fails for 1 days: /var/run blocked by rpmlint rubygem-chef devel:languages:ruby:extensions Fails for 1 days: /var/run blocked by rpmlint safte-monitor Base:System Fails for 1 days: /var/run blocked by rpmlint siproxd network:telephony Fails for 1 days: /var/run blocked by rpmlint spice-vdagent Virtualization Fails for 1 days: /var/run blocked by rpmlint strongswan network:vpn Fails for 1 days: /var/run blocked by rpmlint subversion devel:tools:scm:svn Fails for 1 days: /var/run blocked by rpmlint tor network Fails for 1 days: /var/run blocked by rpmlint xl2tpd network:vpn Fails for 1 days: /var/run blocked by rpmlint xrootd science Fails for 1 days: /var/run blocked by rpmlint xsp Mono:Factory Fails for 1 days: /var/run blocked by rpmlint Greetings, Stephan -- Ma muaß weiterkämpfen, kämpfen bis zum Umfalln, a wenn die ganze Welt an Arsch offen hat, oder grad deswegn. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 25.05.2014 18:00, schrieb Stephan Kulow:
Am 22.04.2014 13:11, schrieb Stephan Kulow:
Hi,
The filesystem package was changed to provide /var/run only as a symlink to /run instead of doing two mounts of the same file system.
This has one (and only one AFAICS) consequence: %ghost entries in packages need to move to /run - as packaging behind symlinks is forbidden by policy.
In doubt you can easily remove this %ghost entry - their only use case is reporting something for rpm -qf, which is of doubtful use as most packages create a directory with their name and leave the content unreported for -qf.
rpmlint has an error now (as just sending mails to opensuse-packaging results in nothing ;(
Sorry for the ascii screenshot, but this is from https://build.opensuse.org/project/status/openSUSE:Factory:
One detail I forgot: rpm has a %_rundir now upstream and in factory. So if it's defined, use it - otherwise continue using %_localstatedir/run Greetings, Stepha -- Ma muaß weiterkämpfen, kämpfen bis zum Umfalln, a wenn die ganze Welt an Arsch offen hat, oder grad deswegn. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El 25/05/14 12:01, Stephan Kulow escribió:
Am 25.05.2014 18:00, schrieb Stephan Kulow:
Am 22.04.2014 13:11, schrieb Stephan Kulow:
Hi,
The filesystem package was changed to provide /var/run only as a symlink to /run instead of doing two mounts of the same file system.
This has one (and only one AFAICS) consequence: %ghost entries in packages need to move to /run - as packaging behind symlinks is forbidden by policy.
In doubt you can easily remove this %ghost entry - their only use case is reporting something for rpm -qf, which is of doubtful use as most packages create a directory with their name and leave the content unreported for -qf.
rpmlint has an error now (as just sending mails to opensuse-packaging results in nothing ;(
Sorry for the ascii screenshot, but this is from https://build.opensuse.org/project/status/openSUSE:Factory:
One detail I forgot: rpm has a %_rundir now upstream and in factory. So if it's defined, use it - otherwise continue using %_localstatedir/run
One can use: %{!?_rundir: %global _rundir /run} for distros that do not have that definition (assuming you only want to target versions that have /run) -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Stephan Kulow