You are not logged in.

#1 2007-09-13 13:19:24

Bola
Member
From: Italia
Registered: 2007-02-16
Posts: 118

[Little Help] Archlinux from scratch

Well i tried to recompile all my system with this makepkg.conf:

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The FTP/HTTP download utility that makepkg should use to acquire sources
FTPAGENT="/usr/bin/wget --continue --passive-ftp --tries=3 --waitretry=3 --no-check-certificate"
#FTPAGENT="/usr/bin/snarf"
#FTPAGENT="/usr/bin/lftpget -c"

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="i686"
CHOST="i686-pc-linux-gnu"

#-- Exclusive: will only run on i686
# -mtune builds exclusively for an architecture
# -mcpu optimizes for an architecture, but builds for the whole processor family
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mtune=native"
CXXFLAGS="${CFLAGS}"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!fakeroot !distcc color !ccache)
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip !docs !libtool emptydirs)
#
#-- strip:     Strip symbols from binaries/libraries
#-- docs:      Save doc and info directories
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#
OPTIONS=(strip !docs libtool emptydirs)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Info and doc directories to remove (if option set correctly above)
DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/gnome/{,share/}{info,doc,gtk-doc})

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

# vim: set ft=sh ts=2 sw=2 et:

and using this script:

#!/bin/bash

#
# Update abs tree and pacman db
#
abs
pacman -Sy

#
# Get list of installed packages
#
pkglist=`pacman -Q | cut -d' ' -f1 | paste -s`

#
# Locate each package in abs tree
#
for pkg in $pkglist; do 
    search=`find /var/abs/ -type d -name $pkg`

    echo
    echo "Searching for: $pkg"
    echo "Result: $search"
    
    # Add it to makelist or norebuildlist
    pkgbuild="$search/PKGBUILD"
    if [ -f "$pkgbuild" ] ; then
        # Check if its already installed from source
        source=`srcpac -Qi $pkg | grep 'Source         :'`
        if [ "$source" = "Source         : No" ] ; then
            makelist="$makelist $pkg"
        else
            echo "Package was already built from source..."
            norebuildlist="$norebuildlist $pkg"
        fi
    else
        norebuildlist="$norebuildlist $pkg"
    fi
done

#
# Show list of packages not found in abs
#
echo
echo "Packages that won't be rebuilt:"
echo "-------------------------------"
echo
echo "$norebuildlist"

#
# Show list of packages to build
#
echo
echo "Packages to build:"
echo "------------------"
echo
echo "$makelist"

#
# Write to treebuildlist file
#
echo $makelist > treebuildlist
echo
echo "...wrote list to file: treebuildlist"

#
# Build the packages using aurbuild
#
echo
echo "Starting build..."
echo "-----------------"
echo
srcpac -Sb $makelist


echo
echo "-----------------------------------------------------------"
echo "                    REBUILD COMPLETE!"
echo "-----------------------------------------------------------"
echo

Running this script it's all OK but, at the end, it return me a strange output:

