Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 675667 Details for
Bug 417263
sys-apps/busybox[make-symlinks] should not overwrite existing files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make USE=make-symlinks safer
busybox-1.31.1-r3.ebuild-safe-make-symlinks.patch (text/plain), 1.40 KB, created by
Raffaello D. Di Napoli
on 2020-11-29 06:00:47 UTC
(
hide
)
Description:
Make USE=make-symlinks safer
Filename:
MIME Type:
Creator:
Raffaello D. Di Napoli
Created:
2020-11-29 06:00:47 UTC
Size:
1.40 KB
patch
obsolete
>--- /var/db/repos/gentoo/sys-apps/busybox/busybox-1.31.1-r3.ebuild 2020-11-02 07:09:14.000000000 -0500 >+++ busybox-1.31.1-r3.ebuild 2020-11-28 21:07:32.700600811 -0500 >@@ -303,14 +303,6 @@ > } > > pkg_preinst() { >- if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ -z "${ROOT}" ]] ; then >- ewarn "setting USE=make-symlinks and emerging to / is very dangerous." >- ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." >- ewarn "If you are creating a binary only and not merging this is probably ok." >- ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." >- die "silly options will destroy your system" >- fi >- > if use make-symlinks ; then > mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die > fi >@@ -322,7 +314,17 @@ > if use make-symlinks ; then > cd "${T}" || die > mkdir _install >- tar xf busybox-links.tar -C _install || die >+ safelinks=$( >+ tar tf busybox-links.tar | >+ grep -v '/$' | >+ while read f; do >+ PATH="${ROOT}/usr/sbin:${ROOT}/usr/bin:${ROOT}/sbin:${ROOT}/bin" \ >+ which "$(basename ${f})" >/dev/null 2>&1 || >+ echo "${f}" >+ done >+ ) >+ [[ -n "${safelinks}" ]] || die "no links to copy safely, would destroy your system: remove USE=make-symlinks" >+ tar xf busybox-links.tar -C _install ${safelinks} || die > cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417263
:
316189
|
612890
| 675667