<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2190016246436172319</id><updated>2011-09-18T15:57:18.659+03:00</updated><category term='make.conf'/><category term='march'/><category term='portage'/><category term='cpu'/><category term='CFLAGS'/><title type='text'>Gentoo! What did you say?</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-6625272281528517038</id><published>2011-07-27T18:13:00.000+03:00</published><updated>2011-07-27T18:13:40.177+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cpu'/><category scheme='http://www.blogger.com/atom/ns#' term='CFLAGS'/><category scheme='http://www.blogger.com/atom/ns#' term='march'/><category scheme='http://www.blogger.com/atom/ns#' term='make.conf'/><title type='text'>Finding CPU flags using gcc</title><content type='html'>Hi all,&lt;br /&gt;One of Gentoo's most attractive features is the ability to specify the cpu CFLAGS, in order to compile all the system to use as much of the hardware as possible. &lt;br /&gt;This leads us to finding the correct cpu flags to include in our /etc/make.conf file. &lt;br /&gt;The approach I was using until now, is to find my cpu flags in the Gentoo wiki page: &lt;a href="http://en.gentoo-wiki.com/wiki/Safe_Cflags"&gt;Safe Cflags&lt;/a&gt;. There you can find your cpu by using 'cat /proc/cpuinfo'. &lt;br /&gt;Another approach is to use the &lt;code&gt;-march=native&lt;/code&gt; flag, which tells gcc to find the correct CFLAGS for my cpu. &lt;br /&gt;When you compile systems for embedded or other targets, you can't use &lt;code&gt;-march=native&lt;/code&gt;, because all the packages will be built for the running cpu and not the target cpu. To compile for the target cpu, you will need to find the flags that suits your target cpu, then apply them in your build environment. &lt;br /&gt;&lt;br /&gt;Today I encountered a post from &lt;a href="http://archives.gentoo.org/gentoo-user/msg_db4dd6820807aff46268ca3d84c30a74.xml"&gt;Andy Wilkinson&lt;/a&gt; on the Gentoo user mailing list. He describes a very neat trick to find our cpu CFLAGS. &lt;br /&gt;&lt;code&gt;gcc -### -e -v -march=native /usr/include/stdlib.h&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This command output will show COLLECT_GCC_OPTIONS which are the options gcc find about your cpu when using -march=native. Here is the output:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;COLLECT_GCC_OPTIONS='-e' '-v'  '-fPIE' '-pie'&lt;br /&gt; "/usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1" "-quiet" "/usr/include/stdlib.h" "-D_FORTIFY_SOURCE=2" "-march=core2" "-mcx16" "-msahf" "-msse4.1" "--param" "l1-cache-size=32" "--param" "l1-cache-line-size=64" "--param" "l2-cache-size=3072" "-mtune=core2" "-fno-strict-overflow" "-quiet" "-dumpbase" "stdlib.h" "-auxbase" "stdlib" "-fPIE" "-o" "/tmp/cc8bTF68.s" "--output-pch=/usr/include/stdlib.h.gch"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;As you see, my cpu is core2 with msse4.1. You also get all the params of the cache size for free.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-6625272281528517038?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/6625272281528517038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flags-using-gcc.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/6625272281528517038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/6625272281528517038'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flags-using-gcc.html' title='Finding CPU flags using gcc'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-8214377997832740434</id><published>2010-10-03T17:53:00.000+02:00</published><updated>2010-10-03T17:53:50.974+02:00</updated><title type='text'>What the hell did I install ?!</title><content type='html'>So I got a new laptop from my work. I have already my IBM x60s running Gentoo. I want to install my new Lenovo x200 with about the same configuration. &lt;br /&gt;So what did I installed on my IBM x60s?&lt;br /&gt;&lt;pre class="brush:plain"&gt;cat /var/lib/portage/world&lt;br /&gt;&lt;/pre&gt;shows you all the packages you have ran 'emerge package'. It will not show you all the dependencies that portage have added, so its a clean list of packages you installed. &lt;br /&gt;&lt;br /&gt;I copy the world file to my fresh install and edit it deleting packages I don't need. &lt;br /&gt;But wait! Don't install this packages yet. You will download lot of blobs that you have already. &lt;br /&gt;In my x60s all the packages are stored in /usr/portage/distfiles/. &lt;br /&gt;So I just copy all the files from the old computer to the new computer. I do it with rsync, but you can do it with scp, cp+sshfs etc. &lt;br /&gt;&lt;pre class="brush:plain"&gt;rsync -avPn --exclude=svn-src /usr/portage/distfiles/* x200/usr/portage/distfiles/&lt;br /&gt;&lt;/pre&gt;Lets make sure we have all the blobs:&lt;br /&gt;&lt;pre class="brush:plain"&gt;emerge --fetchonly $(cat copied.world.file)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now we can install everything ;-)&lt;br /&gt;&lt;pre class="brush:plain"&gt;emerge $(cat copied.world.file)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Simple!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-8214377997832740434?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/8214377997832740434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/10/what-hell-did-i-install.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/8214377997832740434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/8214377997832740434'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/10/what-hell-did-i-install.html' title='What the hell did I install ?!'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-4888072935519548685</id><published>2010-04-28T13:26:00.000+03:00</published><updated>2010-04-28T13:26:16.468+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='portage'/><title type='text'>What does this USE flag do?</title><content type='html'>Hi,&lt;br /&gt;Today I ran world update and saw that the kernel sources have a new USE flag: deblob.&lt;br /&gt;What does deblob do?&lt;br /&gt;There are 3 ways that I know of to find the answer.&lt;br /&gt;Here they are:&lt;br /&gt;The first is using the command line 'euse' from app-portage/gentoolkit:&lt;br /&gt;&lt;pre class="brush:plain"&gt; $ euse -I deblob&lt;br /&gt;global use flags (searching: deblob)&lt;br /&gt;************************************************************&lt;br /&gt;no matching entries found&lt;br /&gt;&lt;br /&gt;local use flags (searching: deblob)&lt;br /&gt;************************************************************&lt;br /&gt;[+ C  ] deblob (sys-kernel/gentoo-sources):&lt;br /&gt;Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt;&lt;/pre&gt;Much faster option is using 'quse' from app-portage/portage-utils:&lt;br /&gt;&lt;pre class="brush:plain"&gt; $ quse -D deblob&lt;br /&gt; local:deblob:sys-kernel/ck-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/gentoo-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/git-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/hardened-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/mips-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/mm-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/openvz-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/tuxonice-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/vanilla-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/vserver-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/xen-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt; local:deblob:sys-kernel/zen-sources: Remove binary blobs from kernel sources to provide libre license compliance.&lt;br /&gt;&lt;/pre&gt;And finally the option from the &lt;a href="flags http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=2"&gt;Gentoo handbook USE flags&lt;/a&gt;:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ cat /usr/portage/profiles/use.desc | grep deblob&lt;br /&gt;&lt;/pre&gt;The last option doesn't always produce results. Its better to use the first two (euse, quse).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-4888072935519548685?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/4888072935519548685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/what-does-this-use-flag-do.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/4888072935519548685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/4888072935519548685'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/what-does-this-use-flag-do.html' title='What does this USE flag do?'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-5008176934045713575</id><published>2010-04-16T20:18:00.002+03:00</published><updated>2010-04-17T22:40:28.891+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='portage'/><title type='text'>Searching for installed packages in special section/category</title><content type='html'>&lt;pre class="brush:plain"&gt;$ for i in /usr/portage/dev-ruby/*; do eix -I --compact dev-ruby/$(basename $i); done  | grep I&lt;br /&gt;&lt;/pre&gt;This will show us all the installed packages under /usr/portage/dev-ruby.&lt;br /&gt;How can we do it better?&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ equery list -i | grep dev-ruby&lt;br /&gt;&lt;/pre&gt;So we need to find a way to tell equery or eix to search just in dev-ruby category.&lt;br /&gt;I asked this question in &lt;a href="http://forums.gentoo.org/viewtopic-t-823826-start-0-postdays-0-postorder-asc-highlight-.html?sid=cca0c4f963b0f5d25124795cc5d4737b"&gt;Gentoo Forums&lt;/a&gt; and got the answer I was looking for. Hehe.&lt;br /&gt;Its:&lt;br /&gt;&lt;pre class="brush:plain"&gt;eix -IcA dev-ruby&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;-I&lt;/b&gt; is for installed packages.&lt;br /&gt;&lt;b&gt;-c&lt;/b&gt; is for compact output (one line per package)&lt;br /&gt;&lt;b&gt;-A&lt;/b&gt; is the most important flag, we searched for and it is the &lt;b&gt;--category-name&lt;/b&gt;&lt;br /&gt;So we came back to eix and it solved our problems.&lt;br /&gt;Sometimes you read the manual page, and you just don't find what you are looking for, even though its there obvious in plain text ;-) &lt;br /&gt;&lt;br /&gt;In the &lt;a href="http://forums.gentoo.org/viewtopic-t-823826-start-0-postdays-0-postorder-asc-highlight-.html?sid=cca0c4f963b0f5d25124795cc5d4737b"&gt;thread&lt;/a&gt;  where I asked the question, I got a few more ways to do this.&lt;br /&gt;&lt;pre class="brush:plain"&gt;$  ls /var/db/pkg/dev-ruby/&lt;br /&gt;cmdparse-2.0.2  rubygems-1.3.5&lt;br /&gt;&lt;/pre&gt;Another way is using qlist from app-portage/portage-utils this way:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$  qlist -I dev-ruby&lt;br /&gt;dev-ruby/cmdparse&lt;br /&gt;dev-ruby/rubygems&lt;br /&gt;&lt;/pre&gt;This qlist command is equivalent to this eix command:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ eix -I --only-names dev-ruby/&lt;br /&gt;dev-ruby/cmdparse&lt;br /&gt;dev-ruby/rubygems&lt;br /&gt;&lt;/pre&gt;In the last command the / after dev-ruby is important. qlist doesn't have this problem. &lt;br /&gt;&lt;br /&gt;I didn't go deeply how every command is working, but as a solution to our discussion, this is more then enough ;-)&lt;br /&gt;&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-5008176934045713575?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/5008176934045713575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/searching-for-installed-packages-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/5008176934045713575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/5008176934045713575'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/searching-for-installed-packages-in.html' title='Searching for installed packages in special section/category'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-1880109176598066962</id><published>2010-04-16T13:28:00.010+03:00</published><updated>2010-04-16T14:29:34.092+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='portage'/><title type='text'>What package contain this file?</title><content type='html'>Hi,&lt;br /&gt;We have a file we want to use, but we don't know which package contain this file. How can we find the package containing this file? Read on....&lt;br /&gt;&lt;br /&gt;Lets install equery.&lt;br /&gt;So lets search and see if there is a package named equery:&lt;br /&gt;&lt;pre class="brush:bash"&gt;$ eix equery&lt;br /&gt;&lt;/pre&gt;Well yes, &lt;br /&gt;&lt;pre class="brush:plain"&gt;No matches found&lt;br /&gt;&lt;/pre&gt;So let us try search the description of packages for equery:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ eix -S equery&lt;br /&gt;[I] app-shells/gentoo-bashcomp&lt;br /&gt;     Available versions:  20090613 ~20091225&lt;br /&gt;     Installed versions:  20090613(14:24:23 01/04/10)&lt;br /&gt;     Homepage:            http://www.gentoo.org/&lt;br /&gt;     Description:         Gentoo-specific bash command-line completions (emerge, ebuild, equery, repoman, layman, etc)&lt;br /&gt;&lt;/pre&gt;Bash completion is not what we need.&lt;br /&gt;So we left with using equery to search for equery ;-)&lt;br /&gt;equery utility is installed in my computer so lets use it.&lt;br /&gt;Let's run equery alone:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ equery       &lt;br /&gt;!!! No command or unknown command given&lt;br /&gt;Usage: equery &amp;lt;global-opts&amp;gt; command &amp;lt;local-opts&amp;gt;&lt;br /&gt;where &amp;lt;global-opts&amp;gt; is one of&lt;br /&gt; -q, --quiet   - minimal output&lt;br /&gt; -C, --nocolor - turn off colours&lt;br /&gt; -h, --help    - this help screen&lt;br /&gt; -V, --version - display version info&lt;br /&gt; -N, --no-pipe - turn off pipe detection&lt;br /&gt;where command(short) is one of&lt;br /&gt; belongs(b) &amp;lt;local-opts&amp;gt; files... - list all packages owning files...&lt;br /&gt; changes(c)  - not implemented yet&lt;br /&gt; check(k) pkgspec - check MD5sums and timestamps of pkgspec's files&lt;br /&gt; depends(d) &amp;lt;local-opts&amp;gt; pkgspec - list all direct dependencies matching pkgspec&lt;br /&gt; depgraph(g) &amp;lt;local-opts&amp;gt; pkgspec - display a dependency tree for pkgspec&lt;br /&gt; files(f) &amp;lt;local-opts&amp;gt; pkgspec - list files owned by pkgspec&lt;br /&gt; glsa(a)  - not implemented yet&lt;br /&gt; hasuse(h) &amp;lt;local-opts&amp;gt; useflag - list all packages with useflag&lt;br /&gt; list(l) &amp;lt;local-opts&amp;gt; pkgspec - list all packages matching pkgspec&lt;br /&gt; size(s) &amp;lt;local-opts&amp;gt; pkgspec - print size of files contained in package pkgspec&lt;br /&gt; stats(t)  - not implemented yet&lt;br /&gt; uses(u) &amp;lt;local-opts&amp;gt; pkgspec - display USE flags for pkgspec&lt;br /&gt; which(w) pkgspec - print full path to ebuild for package pkgspec&lt;br /&gt;&lt;/pre&gt;The line:&lt;br /&gt;&lt;pre class="brush:plain"&gt;belongs(b) &amp;lt;local-opts&amp;gt; files... - list all packages owning files...&lt;br /&gt;&lt;/pre&gt;Is what we want to use to search what package installs the utility equery. Perfect!&lt;br /&gt;So we run:&lt;br /&gt;&lt;pre class="brush:plain"&gt;$ equery belongs $(which equery)&lt;br /&gt;[ Searching for file(s) /usr/bin/equery in *... ]&lt;br /&gt;app-portage/gentoolkit-0.2.4.6.1-r1 (/usr/bin/equery)&lt;br /&gt;&lt;/pre&gt;Oh, ok, now we know that /usr/bin/equery is installed by app-portage/gentoolkit.&lt;br /&gt;Now to use it, just &lt;br /&gt;&lt;pre class="brush:plain"&gt;$ emerge -av app-portage/gentoolkit&lt;br /&gt;&lt;/pre&gt;and enjoy :-)&lt;br /&gt;&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-1880109176598066962?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/1880109176598066962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/what-package-contain-this-file.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/1880109176598066962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/1880109176598066962'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/what-package-contain-this-file.html' title='What package contain this file?'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2190016246436172319.post-6519345327815494486</id><published>2010-04-16T01:53:00.009+03:00</published><updated>2010-04-16T03:31:29.141+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='portage'/><title type='text'>Multiple portage SYNC servers</title><content type='html'>My home server died, and it will be down until I figure out what is the problem.&lt;br /&gt;The server is syncing portage everyday and share the portage tree in the local network. This lets me sync my laptop against my local server. Faster and no double rsync on remote rsync servers.&lt;br /&gt;This setup is pretty simple. You can learn how to do it &lt;a href="http://en.gentoo-wiki.com/wiki/Local_rsync_mirror"&gt;here&lt;/a&gt;.&lt;br /&gt;The important thing is to define the SYNC variable in make.conf as:&lt;br /&gt;&lt;pre class="brush:bash"&gt;SYNC="rsync://LOCAL_SERVER_IP/gentoo-portage"&lt;/pre&gt;After my server died, I just added a real server to SYNC line:&lt;br /&gt;&lt;pre class="brush:bash"&gt;SYNC="rsync://LOCAL_SERVER_IP/gentoo-portage rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage/"&lt;/pre&gt;Exactly as we use GENTOO_MIRRORS variable.&amp;nbsp;&lt;br /&gt;Nope, it doesn't work. I have asked in Gentoo forums &lt;a href="http://forums.gentoo.org/viewtopic-t-823606-highlight-.html"&gt;here&lt;/a&gt; why there is no multiple sync servers supported.&lt;br /&gt;I have solved it like this in a standalone script:&lt;br /&gt;&lt;pre class="brush:bash"&gt;SYNC_SERVERS="rsync://LOCALSERVER/gentoo-portage rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage/ rsync://mirror.isoc.org.il/gentoo-portage/"&lt;br /&gt;for server in $SYNC_SERVERS&lt;br /&gt;do&lt;br /&gt;        SYNC="$server" eix-sync -q &amp;amp;&amp;amp; break&lt;br /&gt;done&lt;/pre&gt;This behaviour of SYNC variable in make.conf should be corected to support multiple rsync servers.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kfir&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2190016246436172319-6519345327815494486?l=gentoo-what-did-you-say.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gentoo-what-did-you-say.blogspot.com/feeds/6519345327815494486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/multiple-portage-sync-servers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/6519345327815494486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2190016246436172319/posts/default/6519345327815494486'/><link rel='alternate' type='text/html' href='http://gentoo-what-did-you-say.blogspot.com/2010/04/multiple-portage-sync-servers.html' title='Multiple portage SYNC servers'/><author><name>Kfir</name><uri>http://www.blogger.com/profile/12502606678873681742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
