You are not logged in.

#1 2004-01-06 03:45:55

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

zisofs-tools PKGBUILD help

I compiled zisofs-tools (utilities for creating compressed CD-ROM filesystems) on my machine without problem. When making it into an AL package, I cannot get makepkg to create the binaries:

Makepkg Error wrote:

==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> 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: zisofs-tools  (Tue Jan  6 11:44:32 PST 2004)

PKGBUILD

pkgname=zisofs-tools
pkgver=1.0.4
pkgrel=1
pkgdesc="Utilities for creating compressed CD-ROM filesystems."
pkgurl="http://www.kernel.org/pub/linux/utils/fs/zisofs"
depends=('glibc')
source=($pkgurl/$pkgname-$pkgver.tar.gz)

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

Markku

Offline

#2 2004-01-06 13:31:09

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: zisofs-tools PKGBUILD help

Hi rasat,

Looking at the Makefile for your source program, zisofs-tools, it does not use DESTDIR.  Try replacing that with INSTALLROOT in your PKGBUILD file.

That seems to fix it on my system.

EDIT: Oh, and I built the package as a non-privileged user so my 'makepkg' choked earlier than yours.  I'm guessing you did yours as root and it actually installed the files to your local system, but then when it tried to package it up, broke.  Mine choked when trying to copy the build files to my local dirs.


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#3 2004-01-06 16:37:15

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: zisofs-tools PKGBUILD help

Thanks.
I was not aware there are two options:  DESTDIR and INSTALLROOT. What's the difference? How do we know what to use?

PS.
The zisofs-tools is great.... only one file (+ man page), but does a good job.
# mkzftree <input_dir> <name-of-dir-where-to-compress>

For  transparently  compressed files ("-z"):
# mkisofs -z -o -R

I compressed the AL-AMLUG Live CD ... from 693MB to 370MB, and did a test run. Seems to be a bit faster and smoother.


Markku

Offline

#4 2004-01-06 17:20:10

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: zisofs-tools PKGBUILD help

rasat wrote:

Thanks.
I was not aware there are two options:  DESTDIR and INSTALLROOT. What's the difference? How do we know what to use?

It depends on the Makefile shipped with the source.  I'd never heard of DESTDIR until coming to Arch.  I've most commonly seen "./configure --prefix=somedir" used to tell the software where to install.  In this case, I just looked at the Makefile to see what to use and was lucky enough to find a DESTDIR equivalent.


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

Board footer

Powered by FluxBB