%% pwd /home/olexa/sandbox/portage.svn/main/trunk/bin %% for file in $(find . -type f|grep -v svn); do sed -i -e 's:#!/bin/bash:#!/usr/bin/env bash:' $file; done %% for file in $(find . -type f|grep -v svn); do sed -i -e 's:#!/usr/bin/python:#!/usr/bin/env python:' $file; done Something like that will get rid of the abs python and bash path in bin/, are other directories needed?
we need full paths in most cases to have portage behave regardless whatever the user has set in PATH
hmm, yes. I wonder why I thought this. Must have saw it somewhere or was confused.
another thing is that we /need/ configure at least for chpathtool
Good idea, but too hard to track for right now on bugzilla.