Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14396

Summary: ebuild.sh: keepdir() should check if .keep already exists
Product: Portage Development Reporter: Jukka Salmi <j+gentoo>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: normal CC: mholzer
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild.sh patch

Description Jukka Salmi 2003-01-22 17:35:30 UTC
a keepdir() which creates .keep files only if those file don't exist would solve
problems for people who have a read-only /usr/portage, e.g. mounted ro via nfs.

example: all sys-apps/baselayout ebuilds do a 'keepdir /usr/portage'; this makes
the emerge fail if /usr/portage is is read-only. if /usr/portage/.keep exists,
the call to touch(1) in keepdir() is needless.

a patch for /usr/lib/portage/ebuild.sh follows.
Comment 1 Jukka Salmi 2003-01-22 17:40:08 UTC
Created attachment 7541 [details, diff]
ebuild.sh patch

makes ebuild.sh to create .keep files only they don't exist
Comment 2 Jukka Salmi 2003-01-23 11:02:42 UTC
typo in patch comment: s/only they/only if they/
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-01-23 14:08:48 UTC
modified and integrated for next release
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-02-17 06:05:02 UTC
in testing.