Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14679 Details for
Bug 13616
per package USE flags and KEYWORDS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
try this one instead ;) (checkcurrentcustomflags)
checkcurrentcustomflags (text/plain), 1.35 KB, created by
John Mylchreest (RETIRED)
on 2003-07-18 16:28:12 UTC
(
hide
)
Description:
try this one instead ;) (checkcurrentcustomflags)
Filename:
MIME Type:
Creator:
John Mylchreest (RETIRED)
Created:
2003-07-18 16:28:12 UTC
Size:
1.35 KB
patch
obsolete
>#!/bin/bash >################################# ># Bash script to complement bug #13616 ># this will grab the current USE from emerge info > ># Copyright Gentoo Linux ># Written By John Mylchreest <johnm@gentoo.org> >################################# > >PKG_DIR="/var/db/pkg/" >PACKAGE_USE_FILE="/etc/portage/package.use" >CURRENT_FLAGS="$(emerge info | grep USE | sed 's:"::g' | sed 's:USE=::g')" > >if [ ! "$(whoami)" == "root" ] ; then > echo "This script must be ran as root" > exit 0 >fi > >if [ -f "${PACKAGE_USE_FILE}" ] ; then > echo "Moving ${PACKAGE_USE_FILE} to ${PACKAGE_USE_FILE}.orig" > mv ${PACKAGE_USE_FILE} ${PACKAGE_USE_FILE}.orig >fi > >echo "Searching packages currently installed for variation on USE flags, This will take a LONG time..." > >for x in $(grep -F -R "" ${PKG_DIR}/*/*/USE) >do > PKG_TMP=$(echo ${x} | cut -f1 -d: | sed "s:${PKG_DIR}\/::g" | sed "s:-[0-9].*::g") > if [ -n "$(echo ${PKG_TMP} | grep "/")" ] ; then > if [ -n "${PACKAGE_USE}" ] ; then > echo " Found ${PACKAGE_NAME}->'${PACKAGE_USE}'" > $(echo "${PACKAGE_NAME} ${PACKAGE_USE}" | sed 's: : :g' >> ${PACKAGE_USE_FILE}) > fi > > PACKAGE_NAME=${PKG_TMP} > PACKAGE_USE="" > > echo "Checking: ${PACKAGE_NAME}" > else > [ -z "$(echo " ${CURRENT_FLAGS}" | grep " ${PKG_TMP}" 2> /dev/null)" ] && PACKAGE_USE="${PACKAGE_USE} ${PKG_TMP}" > fi >done > >echo "Finished, please check ${PACKAGE_USE_FILE} for correctness"
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 13616
:
7155
|
7156
|
7264
|
7265
|
9218
|
9219
|
10588
|
10589
|
12254
|
12255
|
13752
|
13753
|
14390
|
14678
|
14679
|
14847
|
14873
|
15239
|
15240
|
15241
|
15291
|
15303
|
15304
|
15347
|
15348
|
15349
|
15614
|
15715
|
16609
|
16610
|
16611
|
16768
|
17925
|
17926
|
19128
|
20637
|
20652
|
21575
|
21577