Re: [arch-general] [arch-dev-public] [arch-commits] Commit in util-linux/trunk (PKGBUILD util-linux.install)
I just managed to hit it on one of my arch boxes: (24/26) upgrading util-linux [########################################################################################] 100% rmdir: failed to remove ‘/var/lib/hwclock’: No such file or directory error: command failed to execute correctly Cody On Thu, Jul 12, 2012 at 1:00 AM, Allan McRae <allan@archlinux.org> wrote:
On 12/07/12 08:11, Tom Gundersen wrote:
Date: Wednesday, July 11, 2012 @ 18:11:46 Author: tomegun Revision: 163378
upgpkg: util-linux 2.21.2-4
move adjtime from /var to /etc
This will allow some cleanup of initscripts, and is assumed by systemd
already.
Added: util-linux/trunk/util-linux.install Modified: util-linux/trunk/PKGBUILD
--------------------+ PKGBUILD | 1 + util-linux.install | 8 ++++++++ 2 files changed, 9 insertions(+)
Modified: PKGBUILD =================================================================== --- PKGBUILD 2012-07-11 22:11:15 UTC (rev 163377) +++ PKGBUILD 2012-07-11 22:11:46 UTC (rev 163378) @@ -18,6 +18,7 @@ pam-login pam-common) backup=(etc/pam.d/chfn etc/pam.d/chsh etc/pam.d/login) +install=util-linux.install
build() { cd "${srcdir}/${pkgname}-${pkgver}"
Added: util-linux.install =================================================================== --- util-linux.install (rev 0) +++ util-linux.install 2012-07-11 22:11:46 UTC (rev 163378) @@ -0,0 +1,8 @@ +post_upgrade() { + if [ "$(vercmp $2 2.21.2-4)" -lt 0 ]; then + if [ -f /var/lib/hwclock/adjtime ]; then + mv /var/lib/hwclock/adjtime /etc/adjtime + fi + rmdir /var/lib/hwclock
I have seen this not removed because it was not there in chroots. Not sure if it can happen on a real system... but if so, it needs an "if [[ -d ..."
+ fi +}
On 07/12/2012 04:35 PM, Cody Maloney wrote:
I just managed to hit it on one of my arch boxes:
(24/26) upgrading util-linux
[########################################################################################] 100% rmdir: failed to remove ‘/var/lib/hwclock’: No such file or directory error: command failed to execute correctly
Me too - same error on all my boxes - however the package was installed fine anyway. gene
On Thu, 12 Jul 2012 20:27:04 -0400 Genes MailLists <lists@sapience.com> wrote:
On 07/12/2012 04:35 PM, Cody Maloney wrote:
I just managed to hit it on one of my arch boxes:
(24/26) upgrading util-linux
[########################################################################################] 100% rmdir: failed to remove ‘/var/lib/hwclock’: No such file or directory error: command failed to execute correctly
Me too - same error on all my boxes - however the package was installed fine anyway.
gene
You probably had nothing in /var/lib/hwclock, so pacman removed the directory upon update. However, util-linux.install again tried to remove it via rmdir which, of course, failed. So, the error is a harmless packaging bug... -- Leonid Isaev GnuPG key: 0x164B5A6D Fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
On Fri, Jul 13, 2012 at 2:40 AM, Leonid Isaev <lisaev@umail.iu.edu> wrote:
On Thu, 12 Jul 2012 20:27:04 -0400 Genes MailLists <lists@sapience.com> wrote:
On 07/12/2012 04:35 PM, Cody Maloney wrote:
I just managed to hit it on one of my arch boxes:
(24/26) upgrading util-linux
[########################################################################################] 100% rmdir: failed to remove ‘/var/lib/hwclock’: No such file or directory error: command failed to execute correctly
Me too - same error on all my boxes - however the package was installed fine anyway.
gene
You probably had nothing in /var/lib/hwclock, so pacman removed the directory upon update. However, util-linux.install again tried to remove it via rmdir which, of course, failed.
So, the error is a harmless packaging bug...
-- Leonid Isaev GnuPG key: 0x164B5A6D Fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
Thanks Allan, and everyone else, for the report. I missed that obvious case. Will sort it out. -t
participants (4)
-
Cody Maloney
-
Genes MailLists
-
Leonid Isaev
-
Tom Gundersen