[arch-commits] Commit in accountsservice/trunk (PKGBUILD dirmode.diff)

Jan Steffens heftig at gemini.archlinux.org
Fri Jan 28 23:24:44 UTC 2022


    Date: Friday, January 28, 2022 @ 23:24:43
  Author: heftig
Revision: 435327

fix permissions again

Added:
  accountsservice/trunk/dirmode.diff
Modified:
  accountsservice/trunk/PKGBUILD

--------------+
 PKGBUILD     |    9 +++++++--
 dirmode.diff |   20 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-28 23:14:29 UTC (rev 435326)
+++ PKGBUILD	2022-01-28 23:24:43 UTC (rev 435327)
@@ -12,8 +12,10 @@
 makedepends=(gtk-doc gobject-introspection git meson docbook-xsl xmlto vala)
 checkdepends=(python-gobject python-dbusmock)
 _commit=b92982be695700537bf80c5e9aa518820adbb7b6  # tags/22.04.62^0
-source=("git+https://gitlab.freedesktop.org/accountsservice/accountsservice.git#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://gitlab.freedesktop.org/accountsservice/accountsservice.git#commit=$_commit"
+        dirmode.diff)
+sha256sums=('SKIP'
+            'abb66aa011ac72a28b2e766f5d713028143fb3b642fb7e3ae81bea1b70c9ec26')
 
 pkgver() {
   cd $pkgname
@@ -23,6 +25,9 @@
 
 prepare() {
   cd $pkgname
+
+  # Fix permissions to match the ones the daemon sets
+  git apply -3 ../dirmode.diff
 }
 
 build() {

Added: dirmode.diff
===================================================================
--- dirmode.diff	                        (rev 0)
+++ dirmode.diff	2022-01-28 23:24:43 UTC (rev 435327)
@@ -0,0 +1,20 @@
+ meson_post_install.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git c/meson_post_install.py i/meson_post_install.py
+index 5cc2dc4..76348a2 100644
+--- c/meson_post_install.py
++++ i/meson_post_install.py
+@@ -9,10 +9,12 @@ localstatedir = os.path.normpath(destdir + os.sep + sys.argv[1])
+ # FIXME: meson will not track the creation of these directories
+ #        https://github.com/mesonbuild/meson/blob/master/mesonbuild/scripts/uninstall.py#L39
+ dst_dirs = [
++  (os.path.join(localstatedir, 'lib', 'AccountsService'), 0o755),
+   (os.path.join(localstatedir, 'lib', 'AccountsService', 'icons'), 0o775),
+   (os.path.join(localstatedir, 'lib', 'AccountsService', 'users'), 0o700),
+ ]
+ 
+ for (dst_dir, dst_dir_mode) in dst_dirs:
+   if not os.path.exists(dst_dir):
++    os.umask(0o777 & ~dst_dir_mode)
+     os.makedirs(dst_dir, mode=dst_dir_mode)



More information about the arch-commits mailing list