Skip to content

Instantly share code, notes, and snippets.

@ilovezfs
Created July 6, 2014 15:53
Show Gist options
  • Save ilovezfs/25e20f0f4e33a8fddbf6 to your computer and use it in GitHub Desktop.
Save ilovezfs/25e20f0f4e33a8fddbf6 to your computer and use it in GitHub Desktop.
python ebuild patch
--- python-2.7.6-r1.ebuild 2014-06-23 01:35:01.000000000 -0700
+++ python-2.7.6-r1.ebuild 2014-07-06 08:48:38.000000000 -0700
@@ -426,6 +426,9 @@
# on upgrade (site-packages), however since we h4x0rzed python to
# actually look into the UNIX-style dir, we just switch them around.
mkdir -p "${ED}"/usr/$(get_libdir)
+ mv "${ED}"/usr/lib/python${SLOT}/* \
+ "${D}${fwdir}"/Versions/${SLOT}/lib/python${SLOT}/
+ rmdir "${ED}"/usr/lib/python${SLOT}
mv "${D}${fwdir}"/Versions/${SLOT}/lib/python${SLOT} \
"${ED}"/usr/lib/ || die "can't move python${SLOT}"
pushd "${D}${fwdir}"/Versions/${SLOT}/lib > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment