Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#38999 - [systemd] avoid vercmp in post_install or depend on pacman

Attached to Project: Arch Linux
Opened by Matthias Dienstbier (fs4000) - Saturday, 22 February 2014, 23:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 23 February 2014, 00:04 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


systemd 209 started to use the vercmp command in the post_common function of its install scriptlet. This gets executed on a fresh install although pacman might not be installed yet. If this happens, the following error will be printed but the installation runs fine.

( 47/100) Installiere systemd [######################] 100%
Initializing machine ID from random generator.
/tmp/alpm_kWrKft/.INSTALL: line 29: vercmp: command not found
/tmp/alpm_kWrKft/.INSTALL: line 29: [: : integer expression expected
ln -s '/usr/lib/systemd/system/getty@.service' '/etc/systemd/system/'
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 23 February 2014, 00:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in SVN.
Comment by Dave Reisner (falconindy) - Sunday, 23 February 2014, 00:03 GMT
Fixed in SVN. It's easier than this -- there's no $2 on post_install, so we can just protect the call to vercmp.