All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mike (mwester)" <mwester@dls.net>
To: openembedded-devel@openembedded.org
Subject: [RFC] Re: tar & ar native vs host (Fedora 9 issues)
Date: Sat, 14 Jun 2008 21:55:56 -0500	[thread overview]
Message-ID: <485484BC.5000509@dls.net> (raw)
In-Reply-To: <1213146466.20679.16.camel@sulphur.klc>

Barring objections, I'll submit the following patch to fix the bug
described below.  Further details on the patch are in the bug report.
Regards,
Mike (mwester)

--- ipkg-utils/arfile.py.orig   2008-06-11 21:07:01.000000000 -0500
+++ ipkg-utils/arfile.py        2008-06-14 19:56:04.000000000 -0500
@@ -86,6 +86,8 @@
                 return FileSection(self.f, self.f.tell(), size)

             # Skip data and loop
+            if size % 2:
+                size = size + 1
             data = self.f.seek(size, 1)
 #            print hex(f.tell())




Terry Kemp wrote:
> On Tue, 2008-06-10 at 23:50 +1200, Terry Kemp wrote:
>> Hello devs,
>>
>> I have been working on
>> http://bugs.openembedded.net/show_bug.cgi?id=4350
>> and I have attached my recipe mods to this for review should someone
>> care to look at them. 
>>
> 
> Just to confirm...
> 
> same deal with building latest mtn pull of dev...
> 
> [tmk@sulphur org.openembedded.dev]$ mtn status
> Current branch: org.openembedded.dev
> Changes against parent 30fc86774a3da064f530c39eeff1e97d6a7020a0
>   patched  packages/linux/gumstix-kernel_2.6.21.bb
>   patched  packages/linux/gumstix-linux.inc
>   patched  site/common-glibc
> 
> 
> [tmk@sulphur build]$
> cat /build/OE/gumstix-connex/build/tmp/angstrom/work/gumstix-connex-angstrom-linux-gnueabi/minimal-image-1.0-r0/temp/log.do_rootfs.13586
> + rm -rf /build/OE/gumstix-connex/build/tmp/angstrom/rootfs
> + mkdir -p /build/OE/gumstix-connex/build/tmp/angstrom/rootfs
> + '[' 0 '!=' 1 ']'
> + for devtable
> in /build/OE/org.openembedded.dev/files/device_table-minimal.txt
> + makedevs -r /build/OE/gumstix-connex/build/tmp/angstrom/rootfs
> -D /build/OE/org.openembedded.dev/files/device_table-minimal.txt
> + rootfs_ipk_do_rootfs
> + set -x
> + package_update_index_ipk
> + set -x
> + ipkgarchs='all any noarch arm armv4 armv4t armv5e armv5te
> gumstix-connex'
> + '[' '!' -z '' ']'
> +
> touch /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/Packages
> + ipkg-make-index
> -r /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/Packages
> -p /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/Packages
> -l /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/Packages.filelist -m /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk
> 
> + for arch in '$ipkgarchs'
> + '['
> -e /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/ ']'
> +
> touch /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/Packages
> + ipkg-make-index
> -r /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/Packages -p /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/Packages -l /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/Packages.filelist -m /build/OE/gumstix-connex/build/tmp/angstrom/deploy/glibc/ipk/all/
> Traceback (most recent call last):
>   File
> "/build/OE/gumstix-connex/build/tmp/angstrom/staging/i686-linux/usr/bin/ipkg-make-index", line 114, in <module>
>     pkg = ipkg.Package(filename)
>   File
> "/build/OE/gumstix-connex/build/tmp/angstrom/staging/i686-linux/usr/bin/ipkg.py", line 161, in __init__
>     tarStream = ar.open("control.tar.gz")
>   File
> "/build/OE/gumstix-connex/build/tmp/angstrom/staging/i686-linux/usr/bin/arfile.py", line 59, in open
>     f = self._scan(fname)
>   File
> "/build/OE/gumstix-connex/build/tmp/angstrom/staging/i686-linux/usr/bin/arfile.py", line 79, in _scan
>     size = int(descriptor[5])
> IndexError: list index out of range
> [tmk@sulphur build]$ 
> 
> 
> Same fix being tested now.
> 
> 
> Terry
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



      reply	other threads:[~2008-06-15  2:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 11:50 tar & ar native vs host (Fedora 9 issues) Terry Kemp
2008-06-11  1:07 ` Terry Kemp
2008-06-15  2:55   ` Mike (mwester) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485484BC.5000509@dls.net \
    --to=mwester@dls.net \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.