makechrootpkg and multiple sources, a bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I just tried building a package with more than one source file using
makechrootpkg.  It failed with this message:

  ==> ERROR: Integrity checks (md5) differ in size from the source array.

After a bit of poking around in the makechrootpkg script I made the
following change:

--- makechrootpkg.orig  2011-02-20 09:22:30.130744179 +0000
+++ makechrootpkg       2011-02-20 09:22:44.494796349 +0000
@@ -173,7 +173,7 @@
 for f in ${source[@]}; do
        basef=$(echo $f | sed 's|::.*||' | sed 's|^.*://.*/||g')
        if [ -f "$basef" ]; then
-               cp "$basef" "$copydir/srcdest/"
+               cp "$basef" "$copydir/build/"
        elif [ -f "$SRCDEST/$basef" ]; then
                cp "$SRCDEST/$basef" "$copydir/srcdest/"
        fi

After this the package built just fine.  I'm doubting myself in this
though, because it seems like such an obvious bug, especially since
the PKGBUILD is copied into $copydir/build/ just a few lines above
this change.  Also, should the copy in the elif-branch be changed too?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus@xxxxxxxxxxxx   jabber: magnus@xxxxxxxxxxxx
twitter: magthe               http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay

Attachment: pgpCguHvwRi_4.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux