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

Bug 771312

Summary: chmod: cannot access '/build/lakitusbin/unix_chkpwd': No such file or directory
Product: Gentoo Linux Reporter: aaltinay101
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED INVALID    
Severity: normal CC: floppym, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://cloud.google.com/container-optimized-os/docs/how-to/building-from-open-source
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge--info
emerge-lakitu--info
logs

Description aaltinay101 2021-02-18 17:41:35 UTC
Reopening this bug because updated ebuild file that doesn't use PREFIX hasn't fix the problem in my environment. Adding "/" to the beginning of sbin/unix_chkpwd in ebuild file fixed the error.

Reproducible: Always

Steps to Reproduce:
1.emerge-lakitu pam
2.
3.
Comment 1 aaltinay101 2021-02-18 17:41:59 UTC
Created attachment 687474 [details]
emerge--info
Comment 2 aaltinay101 2021-02-18 17:42:21 UTC
Created attachment 687477 [details]
emerge-lakitu--info
Comment 3 aaltinay101 2021-02-18 17:42:46 UTC
Created attachment 687480 [details]
logs
Comment 4 aaltinay101 2021-02-18 17:44:08 UTC
Please let me know if there is any other data I can provide on my side.
Comment 5 Emily Rowlands 2021-02-18 18:04:33 UTC
Looks like a duplicate of bug 771132
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-18 19:28:54 UTC
The confusion comes from how this only matters in two cases:
1) Gentoo Prefix (where PAM doesn't make sense)
2) --root and so on

Using "${ROOT}"/sbin/unix_chkpwd should work fine instead. Can you confirm?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-18 19:29:08 UTC
*** Bug 771132 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-18 19:46:35 UTC
Hm. The eclass is supposed to prefix it with ${ROOT} for us.

"If the file is a relative path (e.g. bin/foo rather than /bin/foo), then the appropriate path var ($D/$ROOT/etc...) will be prefixed based on the current ebuild phase."

(https://devmanual.gentoo.org/eclass-reference/fcaps.eclass/index.html)

Why isn't it?
Comment 9 Mike Gilbert gentoo-dev 2021-02-18 20:08:18 UTC
Based on emerge --info and the build log, this appears to be a bug report for ChromiumOS, not Gentoo.

Does the ChromiumOS repository include this eclass change?

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06ac51cf5bdb3220d427819cdfafdab231e4a4f8
Comment 10 aaltinay101 2021-02-18 21:42:48 UTC
Looks like eclass change doesn't exist. I just verified that it fixes the error. Thank you for your time Mike and Sam!