You are not logged in.

#1 2006-01-31 12:01:15

scrawler
Member
Registered: 2005-06-07
Posts: 318

package tries to overwrite /usr/bin

howdy guys,

I made a package using the PKGBUILD of gtk-server Mr. Green has in the AUR (thanks Mr. Green!)  the resulting package works fine, and I now have gtk-server up and running.

there is a new version of gtk-server which allows it to be compiled as a library, so I edited the PKGBUILD with the new version number, and one extra configure option:

--enable-library

The package is generated, but in the PKG directory, under usr/,  there is a script called bin.  Guess why the package fails to install?

Anyway, I'm not sure how to fix it.  Any ideas?

Offline

#2 2006-01-31 17:45:39

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: package tries to overwrite /usr/bin

one way to fix it is to rename the script, but it should go *i* the /usr/bin directory of course. Posting the PKGBUILD would help

Dusty

Offline

#3 2006-01-31 19:20:49

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: package tries to overwrite /usr/bin

Oh yeah.  that would be helpful, wouldn't it?  Here it is.  All I did is change the version number, and add "--enable-library."  The former script worked fine.

# Gtk-server
# by Mr Green
# With help from Snowman 8)
#
#
pkgname=gtk-server
pkgver=2.0.9
pkgrel=1
pkgdesc="The GTK-server enables access to GUI's (GTK widget set) for shell scripts and interpreted programming languages."
url=""
license=""
depends=('gtk2' 'libffi')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --with-gtk2 --enable-library
  make || return 1
  make PREFIX=$startdir/pkg/usr install

Offline

#4 2006-01-31 23:04:50

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: package tries to overwrite /usr/bin

Here's the problem:

/bin/install -c kill-gtk-server.sh /home/tomk/builds/gtk-server/pkg/usr/bin

The kill-gtk-server.sh script should be installed in $startdir/pkg/usr/bin, but make install does not create the directory first, so the script is installed as $startdir/pkg/usr/bin. The fix - throw in

mkdir -p $startdir/pkg/usr/bin

at the start of build().

<edit>
Yup, as I thought - turning on the library config option prevents the creation of ../bin, but make install still wants to install the kill script. Do you need the kill script if you're using it as a library?

<edit - again smile>
And you should flag the AUR one out-of-date - it's 2.0.4, but you've got 2.0.9.

Offline

#5 2006-02-01 03:52:55

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: package tries to overwrite /usr/bin

that did it, thanks.  I also flagged the PKGBUILD in the AUR out of date.

Offline

Board footer

Powered by FluxBB