info2flags -h /usr/sbin/info2flags: line 27: dohelp: command not found perhaps relying on a newer portage version? emerge info output: Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikm od mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib di rectfb alsa gdbm berkdb slang readline arts tetex svga tcltk java mysql X sdl tc pd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozill a cdr scanner dga doc flash gd imap ipv6 maildir oci8 pic plotutils samba sse us b wmf -gpm -gnome" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j4" AUTOCLEAN="yes" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage" FEATURES="sandbox ccache distcc"
Nope, I never wrote the help functions in genflags yet. Patches accepted.
Created attachment 21048 [details, diff] Help function for host2flags, tone down standard CFLAGS. Alright, help function for host2flags, let me know if you like it. This patch also tones down the standard CFLAGS to -O2, please commit this unmodified. Specifying -O3 by default is generally a bad idea, as it overoptimizes. Not only is -O2 faster, it has less tendency to break compiles. (And since this tool aims to specify flags that Just Work(TM), -O2 seems more appropriate).
Created attachment 21050 [details, diff] Add help function to info2flags.
Created attachment 21052 [details, diff] Adds help function to info2host Right, then this concludes things. I'm still wondering who added those patches in the diff's, they are not in my originals. Note that I specify the dohelp above the commandline-parsing, you need to have defined the function before you can use it, in bashscript. This is why the example help function in this file didn't work.
s/those patches/those tabs Comment makes a lot more sense this way.
fixed for 0.95 (coming out shortly).