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
polkit gcab appstream-glib gusb sqlite libarchive libsoup
16
docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind
17
];
18
-
patchPhase = ''
0
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"
0
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
···
0
0
0
0
0
0
0
0
0
0
0
0
···
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; \