You are not logged in.

#1 2007-07-04 16:58:18

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Whats wrong with the install cammand?

That's strange:
I try to build neko but the install command doesn't what I want it to do...
It copies one file multiple times into the DEST dir instead of installing multiple files into one dir. See below...

[sigi@arch neko]$ cat PKGBUILD 
pkgname=neko
pkgver=1.5.3
pkgrel=1
pkgdesc="Neko is a high-level dynamically typed programming language which can also be used as an embedded scripting language."
url="http://nekovm.org"
license="LGPL"
arch=('i686' 'x86_64')
depends=('gc' 'pcre' 'sqlite3' 'zlib')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("http://nekovm.org/_media/${pkgname}-${pkgver}.tar.gz?id=download&cache=cache")
md5sums=(5c6fa424b9d95aecb7c22da430c0c9a4)

build() {
  cd $startdir/src/$pkgname-$pkgver
  echo -e "s\ns\ns\n" | make || return 1
  mkdir -p $startdir/pkg/usr/{bin,lib}
  install -m755 ./bin/neko ./bin/nekoc ./bin/nekoml ./bin/nekotools  $startdir/pkg/usr/bin/
  install -m644 ./bin/libneko.so ./bin/regexp.ndll ./bin/sqlite.ndll ./bin/std.ndll ./bin/zlib.ndll ./bin/test.n  $startdir/pkg/usr/lib/
}
[sigi@arch neko]$ /bin/ls -l src/neko-1.5.3/bin/
insgesamt 784
-rwxr-xr-x 1 sigi users 129020  4. Jul 18:49 libneko.so
-rwxr-xr-x 1 sigi users   7868  4. Jul 18:49 neko
-rwxr-xr-x 1 sigi users 171967  4. Jul 18:49 nekoc
-rwxr-xr-x 1 sigi users 271393  4. Jul 18:49 nekoml
-rwxr-xr-x 1 sigi users  68247  4. Jul 18:49 nekotools
-rwxr-xr-x 1 sigi users  10247  4. Jul 18:49 regexp.ndll
-rwxr-xr-x 1 sigi users  13377  4. Jul 18:49 sqlite.ndll
-rwxr-xr-x 1 sigi users 100152  4. Jul 18:49 std.ndll
-rw-r--r-- 1 sigi users    175  4. Jul 18:49 test.n
-rwxr-xr-x 1 sigi users  11729  4. Jul 18:49 zlib.ndll
[sigi@arch neko]$ /bin/ls -l pkg/usr/lib/
insgesamt 272
-rw-r--r-- 1 sigi users 128742  4. Jul 18:49 libneko.so
-rw-r--r-- 1 sigi users  10222  4. Jul 18:49 regexp.ndll
-rw-r--r-- 1 sigi users  13352  4. Jul 18:49 sqlite.ndll
-rw-r--r-- 1 sigi users  99721  4. Jul 18:49 std.ndll
-rw-r--r-- 1 sigi users    175  4. Jul 18:49 test.n
-rw-r--r-- 1 sigi users  11706  4. Jul 18:49 zlib.ndll
[sigi@arch neko]$ /bin/ls -l pkg/usr/bin/
insgesamt 32
-rwxr-xr-x 1 sigi users 7868  4. Jul 18:49 neko
-rwxr-xr-x 1 sigi users 7868  4. Jul 18:49 nekoc
-rwxr-xr-x 1 sigi users 7868  4. Jul 18:49 nekoml
-rwxr-xr-x 1 sigi users 7868  4. Jul 18:49 nekotools

The strange thing is that the same thing also happens with multiple install commands written by itself, like in the PKGBUILD posted in the link above.
Please help me! hmm

Cheers Sigi

Last edited by Sigi (2007-07-04 17:00:04)


Haven't been here in a while. Still rocking Arch. smile

Offline

#2 2007-07-04 22:02:26

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

Re: Whats wrong with the install cammand?

AFAICS, your commands have been successful - so I'm confused. :?

To expand a little, everything that is included in this command:

install -m755 ./bin/neko ./bin/nekoc ./bin/nekoml ./bin/nekotools  $startdir/pkg/usr/bin/

is listed in pkg/usr/bin above. Similarly for pkg/usr/lib.

Have I missed something? Or can you give any more detail on the problem?

Offline

#3 2007-07-04 23:27:45

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Whats wrong with the install cammand?

Sorry, I should have been more specific: Have a look at the filesizes of the files in pkg/usr/bin and compare them to the them in src/neko-1.5.3/bin. I was able to work around this issue by using { and } , but I'm still confused why this didn't work as intended...


Haven't been here in a while. Still rocking Arch. smile

Offline

Board footer

Powered by FluxBB