Bug#549333: libapt's AR File parsing gets confused by filenames terminated with /

2009-10-05 Thread Goswin von Brederlow
Alex Bennee bugzi...@bennee.com writes:

 Package: apt
 Version: 0.7.20.2+lenny1
 Severity: normal

 libapt's AR File implementation gets confused by file names which are
 terminated with / (which is sysv feature allowing spaces in file
 names). The result is hand rolling a .deb file with ar generates
 packages which are installable with dpkg but not GDebi (as it uses
 libapt).

FYI: You are using the wrong ar. :) The one in debian is not
compatible with the deb format. It used to be that dpkg would not
accept such debs either.

MfG
Goswin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#549333: libapt's AR File parsing gets confused by filenames terminated with /

2009-10-05 Thread Alex
On Mon, Oct 05, 2009 at 11:26:35AM +0200, Goswin von Brederlow wrote:
 Alex Bennee bugzi...@bennee.com writes:
 
  Package: apt
  Version: 0.7.20.2+lenny1
  Severity: normal
 
  libapt's AR File implementation gets confused by file names which are
  terminated with / (which is sysv feature allowing spaces in file
  names). The result is hand rolling a .deb file with ar generates
  packages which are installable with dpkg but not GDebi (as it uses
  libapt).
 
 FYI: You are using the wrong ar. :) The one in debian is not
 compatible with the deb format. It used to be that dpkg would not
 accept such debs either.

It's probably not helped by our build machine being an ancient Red Hat
7.3. I've been struggling to find if there is a bsdar packaged for it
(or a way of convincing GNU ar to output BSD style ar files).

However if dpkg is happy to install such hand-built archives libapt
should probably be a little more forgiving of such terminators?

-- 
Alex, homepage: http://www.bennee.com/~alex/
Epperson's law:
When a man says it's a silly, childish game, it's probably
something his wife can beat him at.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#549333: libapt's AR File parsing gets confused by filenames terminated with /

2009-10-05 Thread Julian Andres Klode
On Fri, Oct 02, 2009 at 05:05:29PM +0200, Alex Bennee wrote:
 Package: apt
 Version: 0.7.20.2+lenny1
 Severity: normal
 
 libapt's AR File implementation gets confused by file names which are
 terminated with / (which is sysv feature allowing spaces in file
 names). The result is hand rolling a .deb file with ar generates
 packages which are installable with dpkg but not GDebi (as it uses
 libapt).

It should work since 0.7.20:

  * apt-inst/contrib/arfile.cc:
- support members ending with '/' as well (thanks to Michal Cihr,
  closes: #500988)

I don't know why it does not work for you on apt 0.7.20.2,
if you find the problem please tell us.

After doing ar r archive.ar README, I can do in Python (using
python-apt 0.7.92):

 import apt_inst
 ar = apt_inst.ArArchive(a.ar)
 ar.getnames()
['README']

As can be seen, the '/' is properly removed from the filename.


-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#549333: libapt's AR File parsing gets confused by filenames terminated with /

2009-10-02 Thread Alex Bennee
Package: apt
Version: 0.7.20.2+lenny1
Severity: normal

libapt's AR File implementation gets confused by file names which are
terminated with / (which is sysv feature allowing spaces in file
names). The result is hand rolling a .deb file with ar generates
packages which are installable with dpkg but not GDebi (as it uses
libapt).

http://sourceware.org/ml/binutils/2009-10/msg00063.html

-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.4 (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring   2009.01.31  GnuPG archive keys of the Debian a
ii  libc62.7-18  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.2-1.1 GCC support library
ii  libstdc++6   4.3.2-1.1   The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc   none (no description available)
ii  aptitude  0.4.11.11-1~lenny1 terminal-based package manager
ii  bzip2 1.0.5-1high-quality block-sorting file co
ii  dpkg-dev  1.14.25Debian package development tools
ii  lzma  4.43-14Compression method of 7z format in
pn  python-aptnone (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org