Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 375718 Details for
Bug 508708
app-eselect/eselect-opengl: make updates atomic
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0002-simplify-file-deletion.patch
0002-simplify-file-deletion.patch (text/plain), 1.36 KB, created by
SpanKY
on 2014-04-25 19:31:39 UTC
(
hide
)
Description:
0002-simplify-file-deletion.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2014-04-25 19:31:39 UTC
Size:
1.36 KB
patch
obsolete
>From dc24785c4f08eaee4603f2fa24355df2f3790ceb Mon Sep 17 00:00:00 2001 >From: Mike Frysinger <vapier@gentoo.org> >Date: Fri, 25 Apr 2014 13:37:56 -0400 >Subject: [PATCH 2/4] simplify file deletion > >Running `rm` on one file at a time is needlessly slow. >--- > opengl.eselect | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > >diff --git a/opengl.eselect b/opengl.eselect >index 90ac51e..111412f 100644 >--- a/opengl.eselect >+++ b/opengl.eselect >@@ -106,9 +106,7 @@ setup_lib_symlinks() { > > pushd "${target}" &> /dev/null > # Note that lafiles are removed here and never enabled again >- for file in libGL{,core}.la ; do >- rm -f "${file}"* || die -q "Failed to delete ${file}" >- done >+ rm -f libGL{,core}.la* || die -q "Failed to delete old linker scripts" > > for file in "${profile_libdir}"/lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a}; do > upgrade_file "${file}" "${target}" >@@ -125,9 +123,7 @@ setup_extensions_symlinks() { > mkdir -p "${target}" || die "Failed to create ${target}" > pushd "${target}" &> /dev/null > # First remove old cruft symlinks >- for file in lib{wfb,glx,dri,dri2}.{so,dylib,a}; do >- rm -f "${file}" || die -q "Failed to delete ${targetdir}/${file}" >- done >+ rm -f lib{wfb,glx,dri,dri2}.{so,dylib,a} || die -q "Failed to delete old symlinks in ${targetdir}" > > # regenerate symlinks > for file in "${src}"/*.{so,dylib,a}; do >-- >1.9.2 >
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 508708
:
375716
| 375718 |
375720
|
375722