Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277057 - Change abs paths in shebang line
Summary: Change abs paths in shebang line
Status: RESOLVED LATER
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 277055
  Show dependency tree
 
Reported: 2009-07-08 16:40 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-01-17 22:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-08 16:40:17 UTC
%% 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?
Comment 1 Fabian Groffen gentoo-dev 2009-07-08 16:44:14 UTC
we need full paths in most cases to have portage behave regardless whatever the user has set in PATH
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-08 16:51:12 UTC
hmm, yes. I wonder why I thought this. Must have saw it somewhere or was confused.
Comment 3 Fabian Groffen gentoo-dev 2009-07-08 17:04:04 UTC
another thing is that we /need/ configure at least for chpathtool
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-17 22:12:53 UTC
Good idea, but too hard to track for right now on bugzilla.