You are not logged in.
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)
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
[Issue remains unsolved...]
Last edited by adamlau (2009-03-29 22:13:30)
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Try this:
DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/*/{info,doc,gtk-doc} usr/local/{,share/}{info,doc,gtk-doc})
Have not tested it though.
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
No go, even though it echos the same as
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
Which should be good to go, but is not....
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Do you have a ~/.makepkg.conf that is overriding the /etc/makepkg.conf?
Offline
Bouble-check my aliases, my mistake. The issue exists with makepkg-git and not makepkg release. makepkg-git !libtool does not appear to work either.
Last edited by adamlau (2009-03-30 02:14:47)
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
You do realise that makepkg-git uses /etc/makepkg-git.conf? I think the !libtool code has not been touched since the last release so I would be surprised if it was not working.
Offline
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'
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
I just tested the !libtool option in makepkg-git and it works for me.
Offline
I just built libsoup 2.26.0 and squeeze 0.2.3 and both packages were left with .la files. And /usr/local/gtk-docs/html files were not stripped out. Using the above makepkg-git.conf. Odd...
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Oh, crap... found the bug! This is a good catch
I tested a split package and everything works then. It appears tidy_install is not being called when there is only a build() function. If there is a package() function or we are doing package splitting, all is good. That is how I could not replicate.
I will find a fix and post a new makepkg-git package soon.
Offline
New makepkg-git can be downloaded here: http://dev.archlinux.org/~allan/makepkg-git.html
Offline
Currently breaks when building from the PKGBUILD.
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
What exactly breaks?
Offline
When building from the updated makepkg-get PKGBUILD with an unmodified makepkg.conf, the package (when decompressed) contains "pkg/usr/share/pacman/PKGBUILD-split.proto" only_and _nothing else. Perhaps you could build an updated i686 package to verify as the existing i686 package appears to be unchanged.
Last edited by adamlau (2009-03-31 00:57:00)
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Oops... uploaded the new packages and forgot to change the links on the web page. I'm used to just putting things in a repo and all the web pages being updated.
Anyway, I can not see why you are not getting the full package built from the posted PKGBUILD. Are you getting errors in your build output?
Offline
No errors, package builds fine but with "pkg/usr/share/pacman/PKGBUILD-split.proto" only. Other dirs created, but empty. i686 package verified working (.la and doc files stripped as expected, at least). Good work, Allan!
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
Also, what about replacing DOC_DIRS with:
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
To satisfy doc stripping for /usr/local? That way, it would be consistent with man compression and bin stripping paths...
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline
I will add that before release.
Offline