[arch-commits] Commit in systemd/trunk (PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Dec 13 08:18:49 UTC 2017


    Date: Wednesday, December 13, 2017 @ 08:18:34
  Author: eworm
Revision: 312214

upgpkg: systemd 235.38-4

Bring back proper permissions for /var/log/journal. My initial build issue
was caused by broken dynamic linkage for systemd-sysusers in [staging] and
missing user and group population in chroot.

Modified:
  systemd/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-13 07:14:18 UTC (rev 312213)
+++ PKGBUILD	2017-12-13 08:18:34 UTC (rev 312214)
@@ -10,7 +10,7 @@
 # Bump this to latest major release for signed tag verification,
 # the commit count is handled by pkgver() function.
 pkgver=235.38
-pkgrel=3
+pkgrel=4
 arch=('x86_64')
 url="https://www.github.com/systemd/systemd"
 makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'
@@ -187,6 +187,13 @@
   install -Dm644 "$srcdir/initcpio-install-udev" "$pkgdir/usr/lib/initcpio/install/udev"
   install -Dm644 "$srcdir/initcpio-hook-udev" "$pkgdir/usr/lib/initcpio/hooks/udev"
 
+  # ensure proper permissions for /var/log/journal
+  # The permissions are stored with named group by tar, so this works with
+  # users and groups populated by systemd-sysusers. This is only to prevent a
+  # warning from pacman as permissions are set by systemd-tmpfiles anyway.
+  chown root:systemd-journal "$pkgdir/var/log/journal"
+  chmod 2755 "$pkgdir/var/log/journal"
+
   # match directory owner/group and mode from extra/polkit
   chown root:102 "$pkgdir"/usr/share/polkit-1/rules.d
   chmod 0750     "$pkgdir"/usr/share/polkit-1/rules.d



More information about the arch-commits mailing list