Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698378 - sys-cluster/slurm-19.05.3.2 - .../temp/environment: line 2854: cd: .../image/lib/systemd/system: No such file or directory
Summary: sys-cluster/slurm-19.05.3.2 - .../temp/environment: line 2854: cd: .../image/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 13:57 UTC by Denis Lisov
Modified: 2019-10-25 07:41 UTC (History)
2 users (show)

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


Attachments
build log (slurm-19.05.3.2:20191023-125314.log.gz,86.58 KB, application/gzip)
2019-10-23 13:59 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2019-10-23 13:57:44 UTC
System: ~amd64, merged /usr (globally USE=-split-usr)

According to pkg-config,
$ pkg-config --variable=systemdsystemunitdir systemd
/usr/lib/systemd/system

Presumably following this, the build process installs the service files into "${D}"/usr/lib/systemd/system/

After that the ebuild tries to edit the unit files and fails

make: Leaving directory '/tmp/portage/sys-cluster/slurm-19.05.3.2/work/slurm-19.05.3-2/contribs/pam'     
/tmp/portage/sys-cluster/slurm-19.05.3.2/temp/environment: line 2854: cd: /tmp/portage/sys-cluster/slurm-19.05.3.2/image/lib/systemd/system: No such file or directory
 * ERROR: sys-cluster/slurm-19.05.3.2::gentoo failed (install phase):                                                
 *   (no error message)                                            
 *                                                                                                                                     
 * Call stack:                                                                                                                                                                                                                                                                
 *     ebuild.sh, line 125:  Called src_install                                                                                                                                                                                                                               
 *   environment, line 2854:  Called die           
 * The specific snippet of code:                                                                                                       
 *       cd "${D}"/lib/systemd/system || die;

Reproducible: Always
Comment 1 Denis Lisov 2019-10-23 13:59:06 UTC
Created attachment 593692 [details]
build log
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-10-25 07:41:30 UTC
I've moved this to prepare, so should not now really bind to the `/lib` directly. Thanks for the report!