Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417263 - sys-apps/busybox[make-symlinks] should not overwrite existing files
Summary: sys-apps/busybox[make-symlinks] should not overwrite existing files
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 12:30 UTC by Maksim 'max_posedon' Melnikau
Modified: 2015-11-13 05:42 UTC (History)
0 users

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


Attachments
cp -n (--no-clobber) is not destructive (busybox-1.20.1.ebuild.patch,411 bytes, patch)
2012-06-24 22:31 UTC, Maksim 'max_posedon' Melnikau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2012-05-23 12:30:35 UTC
For small/embedded systems busybox can be used as big part of the system (USE="make-symlinks"), but sometimes its important to have regular tools (kbd/util-linux/shadow/etc). In this case updating busybox's symlinks overwrite important parts of the system.

I suggest use tar "keep-old-files" mode for creating symlinks (tar -k)

Reproducible: Always
Comment 1 Maksim 'max_posedon' Melnikau 2012-06-24 22:31:02 UTC
Created attachment 316189 [details, diff]
cp -n (--no-clobber) is not destructive

This patch makes ebuild less destructive, in cases when you want use busybox for most, but not all system components.
Comment 2 SpanKY gentoo-dev 2012-06-28 04:01:46 UTC
Comment on attachment 316189 [details, diff]
cp -n (--no-clobber) is not destructive

i don't think that'll work as that flag isn't in POSIX :/

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html