Skip to content

Commit

Permalink
sys-apps/portage: fix PYTHONPATH in pkg_postinst (bug 683932)
Browse files Browse the repository at this point in the history
Since PYTHON_SITEDIR begins with ${EPREFIX}, avoid a double prefix
by using ${D} instead of ${ED}.

Bug: https://bugs.gentoo.org/683932
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Apr 22, 2019
1 parent 50aa79e commit c3a95fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys-apps/portage/portage-2.3.64.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pkg_preinst() {
-u PORTAGE_REPOSITORIES \
-u PORTDIR \
-u PORTDIR_OVERLAY \
PYTHONPATH="${ED%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \
PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \
"${PYTHON}" -m portage._compat_upgrade.default_locations || die

# elog dir must exist to avoid logrotate error for bug #415911.
Expand Down
2 changes: 1 addition & 1 deletion sys-apps/portage/portage-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pkg_preinst() {
-u PORTAGE_REPOSITORIES \
-u PORTDIR \
-u PORTDIR_OVERLAY \
PYTHONPATH="${ED%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \
PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \
"${PYTHON}" -m portage._compat_upgrade.default_locations || die

# elog dir must exist to avoid logrotate error for bug #415911.
Expand Down

0 comments on commit c3a95fc

Please sign in to comment.