Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 373992 Details for
Bug 506276
[TRACKER] SYMLINK_LIB=no / 17.1 profiles [FILE A SEPARATE BUG INSTEAD OF COMMENTING HERE!]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
conversion script
multilib-conv.sh (text/x-sh), 2.80 KB, created by
Jonathan Callen (RETIRED)
on 2014-03-31 23:16:12 UTC
(
hide
)
Description:
conversion script
Filename:
MIME Type:
Creator:
Jonathan Callen (RETIRED)
Created:
2014-03-31 23:16:12 UTC
Size:
2.80 KB
patch
obsolete
>#!/bin/bash > >cat <<"EOF" >WARNING! >This script assumes that everything will Just Work, so there is no error >checking whatsoever included. It is also a work in progress, so there may be >bugs. Please report any bugs found to <jcallen@gentoo.org>. > >Please enter the following sentence (with punctation and capitalization) and >press Enter, or press Ctrl-C to quit: > >I understand that this script may break my system and have created a backup. > >EOF > >read line >if [[ $line != "I understand that this script may break my system and have created a backup." ]]; then > echo "Goodbye!" > exit 1 >fi > >#set -x > >for newdir in /lib /usr/lib /usr/local/lib; do > olddir=${newdir}32 > [[ -L $newdir ]] && rm "$newdir" > [[ -d $newdir ]] || mkdir "$newdir" > [[ -e $olddir/.keep ]] && mv "$olddir/.keep" "$newdir/.keep" >done > >for newdir in /lib /usr/lib /usr/local/lib; do > olddir=${newdir}64 > [[ -d $olddir ]] || continue > while read -d '' oldfile; do > newfile=${oldfile/#$olddir/$newdir} > if [[ -L $oldfile ]]; then > oldgrep="^sym $oldfile " > newgrep="^sym $newfile " > type=sym > elif [[ -d $oldfile ]]; then > oldgrep="^dir $oldfile\$" > newgrep="^dir $newfile\$" > type=dir > else > oldgrep="^obj $oldfile " > newgrep="^obj $newfile " > type=obj > fi > grep -r --include CONTENTS -q -e "$oldgrep" /var/db/pkg > inold=$? > grep -r --include CONTENTS -q -e "$newgrep" /var/db/pkg > innew=$? > if [[ $inold == 0 && $innew == 0 ]]; then > if [[ $type == dir ]]; then > mkdir -pv "$newfile" > chown -c --reference="$oldfile" "$newfile" > chmod -c --reference="$oldfile" "$newfile" > else > echo "Houston, we have a problem!" > echo "Portage expects there to be different files at $oldfile and $newfile" > echo "Leaving file at $oldfile" > fi > elif [[ $innew == 0 ]]; then > if [[ $type == dir ]]; then > mkdir -pv "$newfile" > chown -c --reference="$oldfile" "$newfile" > chmod -c --reference="$oldfile" "$newfile" > rmdir -v --ignore-fail-on-non-empty $oldfile > else > echo "Moving $oldfile to $newfile" > mkdir -pv "${newfile%/*}" > mv -v "$oldfile" "$newfile" > fi > fi > done < <(find "$olddir" -mindepth 1 -depth -type l -print0; find "$olddir" -mindepth 1 -depth ! -type l -print0) >done > >mv -v /lib64/ld-linux.so.2 /lib/ld-linux.so.2 >sed -i -e 's@/lib64/ld-linux.so.2@/lib/ld-linux.so.2@' /var/db/pkg/sys-libs/glibc-*/CONTENTS >touch -r /var/db/pkg/sys-libs/glibc-*/CONTENTS /var/db/pkg/sys-libs/glibc-* /var/db/pkg/sys-libs /var/db/pkg > >make_conf=/etc/portage/make.conf >if [[ ! -e $make_conf && -e /etc/make.conf ]]; then > make_conf=/etc/make.conf >fi > >echo "Updating portage configuration in $make_conf" >echo "LIBDIR_x86=lib" >> $make_conf >echo "SYMLINK_LIB=no" >> $make_conf > >echo "Rebuilding packages installed to old 32-bit dirs" >emerge -avt1 /lib32 /usr/lib32 > >echo "Well, I did everything I could; I hope your system is still working"
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 Raw
Actions:
View
Attachments on
bug 506276
:
373992
|
374432
|
376516