Packages that won't be rebuilt:
-------------------------------

 acl acpid alacarte alsa-lib alsa-oss alsa-utils alunn apr apr-util archlinux-menus aspell atk attr audiofile autoconf automake avahi bash bigreqsproto bin86 binutils bison bug-buddy bzip2 cairo cdparanoia clisp control-center coreutils cpio cpufrequtils cracklib cryptsetup csup cups curl damageproto db db4.1 dbus dbus-glib dbus-python dcron ddcxinfo-arch desktop-file-utils device-mapper dhcdbd dhclient dhcpcd dialog diffutils dmapi dmidecode dmxproto docbook-xml docbook-xsl dopewars e2fsprogs ed eel eject enchant eog esd evince evolution-data-server expat fakeroot fam file file-roller filesystem findutils firefox fixesproto flac flashplugin flex fnfx fontcacheproto fontconfig fontsproto freetype2 gail gawk gcalctool gcc gconf gconf-editor gd gdbm gdm geany gedit gen-init-cpio gettext ghostscript gksu glib2 glibc glproto gmp gnome-applets gnome-audio gnome-backgrounds gnome-desktop gnome-doc-utils gnome-icon-theme gnome-keyring gnome-media gnome-menus gnome-mime-data gnome-mount gnome-netstatus gnome-nettool gnome-network-manager gnome-panel gnome-power-manager gnome-python gnome-python-desktop gnome-session gnome-system-monitor gnome-terminal gnome-themes gnome-utils gnome-vfs gnome-volume-manager gnome2-user-docs gnuplot gnutls grep groff grub gsfonts gstreamer0.10 gstreamer0.10-alsa gstreamer0.10-bad gstreamer0.10-base gstreamer0.10-cdparanoia gstreamer0.10-ffmpeg gstreamer0.10-flac gstreamer0.10-gconf gstreamer0.10-good gstreamer0.10-mad gstreamer0.10-mpeg2dec gstreamer0.10-mpeg2enc gstreamer0.10-ogg gstreamer0.10-ugly gstreamer0.10-vorbis gstreamer0.10-xvid gtk-engines gtk2 gtksourceview gtkspell gucharmap guile gutenprint gzip hal hal-info heimdal hicolor-icon-theme hsqldb-java hunspell hwd hwdetect icon-naming-utils icu initscripts inputproto iproute iputils ipw2100-fw iso-codes jfsutils jre kbd kbproto kernel-headers kernel26 klibc klibc-extras klibc-udev lcms less lesstif libarchive libart-lgpl libbeagle libbonobo libbonoboui libcap libcroco libcups libdaemon libdatrie libdjvu libdmx libdownload libdrm libdv libexif libfontenc libgcrypt libgksu libgl-dri libglade libgnome libgnomecanvas libgnomecups libgnomekbd libgnomeprint libgnomeprintui libgnomeui libgpg-error libgsf libgtop libice libid3tag libidl2 libjpeg liblbxutil libldap libmad libmikmod libmpeg2 libnetworkmanager libnl libnotify libogg liboil libpcap libpng librep librsvg libsasl libsexy libsigsegv libsm libsmbios libsndfile libsoup libstdc++5 libtasn1 libthai libtiff libtool libusb libvorbis libwnck libwpd libx11 libxau libxaw libxcursor libxdamage libxdmcp libxext libxfixes libxfont libxfontcache libxft libxi libxinerama libxkbfile libxkbui libxklavier libxml2 libxmu libxp libxpm libxrandr libxrender libxres libxslt libxss libxt libxtrap libxtst libxv libxxf86dga libxxf86misc libxxf86vm licenses logrotate lshwd lvm2 lzo2 m4 mailx make man man-pages maxima mcpp mdadm mesa metacity mjpegtools mkinitcpio mktemp module-init-tools mozilla-common nano nautilus ncurses neon net-tools networkmanager notification-daemon nspr nss nss-mdns opencdk openoffice-base openoffice-it openslp openssl orbit2 pacman pam pango patch pciutils pcmciautils pcre perl perl-xml-simple perlxml pidgin pkgconfig pm-utils poppler poppler-glib popt portmap ppp printproto procinfo procps psmisc pycairo pygobject pygtk pyorbit python python-numeric randrproto readline recordproto reiserfsprogs renderproto rp-pppoe scrnsaverproto scrollkeeper sdl sdl_image sdl_mixer sed shadow shared-mime-info slocate smbclient srcpac startup-notification subversion sysfsutils syslog-ng sysvinit t1lib tar tcp_wrappers tetex texmacs totem totem-plparser trapproto ttf-dejavu udev unrar unzip usbutils util-linux vi videoproto vino vte wget which wireless_tools wpa_supplicant wxgtk xalan-java xcursor-themes xdg-utils xextproto xf86-input-keyboard xf86-input-mouse xf86-video-trident xf86-video-vesa xf86dgaproto xf86miscproto xf86vidmodeproto xfsdump xfsprogs xineramaproto xkeyboard-config xmlsec xorg xorg-font-utils xorg-fonts-alias xorg-fonts-encodings xorg-fonts-misc xorg-server xorg-server-utils xorg-utils xorg-xauth xorg-xinit xorg-xkb-utils xorg-xsm xproto xtrans xulrunner xvidcore yaourt yelp zenity zlib

Packages to build:
------------------



...wrote list to file: treebuildlist

Starting build...
-----------------

errore: nessun pacchetto specificato (usare -h per un aiuto)



-----------------------------------------------------------
                    REBUILD COMPLETE!
-----------------------------------------------------------

Someone can help me please? tongue

Offline

#2 2007-09-13 14:58:57

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: [Little Help] Archlinux from scratch

/me scratches his head. Help me here: why exactly are you doing this? Also, it would be nice to have english output.


Todays mistakes are tomorrows catastrophes.

Offline

#3 2007-09-13 15:10:16

Bola
Member
From: Italia
Registered: 2007-02-16
Posts: 118

Re: [Little Help] Archlinux from scratch

mmm... bho i only wanted to optimize my system for my cpu... is so strange? hmm

However the error (in english) is: error: no packets specified (use -h for help)

Offline

#4 2007-09-13 15:14:55

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: [Little Help] Archlinux from scratch

Yeah, this is kinda strange. People go to Gentoo for that. wink You know, that the gain from zomgoptimizing is only academical? In other words: to recompile your system is a waste of time and resources. But each to his own.


Todays mistakes are tomorrows catastrophes.

Offline

#5 2007-09-13 15:18:05

Bola
Member
From: Italia
Registered: 2007-02-16
Posts: 118

Re: [Little Help] Archlinux from scratch

mucknert wrote:

Yeah, this is kinda strange. People go to Gentoo for that. wink You know, that the gain from zomgoptimizing is only academical? In other words: to recompile your system is a waste of time and resources. But each to his own.

So you are tryng to say me that optimizations are useless? So metadistributions such as gentoo are useless, right? neutral

Offline

#6 2007-09-13 15:34:13

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: [Little Help] Archlinux from scratch

No, I mean that optimizing Arch beyond i686 will not give you any noticable gain in performance (it's somewhere around 1%). I don't say that Metadistributions are useless: they fit people that need the feeling of "being in control", whatever that means. tongue Please don't turn my words around, I've never stated that Gentoo is useless.
Optimizations are not useless in general either. Saying that would be pretty one-sided and not true at all. I want to say that Arch is reasonably optimized already and any other tweaking will mean a lot of wasted cycles for only a small gain, if any at all.


Todays mistakes are tomorrows catastrophes.

Offline

#7 2007-09-13 15:48:30

Bola
Member
From: Italia
Registered: 2007-02-16
Posts: 118

Re: [Little Help] Archlinux from scratch

mucknert wrote:

No, I mean that optimizing Arch beyond i686 will not give you any noticable gain in performance (it's somewhere around 1%). I don't say that Metadistributions are useless: they fit people that need the feeling of "being in control", whatever that means. tongue Please don't turn my words around, I've never stated that Gentoo is useless.
Optimizations are not useless in general either. Saying that would be pretty one-sided and not true at all. I want to say that Arch is reasonably optimized already and any other tweaking will mean a lot of wasted cycles for only a small gain, if any at all.

Mmm... you convinced me... at the end a 1% or 2% gain of performances is useless.

THX

Offline

#8 2007-09-14 16:46:06

1311219
Member
From: Sweden
Registered: 2007-01-09
Posts: 121

Re: [Little Help] Archlinux from scratch

I would want to recomend you to compile a new kernel: if you tweak it carefully after your system (and add optimization patches and make sure it's low latency etc), you will notice a slight quicker response.
And if you are okay with having to recompile the kernel for every new release, then running a custom kernel might be the most rewarding thing or you.

Offline

Board footer

Powered by FluxBB