Ticket #248 (closed defect: fixed)
Opened 6 years ago
Last modified 6 years ago
haikuporter seems to only like .tar.gz files, if given a .bz2 or .tgz or any other archive it can't handle it.
| Reported by: | scottmc | Owned by: | brecht |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | haikuporter | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Add support for other types of possible archive files.
Attachments
Change History
Changed 6 years ago by haikubot
- attachment tgz_bz2_support.diff added
comment:1 Changed 6 years ago by haikubot
comment:2 Changed 6 years ago by scottmc
i just tried it with libdvdnav and it didn't work. libdvdnav has a .bz2 archive.
comment:3 Changed 6 years ago by haikubot
It's very strange Python's behavior under Haiku. Because under Windows and Ubuntu Python returns True, if set bla.bz2 archive to as param to
tarfile.is_tarfile('bla.bz2')
Another strange behavior that even you try use
tarfile.open('bla.bz2')
under Haiku, python return error. So there something wrong with Python for Haiku.
I remember that older Python version (not sure which one) works correctly under Haiku.
You can check this yourself under any OS.
import tarfile
print tarfile.is_tarfile('/path/to/bla.bz2')
comment:4 Changed 6 years ago by scottmc
I rebuilt python with bzip2 support and I now get this error:
~> haikuporter -i libdvdnav-4.1.3 No dependencies Fetching http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2 100% [===================================] 110,843 19.81K/s ETA 00:00 Unpacking libdvdnav-4.1.3.tar.bz2 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -urN libdvdnav-4.1.3/configure.ac libdvdnav-4.1.3-haiku/configure.ac |--- libdvdnav-4.1.3/configure.ac 2009-02-19 07:41:01.000000000 +0000 |+++ libdvdnav-4.1.3-haiku/configure.ac 2009-02-19 07:33:27.000000000 +0000 -------------------------- File to patch:
so it seems it's not extracting the .bz2 archive still.
comment:5 Changed 6 years ago by haikubot
All fine for me now:
Python 2.6.4 (r264:75706, Nov 12 2009, 02:27:24) [GCC 4.3.3] on haiku1 Type "help", "copyright", "credits" or "license" for more information. >>> KeyboardInterrupt >>> exit() /Data/projects/beporter> python haikuporter.py -i libdvdnav Following versions of libdvdnav are available: 4.1.3 Run haikuporter again, specifiying a port version /Data/projects/beporter> python haikuporter.py -i libdvdnav-4.1.3 No dependencies Fetching http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2 100% [===================================] 110,843 143.84K/s ETA 00:00 Unpacking libdvdnav-4.1.3.tar.bz2 patching file libdvdnav-4.1.3/configure.ac
comment:6 Changed 6 years ago by scottmc
- Resolution set to fixed
- Status changed from new to closed
Patch applied in r478.

This should help.