Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437316 - sys-devel/prelink-20120628: read-only files (mounts) trigger abort: Could not rename temporary to ... - Invalid cross-device link
Summary: sys-devel/prelink-20120628: read-only files (mounts) trigger abort: Could not...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 15:14 UTC by Dennis Schridde
Modified: 2016-04-03 01:27 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 Dennis Schridde 2012-10-05 15:14:11 UTC
prelink spits out lots of:
---
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/bin/ia32/libintelremotemon.so: Invalid cross-device link
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/compiler/lib/intel64/libcomposerxe_libxml_2.7.so: Invalid cross-device link
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/compiler/lib/intel64/libcomposerxe_boost_system_1.34.so: Invalid cross-device link
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/compiler/lib/intel64/libcomposerxe_boost_regex_1.34.so: Invalid cross-device link
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/compiler/lib/intel64/libcomposerxe_cpil_2.10.so: Invalid cross-device link
prelink: Could not rename temporary to /opt/intel/composerxe-2013.0.079/bin/intel64/libintelremotemon.so: Invalid cross-device link
---

I assume that is because /opt is on another partition compared to whereever it tries to create the temporaries. prelink should probably be fixed to create the temporaries on the same partition.

Reproducible: Always
Comment 1 Dennis Schridde 2013-01-21 12:28:22 UTC
It appears that prelink tries to prelink on r/o partitions. When I remount /usr and /opt r/w, the "could not rename temporary — invalid cross-device link" errors are gone.

So prelink or the cronjob-script should probably warn in such case, and skip all binaries on r/o partitions?
Comment 2 Dennis Schridde 2013-01-21 12:32:59 UTC
This issue was also reported for Fedora a while ago. They implemented a fix, that does not mess up completely, but did not address the issue of the target file being read-only.

If detecting read-only partitions is too complex, maybe it would be easier to detect whether the target file is read-only, and skip it (in an early phase) in that case.
Comment 3 Dennis Schridde 2013-01-23 11:03:37 UTC
> read-only files (mounts) trigger lots of warnings: Invalid cross-device link
They do not only trigger a warning, but apparently also SIGABRT (quoting an email from cron):
/etc/cron.daily/prelink: line 57:  5723 Aborted                 /usr/sbin/prelink -av $PRELINK_OPTS >> ${log} 2>&1
Comment 4 SpanKY gentoo-dev 2016-04-03 01:27:08 UTC
please retest with prelink-20151030