Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 222571 Details for
Bug 299390
sys-libs/gdbm-1.8.3-r4: enabling LFS seems to break with db's generated by non-LFS gdbm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Does all this stuff automagically
gdbm_convert.sh (text/plain), 1.03 KB, created by
Greg Turner
on 2010-03-07 20:45:41 UTC
(
hide
)
Description:
Does all this stuff automagically
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2010-03-07 20:45:41 UTC
Size:
1.03 KB
patch
obsolete
>#!/bin/bash > >oldpwd="$(pwd)" >thetmpdir="/tmp/remove_me" >attachmentid=215326 > >mkdir "${thetmpdir}" >cd "${thetmpdir}" > >eval "$( emerge --info | egrep '^PORTDIR=|^PORTAGE_TMPDIR=' \ > | sed 's/^\(.*\)=/\L\1=/')" > >ebuild "${portdir}/sys-libs/gdbm/gdbm-1.8.3-r3.ebuild" install \ >&& gdbmtmp="${portage_tmpdir}/portage/sys-libs/gdbm-1.8.3-r3" \ >&& cp "${gdbmtmp}/image/usr/lib/libgdbm.a" . || { echo something bad happend.; exit 1 ; } > >ebuild "${portdir}/sys-libs/gdbm/gdbm-1.8.3-r3.ebuild" clean > >wget -S -O converter.c "http://bugs.gentoo.org/attachment.cgi?id=${attachmentid}" \ >&& gcc converter.c -o converter libgdbm.a -ldl \ >&& find /etc /var -type f -exec file {} + \ > | grep 'GNU dbm 1.x or ndbm database' \ > | sed 's/:.*$//' | while read f ; do > echo converting "$f" > ./converter "$f" || { echo sorry, converting "$f" failed; break; } > echo "Successful. You may wish to remove "${f}.upgrade.tmp" > done > >cd "${oldpwd}" > >echo "You may wish to remove ${thetmpdir}" >echo "If conversion was successful, it serves no further purpose."
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 299390
:
215240
|
215326
|
222571
|
222581