gnu: python-babel: Update to 2.7.0.
[guix.git] / gnu / packages / patches / upower-builddir.patch
blob51295f207602b751953ab9410d95ecd8dddcb5e6
1 Remove explicit set of UPOWER_CONF_FILE_NAME in up-self-test.c;
2 instead the harness should set it. In Guix we set it explicitly; the
3 right thing is to use AM_TEST_ENVIRONMENT and regenerate the
4 makefiles, but we can't regenerate because current autotools carp on
5 some things, so we patch the Makefile.in instead.
7 Also fix to not try to create /var/lib/upower if /var isn't writable.
9 Patch by Andy Wingo <wingo@igalia.com>
10 Reduced to upower 0.99.10 by Tobias Geerinckx-Rice <me@tobias.gr>
12 --- upower-0.99.2.orig/src/Makefile.in 2014-12-18 10:32:01.000000000 +0100
13 +++ upower-0.99.2/src/Makefile.in 2015-04-04 19:49:28.020843678 +0200
14 @@ -1789,7 +1790,7 @@
15 @HAVE_SYSTEMDSYSTEMUNITDIR_TRUE@ @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
17 install-data-hook:
18 - if test -w $(DESTDIR)$(prefix)/; then \
19 + if test -w $(DESTDIR)$(localstatedir)/; then \
20 mkdir -p $(DESTDIR)$(historydir); \