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

Bug 669290

Summary: etc-update fails in prefix: uses HOST information for file pattern
Product: Gentoo/Alt Reporter: Olivier Huber <oli.huber>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Olivier Huber 2018-10-22 09:54:10 UTC
The setup is the following: gentoo prefix on a OpenSuse host.
when running etc-update to manage updates to the configuration files, the HOST OS information is used to define the get_basename, get_basename_find_opt, get_scan_regexp, get_live_file sh functions. 
Those search for rpmsave, rpmorig, and rpmnew patterns.

Hence, it does not detect the pending cfg updates.
Comment 1 Fabian Groffen gentoo-dev 2018-12-06 12:41:41 UTC
Oh... in Prefix it shouldn't try to detect anything, it should only do Gentoo-style stuff indeed!
Comment 2 Fabian Groffen gentoo-dev 2018-12-06 12:44:15 UTC
does it work correctly for you if you change etc-update OS_RELEASE_ID line to read

OS_RELEASE_ID=$(cat "/path/to/your/prefix"/etc/os-release 2>/dev/null | grep       '^ID=' | cut -d'=' -f2 | sed -e 's/"//g')

?
Comment 3 Fabian Groffen gentoo-dev 2018-12-06 14:36:37 UTC
The fix is in portage-2.3.45