Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 563708 Details for
Bug 677246
sys-apps/portage: prefixify etc-update and simplify Prefix logic.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage-prefix.patch
portage-prefix.patch (text/plain), 2.50 KB, created by
Benda Xu
on 2019-02-04 08:26:10 UTC
(
hide
)
Description:
portage-prefix.patch
Filename:
MIME Type:
Creator:
Benda Xu
Created:
2019-02-04 08:26:10 UTC
Size:
2.50 KB
patch
obsolete
>commit 28873a61b2c52bb54ff19a5a1eb531766aa3198e >Author: Benda Xu <heroxbd@gentoo.org> >Date: Mon Feb 4 16:16:38 2019 +0800 > > sys-apps/portage: prefixify etc-update and simplify Prefix logic. > > Package-Manager: Portage-2.3.52, Repoman-2.3.12 > Signed-off-by: Benda Xu <heroxbd@gentoo.org> > >diff --git a/sys-apps/portage/portage-2.3.59-r1.ebuild b/sys-apps/portage/portage-2.3.59-r1.ebuild >index 20086e941716..50fbff77890e 100644 >--- a/sys-apps/portage/portage-2.3.59-r1.ebuild >+++ b/sys-apps/portage/portage-2.3.59-r1.ebuild >@@ -10,7 +10,7 @@ PYTHON_COMPAT=( > ) > PYTHON_REQ_USE='bzip2(+),threads(+)' > >-inherit distutils-r1 epatch linux-info systemd >+inherit distutils-r1 epatch linux-info systemd prefix > > DESCRIPTION="Portage is the package management and distribution system for Gentoo" > HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" >@@ -141,14 +141,8 @@ python_prepare_all() { > > if [[ -n ${EPREFIX} ]] ; then > einfo "Setting portage.const.EPREFIX ..." >- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ >- -i lib/portage/const.py || \ >- die "Failed to patch portage.const.EPREFIX" >+ hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ >+ -w "/_BINARY/" lib/portage/const.py > > einfo "Prefixing shebangs ..." > while read -r -d $'\0' ; do >@@ -159,15 +153,9 @@ python_prepare_all() { > fi > done < <(find . -type f -print0) > >- einfo "Adjusting make.globals ..." >- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ >- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ >- -i cnf/make.globals || die "sed failed" >+ einfo "Adjusting make.globals, repos.conf and etc-update ..." >+ hprefixify cnf/{make.globals,repos.conf} bin/etc-update > >- einfo "Adjusting repos.conf ..." >- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ >- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ >- -i cnf/repos.conf || die "sed failed" > if use prefix-guest ; then > sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ > -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 677246
: 563708