Override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

This might be a stupid question, but here goes: if I redefine variables such as CFLAGS and CXXFLAGS from within a PKGBUILD, any subsequent make would use the new ones rather than the ones defined in /etc/makepkg.conf ...right?  I'm assuming that makepkg reads them once when the user invokes it.
Thanks.
Last edited by graysky (2011-01-15 11:58:58)

Thanks.  I looked at /usr/bin/makepkg and I believe this is the case, but I don't know of a way to check after I compile them.  Is there some place I can look within the final NAME.tar.xz to see which CFLAGS were used?  (Again, I think the answer here is "no").

Similar Messages

  • [SOLVED] (...) which CFLAGS to choose for /etc/makepkg.conf

    Hello all. I read about certain CFLAGS you can set in /etc/makepkf.conf, so I checked out if there was anything i could do to make the packages built on my system more optimized. However, as the title states, I'm not sure what to set. The sticker on my Thinkpad T61 says "Intel® Centrino® vPro™ inside™"
    Which CPU type from the Intel list on that page applies to me? Thanks
    Last edited by robrene (2009-09-14 10:37:45)

    This Gentoo wiki page looks legit. You may want to do a bit of background research before you dig into compile flags, as there's quite a lot that gcc can break when you tell it to crunch down your programs. Also, gcc's man page is pretty exhaustive; but if you're just looking for your -march flag, it's pentium-m.
    Big 'AFAIK' here, but ignore the 'pro,' as Intel tends to arbitrarily tack that on products to up the price tag a smidgeon.

  • Can I set CFLAGS="-march=broadwell" optimizations in /etc/makepkg.conf

    Hi
    does the Arch Build System allow the new compiler optimizations
    -march=broadwell
    to be set as CFLAGS and CXXFLAGS in /etc/makepkg.conf?
    I recently installed Arch on a machine having this processor (an Intel Broadwell NUC) and I was wondering if I should change CFLAGS from the generic "x86-64" to the more specific broadwell setting. As far as I understood gcc > 4.9 does support this.
    What else needs to be adjusted in Arch in order to use this optimizations?
    Thanks
    gen2arch

    Thanks everyone for your input!
    graysky: actually the linux kernel is exactly the package in view of which I was looking into the Arch Build System; having come over from gentoo, I thought it would be a good idea to streamline the generic arch kernel and, in the process, apply processor specific optimizations. So your point that precisely the kernel doesn't honor these settings is indeed very helpful!
    Against which sources do I have to apply your patch: actually, where can I download the source package of Arch linux' own kernel build?
    Thanks again
    gen2arch

  • USE_COLOR In /etc/makepkg.conf

    OK, I'll bite. What file provides the controlling ANSI color sequences to the output once someone has set USE_COLOR to (y) in /etc/makepkg.conf and runs makepkg? I've looked around a bit in the /etc directory for logical suspects but can't find anything that makes sense.
    jlowell

    Just so anyone can know the answer to the question I raised here about USE_COLOR in makepkg, the governing file for the ANSI sequences is /usr/bin/makepkg.
    jlowell

  • LDFLAGS in /etc/makepkg.conf

    Will adding
    export LDFLAGS="-Wl,-O1 -Wl,--sort-common -s
    to /etc/makepkg.conf, enable compilation with those flags when makepkg is executed?

    nightfrost wrote:
    Will adding
    export LDFLAGS="-Wl,-O1 -Wl,--sort-common -s
    to /etc/makepkg.conf, enable compilation with those flags when makepkg is executed?
    not all the time... it will in most though...
    however, some Makefiles don't pickup external CFLAGS/LDFLAGS, so you will see some sed usage to insert the CFLAGS... you'd have to do the same for LDFLAGS there too...
    I'd also add the --as-needed flag to those if you're recompiling something like KDE/gnome

  • How to convert wired network config from /etc/rc.conf to netcfg?

    Hi,
    I am trying to migrate my wired network configuration from /etc/rc.conf to a netcfg profile.
    from /etc/rc.conf
    interface=eth0
    address=192.168.0.1
    netmask=255.255.255.0
    gateway=192.168.2.1
    /etc/network.d/wired
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth0'
    IP='static'
    ADDR='192.168.0.1'
    GATEWAY='192.168.2.1'
    DNS=('192.168.2.1')
    NETMASK='255.255.255.0'
    The problem is, it does not work: executing "netcfg wired" only gives
    :: wired up                 [BUSY] 
    > No connection        [FAIL]
    EDIT:
    NETCFG_DEBUG="yes" netcfg wired
    DEBUG: Loading profile wired
    DEBUG: Configuring interface eth0
    :: wired up                                                                                                                                                                                             [BUSY]
    DEBUG: status reported to profile_up as:
    DEBUG: Loading profile wired
    DEBUG: Configuring interface eth0
    DEBUG: ethernet_up bring_interface up eth0
    > No connection
    DEBUG: profile_up connect failed
                                                                                                                                                                                                            [FAIL]
    Any idea how to make it work?
    Last edited by Phate666 (2012-10-26 16:09:36)

    The rc.conf is correct because there are two diffrent subnets.
    My PS3 is connected to my computer via ethernet.
    The computer is connected via wifi to the router (ip 192.168.2.1).
    When using /etc/rc.d/network to start ethernet everything works perfect, the PS3 can stream video from the computer and access internet.
    Last edited by Phate666 (2012-10-26 16:34:47)

  • Cannot set locale (ignored from /etc/locale.conf)

    I just installed Arch on my new machine and I wrote:
    ==> /etc/locale.conf
    LANG=es_CL.utf-8
    # LANG=es_CL.UTF-8 (I've tried with both).
    after uncommenting it on /etc/locale.gen and running # locale-gen
    (I basically followed every step in the wiki).
    No matter what I do when I start any terminal, I found the locale commands output:
    $ ~ locale
    LANG=
    LC_CTYPE="POSIX
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    I found that if I open a tty, the /etc/profile.d/locale.sh is ran so, the locales are correct and locale shows the correct output.
    The weirdest thing is that my old machine doesn't load locale.sh, and still the locale it's right.
    I've search a lot through the wiki and bbs and even when there are couple of articles, none of them help me to solve this issue :(.
    I'm running my session through systemd --user (in case it means anything).
    EDIT: Add more info.
    EDIT2: Fix typo
    Last edited by pablox (2013-03-25 13:19:42)

    WorMzy wrote:
    Looks like it is, I removed it from my .zshrc and nothing changed.
    Could you check whether es_CL.UTF-8 is actually listed as an available locale?
    localectl list-locales
    And if so, whether it's correctly set
    localectl status
    $ localectl list-locales
    en_US.utf8
    es_CL.utf8
    $ localectl status
    System Locale: LANG=es_CL.UTF-8
    LC_COLLATE=C
    LC_MESSAGES=C
    VC Keymap: la-latin1
    X11 Layout: n/a
    $ locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    $
    Ô_o
    I have removed an empty ~/.zprofile just in case but the issue persist. Running an empty zsh shell (with zsh -f) doesn't work either.
    Last edited by pablox (2013-03-26 23:59:45)

  • In /etc/makepkg.conf, what is SRCEXT

    I understand PKGEXT can change the type of compression used on the final generated package from the aur/makepkg, but what does SRCEXT do? When would you ever make a source package rather than a compiled package?
    Last edited by boogerlad (2015-02-21 04:00:23)

    You make a source package to submit to the AUR.

  • Problems with Yaourt and makepkg.conf

    Hi all,
    So, I've recently switched all the way over to Arch Linux after playing around with it for some time.  And it's been great!  I am very glad I did it. 
    I've been using yaourt to install all of my humble indie bundle games, and it's been going well until I tried to install mark of the ninja. 
    Every time I try to install ANYTHING on yaourt now, I get these types of error messages:
    [nicholas@nicholas ~]$ yaourt -s markoftheninja-hib
    1 aur/markoftheninja-hib 1.38+h20131002-1 (4)
        Mark of the Ninja, a side-scrolling stealth game (Humble Bundle version)
    ==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
    ==> -------------------------------------------------------
    ==> 1
    /etc/makepkg.conf: line 89: for: command not found
    ==> Downloading markoftheninja-hib PKGBUILD from AUR...
    x markoftheninja-hib.desktop
    x PKGBUILD
    markoftheninja-hib 1.38+h20131002-1  (Wed Sep 11 20:25:29 EDT 2013)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> markoftheninja-hib dependencies:
    - sdl (already installed)
    - libgl (already installed)
    - gcc-libs (already installed)
    - xdg-utils (already installed)
    ==> Continue building markoftheninja-hib ? [Y/n]
    ==> --------------------------------------------
    ==>
    ==> Building and installing package
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> ERROR: markoftheninja-hib is not available for the '' architecture.
        Note that many packages may need a line added to their PKGBUILD
        such as arch=('').
    ==> ERROR: Makepkg was unable to build markoftheninja-hib.
    ==> Restart building markoftheninja-hib ? [y/N]
    ==> -------------------------------------------
    ==>
    [nicholas@nicholas ~]$ sudo gedit /etc/makepkg.conf
    So, I already have fakeroot properly activated IN makepkg.conf.  This is my makepkg.conf setup:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    #  Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
              'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
              'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
              'rsync::/usr/bin/rsync --no-motd -z %u %o'
              'scp::/usr/bin/scp -C %u %o'
              'hib::/usr/bin/find /home/nicholas/Downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')'
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #  A negated environment option will do the opposite of the comments below.
    #-- 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
    #-- check:    Run the check() function if present in the PKGBUILD
    #-- sign:     Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- 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=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    #   These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #  A negated option will do the opposite of the comments below.
    #-- strip:      Strip symbols from binaries/libraries
    #-- docs:       Save doc directories specified by DOC_DIRS
    #-- libtool:    Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs:  Leave empty directories in packages
    #-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge:      Remove files specified by PURGE_TARGETS
    #-- upx:        Compress binary executable files using UPX
    #-- debug:      Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # 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
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    #          doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Here is line 89, which is the one that yaourt flags:
    - Options to be used when stripping binaries. See `man strip' for 
    It's almost as if it is treating "for" as a command.  This is very strange. 
    Also, I do have the architecture specified in the makepkg.  It doesn't matter which package I try to install: it does the same thing. 
    Does anyone have any ideas?  I'd really appreciate your help.
    Thank you.
    Sincerely,
    Corey Goettsch

    Karol,
    Thank you for the suggestion.  Here are the code outputs
    [nicholas@nicholas ~]$ yaourt -S markoftheninja-hib
    /etc/makepkg.conf: line 89: for: command not found
    ==> Downloading markoftheninja-hib PKGBUILD from AUR...
    x markoftheninja-hib.desktop
    x PKGBUILD
    markoftheninja-hib 1.38+h20131002-1 (Wed Sep 11 20:25:29 EDT 2013)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> markoftheninja-hib dependencies:
    - sdl (already installed)
    - libgl (already installed)
    - gcc-libs (already installed)
    - xdg-utils (already installed)
    ==> Continue building markoftheninja-hib ? [Y/n]
    ==> --------------------------------------------
    ==>
    ==> Building and installing package
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> ERROR: markoftheninja-hib is not available for the '' architecture.
    Note that many packages may need a line added to their PKGBUILD
    such as arch=('').
    ==> ERROR: Makepkg was unable to build markoftheninja-hib.
    ==> Restart building markoftheninja-hib ? [y/N]
    ==> -------------------------------------------
    ==>
    [nicholas@nicholas ~]$ sudo gedit /etc/makepkg.conf
    [sudo] password for nicholas:
    (gedit:2211): Gtk-WARNING **: Theme parsing error: notebook.css:6:13: Theming engine 'unico' not found
    (gedit:2211): Gtk-WARNING **: Theme parsing error: nemo.css:90:13: Theming engine 'unico' not found
    And this is my makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o'
    'hib::/usr/bin/find /home/nicholas/Downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')'
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- 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
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- 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=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # 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
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    And, last, here is the output from line 89:
    #-- Options to be used when stripping binaries. See `man strip' for details.
    So, the problem is that "for" in line 89 is being treated like a command.  Which is very strange.  Also, I already have fakeroot set up in makepkg.conf.  And, last, I also have the architecture specified in the PKGBUILD.  So, I'm a bit at a loss here.  I would really appreciate any help.

  • Makepkg.conf: Stripping /usr/local Docs Out Of Builds?

    Trying to strip out '/usr/local/gtk-doc/html' out of builds without resorting to 'without-html-dir'. Tried the following individually within makepkg.conf with no effect:
    OPTIONS=(!docs)
    DOC_DIRS=({usr{,/local}{,/share},opt/*}/{doc,gtk-doc}
    DOC_DIRS=({usr{,/local}{,/share},opt/*}/{doc,gtk-doc{,/html}}
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc{,/html}} opt/*/{doc,gtk-doc{,/html}})
    All fo the above appear to echo properly. No options=() within any PKGBUILD files I am testing. How to strip '/usr/local/gtk-doc/html'  out of builds using makepkg.conf (would rather not add an 'rm' statement to each and every PKGBUILD)?
    Last edited by adamlau (2009-03-29 21:43:48)

    Correct. This is my /etc/makepkg-git.conf (makepkg.conf backed up and removed from /etc):
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
    CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
    LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu"
    #MAKEFLAGS="-j2"
    BUILDENV=(fakeroot !distcc color !ccache !xdelta)
    OPTIONS=(strip !docs !libtool !emptydirs zipman purge)
    INTEGRITY_CHECK=(md5)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    PKGEXT='.pkg.tar.gz'
    SRCEXT='.src.tar.gz'

  • Error after editing makepkg.conf

    As the topic, I have edited my makepkg.conf in order to build via abs according to my cpu. When I try to run makpkg -csi on a pkgbuild i get this error:
    ==> ERROR: openbox is not available for the '' architecture.
    Note that many packages may need a line added to their PKGBUILD
    such as arch=('').
    (there is nothing wrong with the pkgbuid in question).
    My modified makepkg.conf looks like this:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3'
    'http::/usr/bin/wget -c -t 3 --waitretry=3'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate'
    'rsync::/usr/bin/rsync -z'
    'scp::/usr/bin/scp -C')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CHOST="x86_64-pc-linux-gnu"
    CFLAGS="-march=athlon64 -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    MAKEFLAGS="-j3"
    #-- Exclusive: will only run on -march=x86-64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache !xdelta)
    # A negated environment option will do the opposite of the comments below.
    #-- 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
    #-- xdelta: Generate delta patch from previous to current package
    BUILDENV=(fakeroot !distcc color !ccache !xdelta)
    #-- 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)
    # A negated option will do the opposite of the comments below.
    #-- 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/*/{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
    #-- Source root: specify location where PKGBUILDs are located for '--builddeps'
    #SRCROOT=/home/pkgbuilds
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # BUILDSCRIPT/EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    BUILDSCRIPT='PKGBUILD'
    PKGEXT='.pkg.tar.gz'
    SRCEXT='.src.tar.gz'
    DB_COMPRESSION='gz'
    DB_CHECKSUMS=(md5)
    # vim: set ft=sh ts=2 sw=2 et:
    ps. I have an amd athlon 64 x2.

    You are missing the CARCH- field(?). Add
    CARCH="x86_64"
    into your makepkg.conf (it's above CHOST by default).

  • Enabling -fstack-protector-strong in makepkg.conf?

    A little more than a year ago Google submitted a patch which added a -fstack-protector-strong option which was intended to strike a balance between -fstack-protector (used in Arch) and -fstack-protector-all which was considered too computationally expensive for google's chromiumos.  All of these options introduce measures to protect compiled programs against stack overflow attacks to varying degrees of security and performance.
    This google doc sums up what the new flag introduces: https://docs.google.com/document/d/1xXB … t?hl=en_US
    My recently installed default /etc/makepkg.conf shows -fstack-protector (not -strong) in CFLAGS.  Is there a specific reason that it has not yet been implemented in Arch, or has it simply just "not happened" yet? 
    Fedora 20 is now using -fstack-protector-strong.  After some searching I couldn't find anything here or on the arch bugtracker which discusses the new option.  I should add that I am by no means well-versed in security and this is something I would like to know more about.
    Last edited by oboenerd (2013-12-08 03:13:19)

    This is something that should be brought up in the bug tracker I think.  Though, interestingly this is not documented in the gcc man page nor the gcc info page.
    Edit: I didn't follow your links, but I do remember reading about this.  It would seem that this functionality has not been merged, as trying to use -fstack-protector-strong fails with:
    gcc: error: unrecognized command line option '-fstack-protector-strong'
    Last edited by WonderWoofy (2013-12-08 03:54:56)

  • Settings in /etc/sysctl.conf overwritten [SOLVED]

    I added a new line to /etc/sysctl.conf setting the vm.dirty_ratio to 3 (line is simply `vm.dirty_ratio = 3`).  I can invoke it by running `sysctl -p` so I know the syntax is correct.  This setting is however not loaded upon a reboot.  The systemd-sysctl.service is however kicked off just  fine and completes without errors.  I have also tried removing the line from /etc/sysctl.conf and placing it in /etc/sysctl.d/dirty.conf but again, it is not honored at boot.  What am I doing wrong?
    EDIT: The solution is in post #31 - acknowledgement to chp for pointing me to it.  Note that I also changed to topic to a more relevant one.
    Last edited by graysky (2013-08-10 12:27:41)

    Guess I'm stumped.  I just spun up an Arch VM, pasted in the /etc/sysctl.conf below and reboot it.  All the settings in the file in the VM are applied.  If Leonid's guess that something is overriding these values on my workstation, I would like to figure out what it is and shut it down.  To keep things simple, I booted into the stock ARCH kernel; here are the services I have active:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automo
    sys-devices-pci0000:00-0000:00:19.0-net-eno1.device loaded active plugged P8P67 Deluxe Motherboard
    sys-devices-pci0...-0000:00:1b.0-sound-card0.device loaded active plugged 7 Series/C210 Series Chipset Family High Definition
    sys-devices-pci0...6-0000:07:00.0-net-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda1.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda2.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda3.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...et0:0:0-0:0:0:0-block-sda.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb1.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb2.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb3.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb4.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb5.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb6.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb7.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...et1:0:0-1:0:0:0-block-sdb.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...et3:0:0-3:0:0:0-block-sr0.device loaded active plugged ATAPI_iHAS424_B
    sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
    sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-module-fuse.device loaded active plugged /sys/module/fuse
    sys-subsystem-net-devices-eno1.device loaded active plugged P8P67 Deluxe Motherboard
    sys-subsystem-net-devices-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home-facade-.cache.mount loaded active mounted /home/facade/.cache
    mnt-data.mount loaded active mounted /mnt/data
    run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
    scratch.mount loaded active mounted /scratch
    sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    var-cache.mount loaded active mounted /var/cache
    systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watc
    systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    cronie.service loaded active running Periodic Command Scheduler
    dbus.service loaded active running D-Bus System Message Bus
    fancontrol.service loaded active running Fan control daemon
    [email protected] loaded active running Getty on tty1
    gpm.service loaded active running Virtual console mouse server
    lxdm.service loaded active running LXDE Display Manager
    [email protected] loaded active exited A basic static ethernet connection using iproute
    ntpd.service loaded active running Network Time Service
    polkit.service loaded active running Authorization Manager
    psd.service loaded active exited Profile-sync-daemon
    rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-modules-load.service loaded active exited Load Kernel Modules
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-tmpfiles-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    udisks2.service loaded active running Disk Manager
    ufw.service loaded active exited CLI Netfilter Manager
    upower.service loaded active running Daemon for power management
    cups.socket loaded active listening CUPS Printing Service Sockets
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    sshd.socket loaded active listening sshd.socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-udevd-control.socket loaded active listening udev Control Socket
    systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    udisks2.service loaded active running Disk Manager
    ufw.service loaded active exited CLI Netfilter Manager
    upower.service loaded active running Daemon for power management
    cups.socket loaded active listening CUPS Printing Service Sockets
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    sshd.socket loaded active listening sshd.socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-udevd-control.socket loaded active listening udev Control Socket
    systemd-udevd-kernel.socket loaded active running udev Kernel Socket
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User System
    network.target loaded active active Network
    paths.target loaded active active Paths
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    timers.target loaded active active Timers
    psd-resync.timer loaded active waiting Timer for Profile-sync-daemon - 1Hour
    systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    And...
    % systemctl list-unit-files
    UNIT FILE STATE
    proc-sys-fs-binfmt_misc.automount static
    dev-hugepages.mount static
    dev-mqueue.mount static
    proc-fs-nfsd.mount static
    proc-sys-fs-binfmt_misc.mount static
    sys-fs-fuse-connections.mount static
    sys-kernel-config.mount static
    sys-kernel-debug.mount static
    tmp.mount static
    var-lib-nfs-rpc_pipefs.mount static
    cups.path disabled
    systemd-ask-password-console.path static
    systemd-ask-password-wall.path static
    alsa-restore.service static
    alsa-state.service static
    alsa-store.service static
    arch32.service disabled
    [email protected] disabled
    avahi-daemon.service disabled
    avahi-dnsconfd.service disabled
    binfmt-support.service disabled
    blkmapd.service disabled
    canberra-system-bootup.service disabled
    canberra-system-shutdown-reboot.service disabled
    canberra-system-shutdown.service disabled
    colord.service static
    console-getty.service disabled
    console-shell.service disabled
    cronie.service enabled
    cups-browsed.service disabled
    cups.service disabled
    cupsd.service disabled
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service static
    dbus-org.freedesktop.login1.service static
    dbus-org.freedesktop.timedate1.service static
    dbus.service static
    debug-shell.service disabled
    dhcpcd.service disabled
    [email protected] disabled
    display-manager.service enabled
    distccd.service disabled
    dkms.service disabled
    dmeventd.service static
    emergency.service static
    fancontrol.service enabled
    ftpd.service disabled
    [email protected] enabled
    [email protected] static
    gpm.service enabled
    hddtemp.service disabled
    healthd.service disabled
    initrd-cleanup.service static
    initrd-parse-etc.service static
    initrd-switch-root.service static
    initrd-udevadm-cleanup-db.service static
    ip6tables.service disabled
    iptables.service disabled
    irexec.service disabled
    krb5-kadmind.service disabled
    krb5-kdc.service disabled
    krb5-kpropd.service disabled
    [email protected] static
    lirc.service disabled
    lircm.service disabled
    lm_sensors.service disabled
    lxdm.service enabled
    mcelog.service disabled
    mpd.service disabled
    [email protected] disabled
    [email protected] disabled
    netctl-sleep.service disabled
    netctl.service disabled
    [email protected] static
    [email protected] static
    [email protected] enabled
    nfsd.service disabled
    nmbd.service disabled
    nscd.service disabled
    ntpd.service enabled
    ntpdate.service disabled
    polkit.service static
    psd-resync.service enabled
    psd.service enabled
    quotaon.service static
    rescue.service static
    rpc-gssd.service disabled
    rpc-idmapd.service disabled
    rpc-mountd.service disabled
    rpc-statd.service disabled
    rpc-svcgssd.service disabled
    rpcbind.service disabled
    rsyncd.service disabled
    [email protected] static
    rtkit-daemon.service disabled
    samba.service disabled
    sensord.service disabled
    [email protected] static
    smartd.service disabled
    smbd.service disabled
    [email protected] static
    snmpd.service disabled
    snmptrapd.service disabled
    speech-dispatcherd.service disabled
    sshd.service disabled
    [email protected] static
    sshdgenkeys.service static
    svnserve.service disabled
    [email protected] static
    systemd-ask-password-console.service static
    systemd-ask-password-wall.service static
    systemd-binfmt.service static
    systemd-fsck-root.service static
    [email protected] static
    systemd-halt.service static
    systemd-hibernate.service static
    systemd-hostnamed.service static
    systemd-hybrid-sleep.service static
    systemd-initctl.service static
    systemd-journal-flush.service static
    systemd-journal-gatewayd.service static
    systemd-journald.service static
    systemd-kexec.service static
    systemd-localed.service static
    systemd-logind.service static
    systemd-modules-load.service static
    [email protected] static
    systemd-poweroff.service static
    systemd-quotacheck.service static
    systemd-random-seed-load.service static
    systemd-random-seed-save.service static
    systemd-readahead-collect.service disabled
    systemd-readahead-done.service static
    systemd-readahead-drop.service disabled
    systemd-readahead-replay.service disabled
    systemd-reboot.service static
    systemd-remount-fs.service static
    systemd-shutdownd.service static
    systemd-suspend.service static
    systemd-sysctl.service static
    systemd-timedated.service static
    systemd-tmpfiles-clean.service static
    systemd-tmpfiles-setup-dev.service static
    systemd-tmpfiles-setup.service static
    systemd-udev-settle.service static
    systemd-udev-trigger.service static
    systemd-udevd.service static
    systemd-update-utmp-runlevel.service static
    systemd-update-utmp.service static
    systemd-user-sessions.service static
    systemd-vconsole-setup.service static
    udisks.service disabled
    udisks2.service static
    ufw.service enabled
    upower.service disabled
    usbmuxd.service static
    [email protected] disabled
    uuidd.service static
    vboxweb.service disabled
    vncserver.service disabled
    winbindd.service disabled
    [email protected] disabled
    [email protected] disabled
    wpa_supplicant.service disabled
    [email protected] disabled
    avahi-daemon.socket disabled
    cups.socket enabled
    dbus.socket static
    dmeventd.socket static
    git-daemon.socket disabled
    krb5-kpropd.socket disabled
    rsyncd.socket disabled
    smbd.socket disabled
    sshd.socket enabled
    swat.socket disabled
    syslog.socket static
    systemd-initctl.socket static
    systemd-journal-gatewayd.socket disabled
    systemd-journald.socket static
    systemd-shutdownd.socket static
    systemd-udevd-control.socket static
    systemd-udevd-kernel.socket static
    uuidd.socket disabled
    basic.target static
    bluetooth.target static
    cryptsetup.target static
    ctrl-alt-del.target disabled
    default.target disabled
    emergency.target static
    final.target static
    getty.target static
    graphical.target disabled
    halt.target disabled
    hibernate.target static
    hybrid-sleep.target static
    initrd-fs.target static
    initrd-root-fs.target static
    initrd-switch-root.target static
    initrd.target static
    kexec.target disabled
    local-fs-pre.target static
    local-fs.target static
    multi-user.target disabled
    network-online.target static
    network.target static
    nss-lookup.target static
    nss-user-lookup.target static
    paths.target static
    poweroff.target disabled
    printer.target static
    reboot.target disabled
    remote-fs-pre.target static
    remote-fs.target enabled
    rescue.target disabled
    rpcbind.target static
    shutdown.target static
    sigpwr.target static
    sleep.target static
    smartcard.target static
    sockets.target static
    sound.target static
    suspend.target static
    swap.target static
    sysinit.target static
    system-update.target static
    time-sync.target static
    timers.target static
    umount.target static
    psd-resync.timer static
    systemd-readahead-done.timer static
    systemd-tmpfiles-clean.timer static
    231 unit files listed.
    Last edited by graysky (2014-11-03 08:39:54)

  • Not all PKGBUILDS use makepkg.conf

    When bulding some packages (smplayer-svn, arora-git, qtscriptgenerator-git, qmpdclient - that's what i notticed) makepkg.conf doesn't influence.
    For example for smplayer-svn I have:
    g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DDOWNLOAD_SUBS -DDATA_PATH=\"/usr/share/smplayer\" -DDOC_PATH=\"/usr/share/doc/packages/smplayer\" -DTRANSLATION_PATH=\"/usr/share/smplayer/translations\" -DTHEMES_PATH=\"/usr/share/smplayer/themes\" -DSHORTCUTS_PATH=\"/usr/share/smplayer/shortcuts\" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -Ifindsubtitles -Ivideopreview -Impcgui -Ifindsubtitles/filedownloader -Ifindsubtitles/quazip -I.moc -I.ui -o .obj/prefinterface.o prefinterface.cpp
    while in makepgs.conf:
    me$ cat /etc/makepkg.conf | grep -A 1 CFLAGS
    CFLAGS="-march=amdfam10 -O2 -pipe"
    CXXFLAGS="-march=amdfam10 -O2 -pipe"
    where is the trick? Arch x86_64 with testing repo enabled.
    P.S. maybe I'm wrong but they all use qmake for makefiles generation.
    Last edited by vit (2009-05-19 19:26:45)

    AUR pks mainteners often disables some makeflags to maintain compatibility look for options=('!makeflags') line - "!" sign before makeflags disables user-set makepkg.conf makeflags.

  • I'm missing makepkg.conf

    Well, I accidentally deleted /etc/makepkg.conf, and I don't find a sample anywhere. How do I generate a new one?

    You can also grab https://projects.archlinux.org/svntogit … ges/pacman but I think you have to edit
    CARCH="@CARCH@"
    CHOST="@CHOST@"
    etc. to e.g.
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    by hand.

Maybe you are looking for