fwupd: Fix localstatedir

+15 -1
+3 -1
pkgs/os-specific/linux/firmware/fwupd/default.nix
··· 15 polkit gcab appstream-glib gusb sqlite libarchive libsoup 16 docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind 17 ]; 18 - patchPhase = '' 19 sed -i -e \ 20 's|/usr/bin/gpgme-config|${gpgme.dev}/bin/gpgme-config|' -e \ 21 's|/usr/bin/gpg-error-config|${libgpgerror.dev}/bin/gpg-error-config|' \ ··· 27 configureFlags = 28 [ "--with-systemdunitdir=$(out)/lib/systemd/system" 29 "--with-udevrulesdir=$(out)/lib/udev/rules.d" 30 ]; 31 enableParallelBuilding = true; 32 meta =
··· 15 polkit gcab appstream-glib gusb sqlite libarchive libsoup 16 docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind 17 ]; 18 + patches = [ ./localstatedir-check-perms.patch ]; 19 + postPatch = '' 20 sed -i -e \ 21 's|/usr/bin/gpgme-config|${gpgme.dev}/bin/gpgme-config|' -e \ 22 's|/usr/bin/gpg-error-config|${libgpgerror.dev}/bin/gpg-error-config|' \ ··· 28 configureFlags = 29 [ "--with-systemdunitdir=$(out)/lib/systemd/system" 30 "--with-udevrulesdir=$(out)/lib/udev/rules.d" 31 + "--localstatedir=/var" 32 ]; 33 enableParallelBuilding = true; 34 meta =
+12
pkgs/os-specific/linux/firmware/fwupd/localstatedir-check-perms.patch
···
··· 1 + diff -Naur fwupd-0.8.1-orig/src/Makefile.in fwupd-0.8.1/src/Makefile.in 2 + --- fwupd-0.8.1-orig/src/Makefile.in 2017-02-24 02:59:23.000000000 -0500 3 + +++ fwupd-0.8.1/src/Makefile.in 2017-02-27 15:06:56.218901891 -0500 4 + @@ -1639,7 +1639,7 @@ 5 + $(srcdir)/fwupd.gresource.xml 6 + 7 + install-data-hook: 8 + - if test -w $(DESTDIR)$(prefix)/; then \ 9 + + if test -w $$(dirname $(DESTDIR)$(localstatedir)/); then \ 10 + mkdir -p $(DESTDIR)$(localstatedir)/lib/fwupd; \ 11 + chmod 0755 $(DESTDIR)$(localstatedir)/lib/fwupd; \ 12 + mkdir -p $(DESTDIR)$(localstatedir)/cache/app-info/xmls; \