Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14873 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]
checkflags
checkflags (text/plain), 1.92 KB, created by
John Mylchreest (RETIRED)
on 2003-07-22 09:40:03 UTC
(
hide
)
Description:
checkflags
Filename:
MIME Type:
Creator:
John Mylchreest (RETIRED)
Created:
2003-07-22 09:40:03 UTC
Size:
1.92 KB
patch
obsolete
>#!/bin/bash >################################ ># Copyright 2003 Gentoo Linux ># Written by John Mylchreest <johnm@gentoo.org> ># Jul 22, 2003. > >PACKAGE_DIR="/var/db/pkg/" >PORTAGE_DIR="/usr/portage" >PACKAGE_USE_FILE="/etc/portage/package.use" > >CURRENT_FLAGS="$(emerge info | grep USE | sed 's:"::g' | sed 's:USE=::g')" >PORTDIR_OVERLAY="$(emerge info | grep PORTDIR_OVERLAY | sed 's:"::g' | sed 's:PORTDIR_OVERLAY=::g')" > >get_packageflags() { > echo GETFLAGS >} > >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 PKG in $(grep -F -R "" ${PACKAGE_DIR}/*/*/USE | sed "s:\n: :g" | cut -f1 -d:) ; do > PKG_CAT=${PKG/*\/\//} > PKG_CAT=${PKG_CAT/\/*/} > PKG_NAME=$(echo ${PKG} | sed "s:-[0-9].*::g" | sed "s:.*${PKG_CAT}/::g") > PKG_VER=$(echo ${PKG} | sed "s:/USE::g" | sed "s:.*${PKG_CAT}/${PKG_NAME}-::g") > PKG_USE="$(cat ${PACKAGE_DIR}/${PKG_CAT}/${PKG_NAME}-${PKG_VER}/USE | sed "s:\n: :g")" > > echo "Checking: ${PKG_CAT}/${PKG_NAME}-${PKG_VER}" > > if [ -f "${PORTDIR_OVERLAY}/${PKG_CAT}/${PKG_NAME}/${PKG_NAME}-${PKG_VER}.ebuild" ] ; then > echo " Ebuild found in overlay" > FILE="${PORTDIR_OVERLAY}/${PKG_CAT}/${PKG_NAME}/${PKG_NAME}-${PKG_VER}.ebuild" > else > FILE="${PORTAGE_DIR}/${PKG_CAT}/${PKG_NAME}/${PKG_NAME}-${PKG_VER}.ebuild" > fi > > PKG_USEOFFSET="" > for i in ${PKG_USE} ; do > X=${i/-/} > > [ -z "$(echo " ${CURRENT_FLAGS}" | grep " ${i}")" ] && \ > [ -n "$(cat ${FILE}| grep "IUSE=.*${X}.*")" ] && \ > PKG_USEOFFSET="${PKG_USEOFFSET} ${i}" > done > > if [ -n "${PKG_USEOFFSET}" ] ; then > PKG_USEOFFSET=$(echo ${PKG_USEOFFSET} | sed 's: ::') > > echo " Found->'${PKG_USEOFFSET}'" > echo "${PKG_CAT}/${PKG_NAME} ${PKG_USEOFFSET}" >> ${PACKAGE_USE_FILE} > fi >done
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