<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alessandro.delgallo.net//index.php?action=history&amp;feed=atom&amp;title=Script_gentoo_use_flags</id>
	<title>Script gentoo use flags - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alessandro.delgallo.net//index.php?action=history&amp;feed=atom&amp;title=Script_gentoo_use_flags"/>
	<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;action=history"/>
	<updated>2026-09-15T07:35:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=5503&amp;oldid=prev</id>
		<title>Porcelinux at 16:46, 14 April 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=5503&amp;oldid=prev"/>
		<updated>2011-04-14T16:46:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:46, 14 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use &lt;/del&gt;flags are words representing parts of software that can be compiled with or without those pieces&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In [[Gentoo]] Linux portage, USE &lt;/ins&gt;flags are words representing parts of software that can be compiled with or without those &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;pieces&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== script ''uses'' ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== script ''uses'' ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# by &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;porcelinux82&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# by &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;porcelinux&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;source /etc/make.conf&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;source /etc/make.conf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;USEfiles=&amp;quot;/usr/portage/profiles/use.desc /usr/portage/profiles/use.local.desc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;USEfiles=&amp;quot;/usr/portage/profiles/use.desc /usr/portage/profiles/use.local.desc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Porcelinux</name></author>
	</entry>
	<entry>
		<id>https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=5501&amp;oldid=prev</id>
		<title>Porcelinux: moved USE flags to Script gentoo use flags: too generic name</title>
		<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=5501&amp;oldid=prev"/>
		<updated>2011-04-14T16:44:48Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/USE_flags&quot; class=&quot;mw-redirect&quot; title=&quot;USE flags&quot;&gt;USE flags&lt;/a&gt; to &lt;a href=&quot;/index.php/Script_gentoo_use_flags&quot; title=&quot;Script gentoo use flags&quot;&gt;Script gentoo use flags&lt;/a&gt;: too generic name&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:44, 14 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Porcelinux</name></author>
	</entry>
	<entry>
		<id>https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=3719&amp;oldid=prev</id>
		<title>Xunil: Created page with 'Use flags are words representing parts of software that can be compiled with or without those pieces    == script ''uses'' ==   it's a tiny dirty bash script very useful to know ...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Script_gentoo_use_flags&amp;diff=3719&amp;oldid=prev"/>
		<updated>2010-06-10T18:36:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Use flags are words representing parts of software that can be compiled with or without those pieces    == script &amp;#039;&amp;#039;uses&amp;#039;&amp;#039; ==   it&amp;#039;s a tiny dirty bash script very useful to know ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Use flags are words representing parts of software that can be compiled with or without those pieces&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== script ''uses'' ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
it's a tiny dirty bash script very useful to know the meaning of a use flag (and check his existance) from terminal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# by porcelinux82&lt;br /&gt;
source /etc/make.conf&lt;br /&gt;
USEfiles=&amp;quot;/usr/portage/profiles/use.desc /usr/portage/profiles/use.local.desc&amp;quot;&lt;br /&gt;
if ! [ &amp;quot;x$1&amp;quot; == &amp;quot;x&amp;quot; ]&lt;br /&gt;
then&lt;br /&gt;
        USES=&amp;quot;$1&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
        USES=$USE&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# to store the cleaned uses &lt;br /&gt;
 newuses=&amp;quot;&amp;quot;&lt;br /&gt;
for thisusefile in $USEfiles&lt;br /&gt;
do&lt;br /&gt;
echo &amp;quot;according: `basename $thisusefile` &lt;br /&gt;
...&amp;quot;&lt;br /&gt;
        for thisuse in $USES&lt;br /&gt;
        do&lt;br /&gt;
                desc=&amp;quot;&amp;quot;&lt;br /&gt;
                ABSflag=`echo $thisuse|sed -e s/-//`&lt;br /&gt;
                # echo &amp;quot;&amp;gt;&amp;gt; Use Flag [ $a ] &amp;quot; &lt;br /&gt;
                if ( `grep -q ^$ABSflag $thisusefile` )&lt;br /&gt;
                then&lt;br /&gt;
                        [ &amp;quot;$ABSflag&amp;quot; == &amp;quot;$thisuse&amp;quot;  ] || desc=&amp;quot;NOT&amp;gt; &amp;quot;&lt;br /&gt;
                        desc=&amp;quot;$desc &amp;quot;`grep &amp;quot;^$ABSflag&amp;quot; $thisusefile`&lt;br /&gt;
                        newuses=&amp;quot;$newuses $thisuse&amp;quot;&lt;br /&gt;
                else&lt;br /&gt;
                        desc=&amp;quot;!$ABSflag --&amp;gt; Use flag NOT FOUND !&amp;quot;&lt;br /&gt;
                fi&lt;br /&gt;
                echo $desc&lt;br /&gt;
&lt;br /&gt;
        done&lt;br /&gt;
echo &amp;quot;newuses:  $newuses&amp;quot;&lt;br /&gt;
done &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xunil</name></author>
	</entry>
</feed>