diff options
author | Yixun Lan <dlan@gentoo.org> | 2016-11-02 00:13:25 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2016-11-02 00:15:25 +0800 |
commit | 880e3375c1d7a09c7f8372065279032cba474e96 (patch) | |
tree | 6736cd56ce248596eb18e3686d5025a2fd0597cb /sys-apps/tuned/files | |
parent | dev-util/bcc: require at least elfutils-0.166 for GElf_Nhdr in gelf.h (diff) | |
download | gentoo-880e3375c1d7a09c7f8372065279032cba474e96.tar.gz gentoo-880e3375c1d7a09c7f8372065279032cba474e96.tar.bz2 gentoo-880e3375c1d7a09c7f8372065279032cba474e96.zip |
sys-apps/tuned: fix rpm lookup err
Gentoo-Bug: 563396
Package-Manager: portage-2.3.2
Diffstat (limited to 'sys-apps/tuned/files')
-rw-r--r-- | sys-apps/tuned/files/tuned-2.7.1-makefile.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-apps/tuned/files/tuned-2.7.1-makefile.patch b/sys-apps/tuned/files/tuned-2.7.1-makefile.patch new file mode 100644 index 000000000000..54e89a11b697 --- /dev/null +++ b/sys-apps/tuned/files/tuned-2.7.1-makefile.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile b/Makefile +index 9e2d8fe..6de30d0 100644 +--- a/Makefile ++++ b/Makefile +@@ -19,8 +19,8 @@ else + GIT_PSUFFIX = .$(GIT_SUFFIX) + RPM_VERSION = $(NAME)-$(VERSION)-1$(GIT_PSUFFIX) + endif +-UNITDIR = $(shell rpm --eval '%{_unitdir}' 2>/dev/null || echo /usr/lib/systemd/system) +-TMPFILESDIR = $(shell rpm --eval '%{_tmpfilesdir}' 2>/dev/null || echo /usr/lib/tmpfiles.d) ++UNITDIR = $(shell if which rpm > /dev/null 2>&1; then rpm --eval '%{_unitdir}' 2>/dev/null; else echo /usr/lib/systemd/system; fi) ++TMPFILESDIR = $(shell if which rpm > /dev/null 2>&1; then rpm --eval '%{_tmpfilesdir}' 2>/dev/null; else echo /usr/lib/tmpfiles.d; fi) + VERSIONED_NAME = $(NAME)-$(VERSION)$(GIT_PSUFFIX) + + DATADIR = /usr/share |