File tree 2 files changed +15
-1
lines changed
pkgs/os-specific/linux/firmware/fwupd
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ let version = "0.8.1"; in
15
15
polkit gcab appstream-glib gusb sqlite libarchive libsoup
16
16
docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind
17
17
] ;
18
- patchPhase = ''
18
+ patches = [ ./localstatedir-check-perms.patch ] ;
19
+ postPatch = ''
19
20
sed -i -e \
20
21
's|/usr/bin/gpgme-config|${ gpgme . dev } /bin/gpgme-config|' -e \
21
22
's|/usr/bin/gpg-error-config|${ libgpgerror . dev } /bin/gpg-error-config|' \
@@ -27,6 +28,7 @@ let version = "0.8.1"; in
27
28
configureFlags =
28
29
[ "--with-systemdunitdir=$(out)/lib/systemd/system"
29
30
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
31
+ "--localstatedir=/var"
30
32
] ;
31
33
enableParallelBuilding = true ;
32
34
meta =
Original file line number Diff line number Diff line change
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; \
You can’t perform that action at this time.
0 commit comments