NEEDED? makepkg.conf.pacnew and/or yaourt-git: WARNING: Unable to copy
Hi....
ISSUE: when I try to install CERTAIN things via yaourt on my up to date system.
At the end of the yaourt process I will sometimes get the:
==> WARNING: Unable to copy WHATEVER PACKAGE to /tmp/ directory
I'm pretty sure I deleted makepkg.conf.pacnew.
I am certain to have gone through the big 3.2 pacman upgrade a while back.
I assumed the pacnew was a pacsave ...I guess.... can't assume of course.
The only post I could find was this one...
http://bbs.archlinux.org/viewtopic.php?id=53040
As I very likely threw out the makepkg.conf.pacnew
and missed the merge thing.... could someone post it... or tell me the fix....
OTHER FIX/ISSUE I READ ABOUT:
yaourt-git needed instead of the release version ????
I'm not at all sure if I need yaourt-git and the doing of the recommended MERGE with the makepkg.conf.pacnew and the old one.
After this gets resolved I will hopefully add t omy knowledge of AUR usage... and add the other install techniques!! great!
thanks!!!!!!!!
Last edited by yvonney (2009-01-24 08:50:36)
anonymous_user wrote:Pacman is 4.1 is not released yet. The wiki is just telling you about the new feature in the next pacman.
I see, but I do not understand why I already encounter PKGBUILDs written with the aforementioned "style".
For instance, giving a look to pacman-git, I find:
source=(git://projects.archlinux.org/pacman.git)
sha1sums=('SKIP')
pkgver() {
cd pacman
git describe | sed 's/^v//;s/-/./g'
build() {
cd "pacman"
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-doc \
--enable-git-version \
--enable-debug \
--with-scriptlet-shell=/usr/bin/bash \
--with-ldconfig=/usr/bin/ldconfig
make
make -C contrib
As I said, my makepkg cannot handle that source and there is not an official way to fix it, apparently.
Similar Messages
-
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 GoettschKarol,
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 and active ftp
I'm trying to build some arch-packages but having problems with makepkg while downloading the tarballs. I think it has something to do with the use of active ftp, but passive doesn't work in the network I use.
My makepkg.conf:
DLAGENTS=('ftp::/usr/bin/wget -c --no-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=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
BUILDENV=(fakeroot !distcc color !ccache !xdelta)
OPTIONS=(strip docs libtool emptydirs zipman)
INTEGRITY_CHECK=(md5)
DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/*/{info,doc,gtk-doc})
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
BUILDSCRIPT='PKGBUILD'
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'
DB_COMPRESSION='gz'
DB_CHECKSUMS=(md5)
with makepkg I get the following output:
--2008-10-07 23:05:26-- ftp://...
(try: 3) => 'package'
Connecting to ftp.... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /packagedir ... done.
==> SIZE package ... size
==> PORT ... done. ==> RETR package ...
Error in server response, closing control connection.
can someone help me?It's the only one package. And it fails to build every time on different files with the same error. And if I just enter ./src/arora-build and run qmake && make it does compile ok.
The error example:
.obj/moc_settings.o: file not recognized: File truncated
collect2: ld returned 1 exit status
P.S. PKGBUILD is community/arora-git
Last edited by vit (2009-05-06 18:02:36) -
Makepkg.conf and compilation problem
Hi!
In my makepkg.conf I have:
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- 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
CFLAGS="-march=amdfam10 -O2 -pipe" #Arch wiki says this
CXXFLAGS="${CFLAGS}"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j5"
and when I try to makepkg for smting (for example arora) I get:
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2...
My gcc is 4.3.3. AMD Phenom II x4 910 processor.
Why is this two -march are different?It's the only one package. And it fails to build every time on different files with the same error. And if I just enter ./src/arora-build and run qmake && make it does compile ok.
The error example:
.obj/moc_settings.o: file not recognized: File truncated
collect2: ld returned 1 exit status
P.S. PKGBUILD is community/arora-git
Last edited by vit (2009-05-06 18:02:36) -
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").
-
What to do with ntp.conf and ntp.conf.pacnew
Hi.
I don't know if simply replace it with the pacnew.
My current ntp.conf
# With the default settings below, ntpd will only synchronize your clock.
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# Associate to public NTP pool servers; see http://www.pool.ntp.org/
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
# Only allow read-only access from localhost
restrict default noquery nopeer
restrict 127.0.0.1
restrict ::1
# Location of drift
driftfile /var/lib/ntp/ntp.drift
the ntp.conf.pacnew
# For additional information see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# Associate to public NTP pool servers; see http://www.pool.ntp.org/
server 0.arch.pool.ntp.org
server 1.arch.pool.ntp.org
server 2.arch.pool.ntp.org
server 3.arch.pool.ntp.org
# By default, the server allows:
# - all queries from the local host
# - only time queries from remote hosts, protected by rate limiting and kod
restrict default kod limited nomodify nopeer noquery notrap
restrict 127.0.0.1
restrict ::1
# Location of drift file
driftfile /var/lib/ntp/ntp.drift
Thanks.jasonwryan wrote:It depends which pool servers you'd like to sync to. I set mine to ones in my region.
thanks.
I did not remember what I did. If I replace it with the pacnew, will I get problems? -
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' -
[solved] makepkg.conf + local path
Hi!
I would like to create two packages that are needed to run my printer (canon).
From the canon website, after long passages, I downloaded two .tar.gz packages with the necessary sources.
From wiki, I refer to the page that explains how to create the PKGBUILD, I realized that you can
also specify a local directory as url to find the source package.
To do this, however, you must edit the file makepkg.conf.
The question is: how do I change the file makepkg.conf?
Thank you!
Last edited by trevi (2011-12-29 15:19:55)Just put the tarball names in the source= array, put the tarballs and PKGBUILD in the same dir, and run makepkg in that dir. No need to edit makepkg.conf.
-
Question about optimizing packages int Makepkg.conf
I edited my Makepkg.conf file so that it knows that I have a Intel Core 2 Duo. Do I need to rebuild any packages? How do I go about it if I do?
Ranguvar wrote:
SkonesMickLoud wrote:
slughappy1 wrote:Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that
Prescott is for the i686 version, Nocona is for x86_64.
Note that this is, I'm pretty sure, independent of what architecture your OS is running (32-bit vs 64-bit).
Yeah. What I meant was that if you're running i686 on your Core2Duo it's a Prescott. If you're running x86_64, it's a Nocona. -
Shell Script - Need to Open terminal and Print output?
Hi All,
I have a script to update a git version of a software, but I would like to be able to check the output of the script in a terminal.
So in a nut shell, I want when launching the script:
- Terminal to Open
- All command to be executed in the terminal
- Terminal to close only if no error (do not know if it's possible?)
See below my very simple script:
Many thanks in advance for your time and advice,
rm -r /home/sweetth/banshee &&
cd /home/sweetth &&
git clone git://git.gnome.org/banshee &&
cd /home/sweetth/banshee &&
./autogen.sh &&
makeRight, I manage it differently
So I got my script to dl those PKGBUILD for those Ipod library needed for the latest Banshee, then dl the latest banshee git and "make" it.
for those who might be interested to keep their banshee-git update:
#!/bin/bash
xterm -hold -e "mkdir ~/libpod;
cd ~/libpod;
mkdir ~/libpod/gtk-sharp-beans-git
cd ~/libpod/gtk-sharp-beans-git
wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/PKGBUILD;
wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/autogen_fix.patch;
makepkg -s;
mv gtk-sharp-beans-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gtk-sharp-beans-git;
mkdir ~/libpod/gio-sharp-git;
cd ~/libpod/gio-sharp-git;
wget http://aur.archlinux.org/packages/gio-sharp-git/gio-sharp-git/PKGBUILD;
makepkg -s;
mv gio-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gio-sharp-git;
mkdir ~/libpod/gkeyfile-sharp-git;
cd ~/libpod/gkeyfile-sharp-git;
wget http://aur.archlinux.org/packages/gkeyfile-sharp-git/gkeyfile-sharp-git/PKGBUILD;
makepkg -s;
mv gkeyfile-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gkeyfile-sharp-git;
mkdir ~/libpod/gudev-sharp-git;
cd ~/libpod/gudev-sharp-git;
wget http://aur.archlinux.org/packages/gudev-sharp-git/gudev-sharp-git/PKGBUILD;
makepkg -s;
mv gudev-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gudev-sharp-git;
mkdir ~/libpod/libpod-sharp-git;
cd ~/libpod/libpod-sharp-git;
wget http://aur.archlinux.org/packages/libgpod-sharp-git/libgpod-sharp-git/PKGBUILD;
makepkg -s;
mv libgpod-sharp-git** ~/libpod;
rm -rf ~/libpod/libpod-sharp-git;
cd ~/libpod;
sudo pacman -U gtk-sharp-beans-git** gio-sharp-git** gkeyfile-sharp-git** gudev-sharp-git** libgpod-sharp-git**;
rm -rf ~/banshee;
cd ~;
git clone git://git.gnome.org/banshee;
cd ~/banshee;
./autogen.sh;
make;
rm bin/Banshee.NotificationArea.dll*" -
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). -
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
gen2archThanks 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 -
Yaourt-git 2012-04-20 compile error
I've compiled package-query-git-20120420-1-x86_64.pkg.tar.xz and pacman-color-4.0.3-1-x86_64.pkg.tar.xz fine, but have this following error when tried compiling yaourt-git-2012-04-20 from https://aur.archlinux.org/packages.php?ID=18676
This is the error I'm getting:
makepkg -s
==> Determining latest git revision...
-> Version found: 20120420
==> Making package: yaourt-git 20120420-1 (Fri Apr 20 22:49:56 MDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Starting build()...
Cloning into 'yaourt'...
remote: Counting objects: 2433, done.
remote: Compressing objects: 100% (936/936), done.
remote: Total 2433 (delta 1651), reused 2078 (delta 1412)
Receiving objects: 100% (2433/2433), 632.60 KiB | 198 KiB/s, done.
Resolving deltas: 100% (1651/1651), done.
Cloning into 'yaourt-build'...
done.
GEN yaourt.sh
GEN pacdiffviewer.sh
GEN yaourtrc
GEN lib/util.sh
GEN lib/pkgbuild.sh
GEN lib/pacman.sh
GEN lib/abs.sh
==> Entering fakeroot environment...
==> Starting package()...
/usr/bin/env install -d /home/build/yaourt-git/pkg/usr/bin
/usr/bin/env install -d /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -d /home/build/yaourt-git/pkg/etc
/usr/bin/env install -d /home/build/yaourt-git/pkg/usr/share/bash-completion/completions
/usr/bin/env install -d /home/build/yaourt-git/pkg/usr/share/man/man{5,8}
# Scripts
/usr/bin/env install -m755 yaourt.sh /home/build/yaourt-git/pkg/usr/bin/yaourt
/usr/bin/env install -m755 pacdiffviewer.sh /home/build/yaourt-git/pkg/usr/bin/pacdiffviewer
# Configuration
/usr/bin/env install -m644 yaourtrc /home/build/yaourt-git/pkg/etc/yaourtrc
/usr/bin/env install -m644 bashcompletion /home/build/yaourt-git/pkg/usr/share/bash-completion/completions/yaourt
# Libs
/usr/bin/env install -m644 lib/alpm_backup.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/alpm_query.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/alpm_stats.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/abs.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/aur.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/util.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/io.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/pacman.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/pkgbuild.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
/usr/bin/env install -m644 lib/misc.sh /home/build/yaourt-git/pkg/usr/lib/yaourt
# Man
/usr/bin/env install -m644 man/*.5 /home/build/yaourt-git/pkg/usr/share/man/man5
/usr/bin/env install -m644 man/*.8 /home/build/yaourt-git/pkg/usr/share/man/man8
# Locales
test -x /usr/bin/msgfmt && for file in po/*/*.po; \
do \
package=$(echo $file | /bin/sed -e 's#po/\([^/]\+\).*#\1#'); \
lang=$(echo $file | /bin/sed -e 's#.*/\([^/]\+\).po#\1#'); \
/usr/bin/env install -d /home/build/yaourt-git/pkg/usr/share/locale/$lang/LC_MESSAGES; \
/usr/bin/msgfmt -o /home/build/yaourt-git/pkg/usr/share/locale/$lang/LC_MESSAGES/$package.mo $file; \
done
make: *** [install] Error 1
==> ERROR: A failure occurred in package().
This error doesn't tell me much, I've tried using --asroot switch and sudo, but still get the same error.I've installed package from http://repo.archlinux.fr/x86_64/yaourt- … pkg.tar.xz
but still would like to know what was wrong :-) Thank you.
OLD-PACKGE-REMOVED: See AUR for new one.
Last edited by TuxLyn (2012-12-19 10:18:40) -
[SOLVED] make fails but makepkg works fine (when building zathura git)
Hello,
when I build the "zathura-girara-git" AUR package with makepkg everything works fine, but if I try to build zathura after cloning the git repo make fails with some errors.
make output from makepkg:
zathura build options:
CFLAGS = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread -lm
DFLAGS = -g
CC commands.c
CC = cc
CC document.c
CC render.c
CC zathura.c
CC completion.c
CC bookmarks.c
CC utils.c
CC shortcuts.c
CC config.c
CC callbacks.c
CC print.c
CC database-plain.c
CC -o zathura
installing executable file
installing header files
installing manual pages
which: no rst2man in (/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin/:/home/bexie/bin)
installing desktop file
installing pkgconfig file
make output:
zathura build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lsqlite3 -ldl -lpthread -lm
DFLAGS = -g
CC = cc
CC commands.c
In file included from commands.c:3:0:
commands.h:7:20: fatal error: girara.h: No such file or directory
compilation terminated.
make: *** [commands.o] Error 1
I tried exporting the enviroment variables from /etc/makepkg.conf, to no avail. I also tried adding the girara include files to CFLAGS, but it throws the same kind of error about some gtk dependency.
I don't know if this is a general issue, but as I can compile it through makepkg I don't think this is due to zathura.
Does anyone have a clue on what could be wrong here?
Last edited by donbex (2012-01-22 12:56:59)In the PKGBUILD, they are cloning the repo by doing :
_gitroot="git://pwmt.org/zathura.git"
_gitname="zathura"
git clone $_gitroot
cd $_gitname && git checkout --track -b develop origin/develop
Are you doing the same ? -
Silly makepkg.conf question
Does makepkg.conf dictate "make" behavior as well as "makepkg" behavior ?
For instance if I use MAKEFLAGS="-j3" will I be able to benefit from it using regular "make" ?Cerebral wrote:
Well, if you want default CFLAGS and CXXFLAGS you can just set them before the alias:
export CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS=${CFLAGS}
alias make='make -j3'
That would work as well.
Ah, brilliant, thank you. There's what I was looking for. I am assuming that this should work whether I put it in /etc/profile or ~/.bashrc. (I only have 1 user and root.)
Maybe you are looking for
-
Not able to see hierarchial org structure by clicking on Expand this branch
Dear experts, I am currently using the Online data extraction via sap for Nakisa Integration with SAP Landscape. I have completed the configuration of Nakisa with the help of configuration guide and administrator guide - After completing administrato
-
Why CNN video looks out of proportion in a iMac 27"?
Since I bought my new iMac 27" a month ago, the videos that I watch in CNN they look "bigger. In my old 24" iMac they look just fine. Does it have something to do with the screen resolution? Or it might be the that CNN it doesn't support the much res
-
Logical Standby out of sync after archiver stuck (how to resync)
Hi, I had an archiver stuck on my logical standby database for about 4 hours this night. 2 hours later my primary db also had an archiver stuck. After solving the problem by repairing the backup mechanism and startup of the archivelog backup I realis
-
Webflow Web Application Configuration Problem
I am trying to use BEA’s webflow tool to handle navigation within a series of JSP pages, input processors, and pipeline components. The JSP pages will capture user profile information beyond the normal User ID and Password (user interests, etc). This
-
The Same Error is displayed for many idoc s which i am trying to import Hrmd_a06,05.. Import started... HRMD_A.HRMD_A05: + com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: Documentation DE.OBJEKTID | urn:sap-com:document:sap:docu is already l