From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/openrc:master commit in: mk/
Date: Mon, 13 Jun 2016 22:55:32 +0000 (UTC) [thread overview]
Message-ID: <1465857816.5af5d12f3e56f9f2ff232d124d27c856fd66f551.williamh@OpenRC> (raw)
commit: 5af5d12f3e56f9f2ff232d124d27c856fd66f551
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 13 22:43:36 2016 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jun 13 22:43:36 2016 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5af5d12f
Fix PATH for Prefix.
1. remove default /bin:/sbin:/usr/bin:/usr/sbin
2. PKG_PREFIX should be defaulted to $(PREFIX)/usr
3. LOCAL_PREFIX should be defaulted to $(PREFIX)/usr/local
X-Gentoo-Bug:583634
X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=583634
mk/os-prefix.mk | 2 ++
mk/os.mk | 2 +-
mk/sys.mk | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/mk/os-prefix.mk b/mk/os-prefix.mk
index c546a86..af08c99 100644
--- a/mk/os-prefix.mk
+++ b/mk/os-prefix.mk
@@ -3,4 +3,6 @@
ifeq (${MKPREFIX},yes)
CPPFLAGS+= -DPREFIX
+PKG_PREFIX?= $(PREFIX)/usr
+SED_EXTRA= -e '/_PATH=.*usr.bin/d'
endif
diff --git a/mk/os.mk b/mk/os.mk
index 20b4382..bac0388 100644
--- a/mk/os.mk
+++ b/mk/os.mk
@@ -13,7 +13,7 @@
_OS_SH= uname -s | tr '/' '-'
_OS:= $(shell ${_OS_SH})
OS?= ${_OS}
-include ${MK}/os-${OS}.mk
include ${MK}/os-prefix.mk
+include ${MK}/os-${OS}.mk
RC_LIB= /$(LIBNAME)/rc
diff --git a/mk/sys.mk b/mk/sys.mk
index 76f0b78..948ec1d 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -26,7 +26,7 @@ ifeq (${MKPREFIX},yes)
UPREFIX= ${PREFIX}/usr
endif
endif
-LOCAL_PREFIX= /usr/local
+LOCAL_PREFIX= $(UPREFIX)/local
PICFLAG?= -fPIC
next reply other threads:[~2016-06-13 22:55 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 22:55 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-05-11 20:40 [gentoo-commits] proj/openrc:master commit in: mk/ William Hubbs
2018-05-07 23:21 William Hubbs
2018-03-14 18:08 William Hubbs
2018-03-14 15:46 William Hubbs
2018-03-13 23:16 William Hubbs
2018-03-13 23:16 William Hubbs
2018-03-12 2:43 William Hubbs
2017-05-30 21:25 William Hubbs
2017-01-04 23:23 William Hubbs
2017-01-04 23:23 William Hubbs
2016-07-13 22:03 William Hubbs
2015-05-01 15:15 William Hubbs
2015-04-30 19:50 William Hubbs
2015-03-24 19:45 William Hubbs
2015-03-22 3:55 William Hubbs
2015-02-18 18:48 William Hubbs
2014-12-08 15:50 William Hubbs
2014-12-07 23:19 William Hubbs
2014-10-26 18:24 William Hubbs
2014-07-16 18:14 William Hubbs
2013-02-24 3:38 William Hubbs
2013-02-23 23:20 William Hubbs
2012-08-31 21:57 William Hubbs
2012-08-31 19:47 William Hubbs
2011-05-28 16:02 Mike Frysinger
2011-04-01 22:36 William Hubbs
2011-02-05 4:39 William Hubbs
2011-02-05 4:39 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465857816.5af5d12f3e56f9f2ff232d124d27c856fd66f551.williamh@OpenRC \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox