Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489336 - sys-cluster/torque[-server] - cp: cannot create regular file ‘/var/tmp/portage/sys-cluster/torque-4.1.5.1/image///var/spool/torque/server_priv/nodes’: No such file or directory
Summary: sys-cluster/torque[-server] - cp: cannot create regular file ‘/var/tmp/portag...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-10-25 07:37 UTC by Olaf Leidinger
Modified: 2014-10-17 03:59 UTC (History)
2 users (show)

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


Attachments
fix for the ebuild (no_server_compile_fix.patch,499 bytes, patch)
2013-10-25 07:39 UTC, Olaf Leidinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Leidinger 2013-10-25 07:37:07 UTC
Disabling the "server" use flag, install of torque fails:

>>> Installing (1 of 1) sys-cluster/torque-4.1.5.1
cp: cannot create regular file ‘/var/tmp/portage/sys-cluster/torque-4.1.5.1/image///var/spool/torque/server_priv/nodes’: No such file or directory
 * ERROR: sys-cluster/torque-4.1.5.1::gentoo failed (preinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called pkg_preinst
 *   environment, line 2926:  Called die
 * The specific snippet of code:
 *           cp "${ROOT}${PBS_SERVER_HOME}/server_priv/nodes" "${D}"/${PBS_SERVER_HOME}/server_priv/nodes || die;


Reproducible: Always
Comment 1 Olaf Leidinger 2013-10-25 07:39:59 UTC
Created attachment 361872 [details, diff]
fix for the ebuild

This skips the copying of the file, if server isn't built.
Comment 2 Justin Bronder (RETIRED) gentoo-dev 2014-10-17 03:59:47 UTC
+  17 Oct 2014; Justin Bronder <jsbronder@gentoo.org> torque-4.1.5.1-r1.ebuild,
+  torque-4.1.7.ebuild, torque-4.2.9-r1.ebuild:
+  Only preserve nodes if server is enabled, #489336. Thanks to Olaf Leidinger
+  for the patch.
+

Thanks for your patience.