You are not logged in.

#1 2004-05-24 17:33:00

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

My filelist is empty :(

I have been doing a makepkg for a few programs, and sometimes I receive an error message saying

==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: [i]programname[/i]

After this, when I check the directory,  the pkg of the program is there and working, but the filelist holds nothing but '.FILELIST' and '.PKGINFO'
Could anyone tell me how to fix this? Or am I supposed to enter the filenames manually?
Thanks.

Offline

#2 2004-05-24 17:50:14

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: My filelist is empty :(

is there something in the pkg.tar.gz file?

what pkgs are that? where from?

.FILELIST is empty, when there is no file in the pkg, what is a bad thing in general while building a pkg


The impossible missions are the only ones which succeed.

Offline

#3 2004-05-24 20:05:11

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: My filelist is empty :(

You are right, there is nothing in the pkg.tar.gz file
The package I'm trying to build is bitlbee. The PKGBUILD is

#Contributor Ravi Desai <ravster3@hotmail.com>
pkgname=bitlbee
pkgver=0.85a
pkgrel=1
pkgdesc="Talk on the MSN, ICQ, Jabber, Yahoo!, and AIM networks with any IRC client."
url="http://www.bitlbee.org/"
license="GPL"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz)
md5sums=()

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make prefix=$startdir/pkg/usr install
}

Offline

#4 2004-05-24 20:14:26

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: My filelist is empty :(

have a look at the Makefile of the pkg and check if prefix as variable exists

if not, then you need to use the variable that the author uses for installation in other destination ... in most cases it's much better to try DESTDIR=$startdir/pkg instead of prefix=$startdir/pkg/usr first

what i see also in your PKGBUILD: dont you build the pkg first before installing it?

add after ./configure

make || return 1

---

then after successfull building, try to find out the depends (namcap and docs of program you are building)


The impossible missions are the only ones which succeed.

Offline

#5 2004-05-24 20:16:20

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: My filelist is empty :(

one hint:

after building, have a look at filelist:

more filelist

and check if this files are logical (any binaries? where are they located? ...)


The impossible missions are the only ones which succeed.

Offline

#6 2004-05-24 21:04:08

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: My filelist is empty :(

The makefile uses DESTDIR. Use

  make DESTDIR=$startdir/pkg install

Offline

#7 2004-05-25 09:21:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: My filelist is empty :(

Tried PKGBUILD got...

==> Starting build()...
BitlBee configure

Architecture: Linux
Linux is our primary development platform, BitlBee should work well.

Configuration done:
  Debugging disabled.
  Binary stripping enabled.
  Tcpd support disabled.
  Iconv support enabled.
  Flood protection disabled.
  Building with these protocols: msn jabber oscar yahoo
mkdir -p /home/kevin/Documents/pkg/usr/sbin/
mkdir -p /home/kevin/Documents/pkg/usr/share/bitlbee/
chmod 0755 /home/kevin/Documents/pkg/usr/sbin/ /home/kevin/Documents/pkg/usr/share/bitlbee/
rm -f /home/kevin/Documents/pkg/usr/share/bitlbee//help.txt # Prevent help function from breaking in running sessions
install -m 0755 bitlbee /home/kevin/Documents/pkg/usr/sbin//bitlbee
install: cannot stat `bitlbee': No such file or directory
make: *** [install-bin] Error 1
==> ERROR: Build Failed.  Aborting...

Looks like it should be /pkg/usr/share/bitlbee ????

Mr Green

md5sum is d26fc287993e020b38fbde7e5ac6ad0b   smile

Maybe problem with Makefile ??


Mr Green

Offline

#8 2004-05-25 11:33:57

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: My filelist is empty :(

install -m 0755 bitlbee /home/kevin/Documents/pkg/usr/sbin//bitlbee

I can see two "/" (slashes) in this line.. maybe that's the problem (I don't know).

Offline

#9 2004-05-25 16:50:45

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: My filelist is empty :(

kpiche, I did as you suggested(to use DESTDIR), and the build worked. Thanks. yikes

#Contributor Ravi Desai <ravster3@hotmail.com>
pkgname=bitlbee
pkgver=0.85a
pkgrel=1
pkgdesc="Talk on the MSN, ICQ, Jabber, Yahoo!, and AIM networks with any IRC client."
url="http://www.bitlbee.org/"
license="GPL"
depends=('gnutls' 'glib2')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz)
md5sums=('d26fc287993e020b38fbde7e5ac6ad0b')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  mkdir -p $startdir/pkg/var/lib/bitlbee
  make DESTDIR=$startdir/pkg install
  echo Running 'make install-etc'
  make DESTDIR=$startdir/pkg install-etc
}

Also, I have added 'make install-etc' at the bottom since it was suggested during the build
And the program does not need to be compiled, just installed directly. At the bitlbee website, its said that some entries should be put into inetd.conf or something. Is is possible to do that from the install directly? Possibly through the install scripts that could be used?
Could someone move this post to Requested packages? Since it should probably go there or to new packages now.

Everyone, thanks for your help, I appreciate it smile

Edit:
The setting that have to be changed are found at http://reviewed.homelinux.org/software/irc/bitlbee/

Offline

#10 2004-05-25 20:05:22

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: My filelist is empty :(

No problem.  DP mentioned it first tho...  Unfortunately your package only contains directories and some configuration files - the filelist:

.FILELIST
.PKGINFO
usr/
usr/etc/
usr/etc/bitlbee/
usr/etc/bitlbee/bitlbee.conf
usr/etc/bitlbee/motd.txt
usr/sbin/
usr/share/
usr/share/bitlbee/
var/
var/lib/
var/lib/bitlbee/

You need to compile the source first.  After the "./configure" line you need a line: "make || return 1".  You would think that the make install target would depend on the binary being built first. roll Duh.

As for your inetd question, add xinetd to the depends= and then have the PKGBUILD copy the doc/bitlbee.xinetd to $startdir/pkg/etc/xinetd.d directory.  Then you can add a postinstall script to kill -HUP the xinetd daemon if you want the service available right away.

HTH

Offline

Board footer

Powered by FluxBB