Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669290 - etc-update fails in prefix: uses HOST information for file pattern
Summary: etc-update fails in prefix: uses HOST information for file pattern
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-22 09:54 UTC by Olivier Huber
Modified: 2018-12-06 14:36 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 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