Skip to content

Commit e292d16

Browse files
committedFeb 27, 2017
fwupd: Fix localstatedir
1 parent c710a2d commit e292d16

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
 

Diff for: ‎pkgs/os-specific/linux/firmware/fwupd/default.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ let version = "0.8.1"; in
1515
polkit gcab appstream-glib gusb sqlite libarchive libsoup
1616
docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind
1717
];
18-
patchPhase = ''
18+
patches = [ ./localstatedir-check-perms.patch ];
19+
postPatch = ''
1920
sed -i -e \
2021
's|/usr/bin/gpgme-config|${gpgme.dev}/bin/gpgme-config|' -e \
2122
's|/usr/bin/gpg-error-config|${libgpgerror.dev}/bin/gpg-error-config|' \
@@ -27,6 +28,7 @@ let version = "0.8.1"; in
2728
configureFlags =
2829
[ "--with-systemdunitdir=$(out)/lib/systemd/system"
2930
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
31+
"--localstatedir=/var"
3032
];
3133
enableParallelBuilding = true;
3234
meta =
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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; \

0 commit comments

Comments
 (0)
Please sign in to comment.