You are not logged in.

#1 2010-02-07 00:28:04

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

[solved] makechrootpkg: missing files of source-array

Hi,
I've tried to build a package for murmur today using makechrootpkg.
I can't build a valid package because there are all files missing which are given in the source-array although they exist in the PKGBUILD directory.
The makepkg started by makechrootpkg validates the files correctly:

==> Retrieving Sources...
    -> Using cached copy of mumble-1.2.1.tar.gz
    -> Using cached copy of murmur.rc.d
    -> Using cached copy of murmur.conf.d
    -> Using cached copy of murmur.dbus.conf
    -> Using cached copy of murmur.logrotate.d
==> Validating source files with md4sums...
        mumble-1.2.1.tar.gz ... Passed
        murmur.rc.d ... Passed
        murmur.conf.d ... Passed
        murmur.dbus.conf ... Passed
        murmur.logrotate.d ... Passed

But after correctly compiling the sources these files can't be installed:

install: cannot stat `/build/murmur.rc.d': No such file or directory
install: cannot stat `/build/murmur.conf.d': No such file or directory
install: cannot stat `/build/murmur.dbus.conf': No such file or directory
install: cannot stat `/build/murmur.logrotate.d': No such file or directory

Within this directory the files are missing although they are listed in the source-array.
Is it a bug of makechrootpkg or why are could these files be missing?

Regards
Andrwe

Last edited by Andrwe (2010-02-07 08:00:39)


Website: andrwe.org

Offline

#2 2010-02-07 01:05:34

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] makechrootpkg: missing files of source-array

is a bug in  murmur's PKGBUILD since the source-array is copied in /build/src. for example

install -Dm755 ${startdir}/murmur.rc.d ${pkgdir}/etc/rc.d/murmur
install -Dm644 ${startdir}/murmur.conf.d ${pkgdir}/etc/conf.d/murmur

should be

install -Dm755 ${srcdir}/murmur.rc.d ${pkgdir}/etc/rc.d/murmur
install -Dm644 ${srcdir}/murmur.conf.d ${pkgdir}/etc/conf.d/murmur

etc

Last edited by wonder (2010-02-07 01:06:02)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-02-07 01:14:32

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [solved] makechrootpkg: missing files of source-array

Exactly.  Never use $startdir as there are no guarantees about its location relative to $srcdir or $pkgdir or even what files it contains...

Offline

#4 2010-02-07 08:01:16

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: [solved] makechrootpkg: missing files of source-array

Thank you very much.


Website: andrwe.org

Offline

Board footer

Powered by FluxBB