tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fwupd: Fix localstatedir
Shea Levy
9 years ago
e292d166
c710a2d4
+15
-1
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
firmware
fwupd
default.nix
localstatedir-check-perms.patch
+3
-1
pkgs/os-specific/linux/firmware/fwupd/default.nix
···
15
15
polkit gcab appstream-glib gusb sqlite libarchive libsoup
16
16
docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind
17
17
];
18
18
-
patchPhase = ''
18
18
+
patches = [ ./localstatedir-check-perms.patch ];
19
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
28
configureFlags =
28
29
[ "--with-systemdunitdir=$(out)/lib/systemd/system"
29
30
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
31
31
+
"--localstatedir=/var"
30
32
];
31
33
enableParallelBuilding = true;
32
34
meta =
+12
pkgs/os-specific/linux/firmware/fwupd/localstatedir-check-perms.patch
···
1
1
+
diff -Naur fwupd-0.8.1-orig/src/Makefile.in fwupd-0.8.1/src/Makefile.in
2
2
+
--- fwupd-0.8.1-orig/src/Makefile.in 2017-02-24 02:59:23.000000000 -0500
3
3
+
+++ fwupd-0.8.1/src/Makefile.in 2017-02-27 15:06:56.218901891 -0500
4
4
+
@@ -1639,7 +1639,7 @@
5
5
+
$(srcdir)/fwupd.gresource.xml
6
6
+
7
7
+
install-data-hook:
8
8
+
- if test -w $(DESTDIR)$(prefix)/; then \
9
9
+
+ if test -w $$(dirname $(DESTDIR)$(localstatedir)/); then \
10
10
+
mkdir -p $(DESTDIR)$(localstatedir)/lib/fwupd; \
11
11
+
chmod 0755 $(DESTDIR)$(localstatedir)/lib/fwupd; \
12
12
+
mkdir -p $(DESTDIR)$(localstatedir)/cache/app-info/xmls; \