You are not logged in.

#1 2006-02-01 20:35:44

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

[arch64] gtk-doc pkg misses some files

We use the same pkgbuild like arch32.

# $Id: PKGBUILD,v 1.5 2005/08/25 17:34:53 jgc Exp $
# Maintainer: dorphell <dorphell@archlinux.org>

pkgname=gtk-doc 
pkgver=1.4
pkgrel=1
pkgdesc="Used to document the public API of libraries" 
depends=('jade' 'pkgconfig' 'perl' 'libxslt' 'libxml2' 'docbook-xsl' 'docbook-xml') 
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) 
md5sums=('44d1cdce88c2eb4ccb962998ad0c0d1a')

build() { 
    cd $startdir/src/$pkgname-$pkgver 
    ./configure --prefix=/usr 
    make || return 1 
    make DESTDIR=$startdir/pkg install 
    sed -i 's|http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl|/usr/share/xml/docbook/html/chunk.xsl|' 
        $startdir/pkg/usr/share/gtk-doc/data/gtk-doc.xsl 
}

All files are beeing created and installed well into $startdir/pkg but a whole folder will be removed:

usr/share/gtk-doc/
usr/share/gtk-doc/data/
usr/share/gtk-doc/data/devhelp.xsl
usr/share/gtk-doc/data/gtk-doc.dcl
usr/share/gtk-doc/data/gtk-doc.dsl
usr/share/gtk-doc/data/gtk-doc.make
usr/share/gtk-doc/data/gtk-doc.xsl
usr/share/gtk-doc/data/gtkdoc-common.pl
usr/share/gtk-doc/data/home.png
usr/share/gtk-doc/data/left.png
usr/share/gtk-doc/data/right.png
usr/share/gtk-doc/data/style.css
usr/share/gtk-doc/data/up.png
usr/share/gtk-doc/data/version-greater-or-equal.xsl

All these files are beeing removed by whether a broken Makefile/install.sh or by a wrong working pacman step after the build is complete.

Who can help me? We need this pkg it for gnome-vfs.

Offline

#2 2006-02-01 21:12:59

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: [arch64] gtk-doc pkg misses some files

Under Arch32 the same. The complete directory gtk-doc will be removed.
Before creating the package (directly after the build, before pacman will begin starting to create the package (in other words: before the last "}" in the pkgbuild)) the directory is there (i have made an break in there, to be sure) and after that, the directory is removed, so pacman don't put it into the package.....

I think this is an pacman issue, so can anyone move this thread to "pacman & package upgrade issue"?? Thx.

Daniel

Offline

#3 2006-02-02 02:17:59

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [arch64] gtk-doc pkg misses some files

It's a makepkg issue. From /usr/bin/makepkg :

# remove info/doc files
cd $startdir
rm -rf pkg/usr/info pkg/usr/share/info
rm -rf pkg/usr/doc pkg/usr/share/doc
rm -rf pkg/{usr,opt/gnome}/share/gtk-doc

I would suggest to rename the directory, say to /usr/share/gtkdoc.

Offline

#4 2006-02-02 06:41:29

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [arch64] gtk-doc pkg misses some files

Ok. When we change the folder name will the application still find the files? Can we use a --docdir=foo option in configure step?

Maybe we should bring them back into the right folder with a simple "mv /usr/share/gtkdoc /usr/share/gtk-doc" using a gtk-doc.install script?

Offline

#5 2006-02-02 07:07:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [arch64] gtk-doc pkg misses some files

As for the arch32 gtk-doc package, I guess that it was built with a previous version of makepkg.

AndyRTR wrote:

Ok. When we change the folder name will the application still find the files? Can we use a --docdir=foo option in configure step?

Probably not.

AndyRTR wrote:

Maybe we should bring them back into the right folder with a simple "mv /usr/share/gtkdoc /usr/share/gtk-doc" using a gtk-doc.install script?

IMO, the best solution would be a gtk-doc.install that would create a symlink upon installation and removing it upon uninstallation.  That way, pacman will remain in control of the files (e.g. pacman -Qo, pacman -R).

Offline

#6 2006-02-02 07:16:19

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [arch64] gtk-doc pkg misses some files

Shell I open a bugreport for gtk-doc and point to this thread?

Offline

#7 2006-02-02 07:34:07

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [arch64] gtk-doc pkg misses some files

Sure. Maybe the dev will come up a better solution. wink

Offline

Board footer

Powered by FluxBB