Your message dated Sat, 17 Dec 2011 13:32:27 +0000
with message-id <[email protected]>
and subject line Bug#615875: fixed in libarchive 3.0.0a-1
has caused the Debian Bug report #615875,
regarding libarchive1: ext2 file attributes/flags not fully supported
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
615875: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615875
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libarchive1
Version: 2.8.4-1
Severity: normal


In libarchive/archive_read_disk_entry_from_file.c, there is code
to retrieve ext2 extended file attributes (see chattr(8)) from
regular files and directories but it is not enabled because of
some missing #includes.

Enabling it should only be a matter of applying the patch below
(though you'd probably  wants to also add test code) which seems
to work as expected.

--- libarchive/archive_read_disk_entry_from_file.c~     2011-02-28 
16:55:27.000000000 +0000
+++ libarchive/archive_read_disk_entry_from_file.c      2011-02-28 
16:55:52.501888288 +0000
@@ -26,6 +26,7 @@
 #include "archive_platform.h"
 __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_disk_entry_from_file.c 
201084 2009-12-28 02:14:09Z kientzle $");
 
+#include <fcntl.h>
 #ifdef HAVE_SYS_TYPES_H
 /* Mac OSX requires sys/types.h before sys/acl.h. */
 #include <sys/types.h>
@@ -33,6 +34,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/
 #ifdef HAVE_SYS_ACL_H
 #include <sys/acl.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
 #ifdef HAVE_SYS_EXTATTR_H
 #include <sys/extattr.h>
 #endif
@@ -45,6 +49,16 @@ __FBSDID("$FreeBSD: head/lib/libarchive/
 #ifdef HAVE_SYS_XATTR_H
 #include <sys/xattr.h>
 #endif
+/*
+ * Some Linux distributions have both linux/ext2_fs.h and ext2fs/ext2_fs.h.
+ * As the include guards don't agree, the order of include is important.
+ */
+#ifdef HAVE_LINUX_EXT2_FS_H
+#include <linux/ext2_fs.h>     /* for Linux file flags */
+#endif
+#if defined(HAVE_EXT2FS_EXT2_FS_H) && !defined(__CYGWIN__)
+#include <ext2fs/ext2_fs.h>    /* Linux file flags, broken on Cygwin */
+#endif
 #ifdef HAVE_ACL_LIBACL_H
 #include <acl/libacl.h>
 #endif
@@ -76,6 +90,10 @@ __FBSDID("$FreeBSD: head/lib/libarchive/
 #define        ACL_GET_PERM acl_get_perm_np
 #endif
 
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
 static int setup_acls_posix1e(struct archive_read_disk *,
     struct archive_entry *, int fd);
 static int setup_xattrs(struct archive_read_disk *,
@@ -103,7 +121,7 @@ archive_read_disk_entry_from_file(struct
         * open file descriptor which we can use in the subsequent lookups. */
        if ((S_ISREG(st->st_mode) || S_ISDIR(st->st_mode))) {
                if (fd < 0)
-                       fd = open(pathname, O_RDONLY | O_NONBLOCK | O_BINARY);
+                       fd = open(path, O_RDONLY | O_NONBLOCK | O_BINARY);
                if (fd >= 0) {
                        unsigned long stflags;
                        int r = ioctl(fd, EXT2_IOC_GETFLAGS, &stflags);

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libarchive1 depends on:
ii  libattr1                1:2.4.44-2       Extended attribute shared library
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libxml2                 2.7.8.dfsg-2     GNOME XML library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

libarchive1 recommends no packages.

libarchive1 suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: libarchive
Source-Version: 3.0.0a-1

We believe that the bug you reported is fixed in the latest version of
libarchive, which is due to be installed in the Debian FTP archive:

bsdcpio_3.0.0a-1_amd64.deb
  to main/liba/libarchive/bsdcpio_3.0.0a-1_amd64.deb
bsdtar_3.0.0a-1_amd64.deb
  to main/liba/libarchive/bsdtar_3.0.0a-1_amd64.deb
libarchive-dev_3.0.0a-1_amd64.deb
  to main/liba/libarchive/libarchive-dev_3.0.0a-1_amd64.deb
libarchive11_3.0.0a-1_amd64.deb
  to main/liba/libarchive/libarchive11_3.0.0a-1_amd64.deb
libarchive_3.0.0a-1.debian.tar.gz
  to main/liba/libarchive/libarchive_3.0.0a-1.debian.tar.gz
libarchive_3.0.0a-1.dsc
  to main/liba/libarchive/libarchive_3.0.0a-1.dsc
libarchive_3.0.0a.orig.tar.gz
  to main/liba/libarchive/libarchive_3.0.0a.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andres Mejia <[email protected]> (supplier of updated libarchive package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 16 Dec 2011 16:31:37 -0500
Source: libarchive
Binary: libarchive-dev libarchive11 bsdtar bsdcpio
Architecture: source amd64
Version: 3.0.0a-1
Distribution: experimental
Urgency: low
Maintainer: Debian Libarchive Maintainers <[email protected]>
Changed-By: Andres Mejia <[email protected]>
Description: 
 bsdcpio    - Implementation of the 'cpio' program from FreeBSD
 bsdtar     - Implementation of the 'tar' program from FreeBSD
 libarchive-dev - Multi-format archive and compression library (development 
files)
 libarchive11 - Multi-format archive and compression library (shared library)
Closes: 615875
Changes: 
 libarchive (3.0.0a-1) experimental; urgency=low
 .
   * Package testing release of libarchive for experimental.
   * Better ext2 file attribute/flag support included in new release.
     (Closes: #615875)
   * Remove all patches, applied in upstream source.
   * Add option to unapply patches for dpkg-source v3.
   * Change package name libarchive1 to libarchive11 to match soname bump.
   * Rename files used in packaging libarchive11.
   * Build depend on Nettle library.
   * Add mention of rar support in package description.
   * Remove installation of symlink for libarchive library file.
   * Explicitely build without openssl and with nettle support.
   * Add proper depends to new libarchive11 package.
   * Update symbols file for libarchive11.
   * Ensure bsdtar and bsdcpio are linked to shared library dynamically.
   * Build en_US.UTF-8 locale at runtime to pass test suite.
Checksums-Sha1: 
 91a93247fe2d34526e1ced991f849389b3d78ba6 2250 libarchive_3.0.0a-1.dsc
 a7c62971fcc0677e8afea4df20ea86bcc285f1f7 3262153 libarchive_3.0.0a.orig.tar.gz
 81756ac5566077febe75b47af6cdf453bd520ec2 10007 
libarchive_3.0.0a-1.debian.tar.gz
 723940e2eb90b6eb5bf99ac354f86509a939441d 411408 
libarchive-dev_3.0.0a-1_amd64.deb
 64301764d29203c2850dd14de4ac5aa1824a302b 256058 libarchive11_3.0.0a-1_amd64.deb
 20b1d14699626d86649820ecf577e46e6552630f 61106 bsdtar_3.0.0a-1_amd64.deb
 cabd57f80a9e8ebd1258b280968b9f6ce1f7ff37 40344 bsdcpio_3.0.0a-1_amd64.deb
Checksums-Sha256: 
 4e2dcd5798ab1d4f36c27227186c4741d0ff46c161ca90c82989d683a52f176b 2250 
libarchive_3.0.0a-1.dsc
 bab82f6a705aa006492a182a8b0b9348c73f93cf101496eb49636da4dc00694c 3262153 
libarchive_3.0.0a.orig.tar.gz
 09309d493284843a2b8091a8cc4dead96f7d9881dcb24bf776992881ca971ea2 10007 
libarchive_3.0.0a-1.debian.tar.gz
 0dd71effbfb557c283bbef954522d97cdad63e15ae4f192d6259baf7b9947c69 411408 
libarchive-dev_3.0.0a-1_amd64.deb
 91552ca88d02dfef333531759ec2e874e6c3c621497d9321f8a0f703489cc2ea 256058 
libarchive11_3.0.0a-1_amd64.deb
 d7eef6d1df298388599a8c2758974a4d06bca4cecb8c80d3c5cb550020bc553d 61106 
bsdtar_3.0.0a-1_amd64.deb
 aefd953fe8c047ee3b45d9067781d85d3a8fd103f562f737b9b8fb603b567ca9 40344 
bsdcpio_3.0.0a-1_amd64.deb
Files: 
 48a27d65314e9ba4626bd1b7e16a60ff 2250 libs optional libarchive_3.0.0a-1.dsc
 dbd1100d76df9dc09f832ee42be6d013 3262153 libs optional 
libarchive_3.0.0a.orig.tar.gz
 5994cb88abb4a2171673e475ed321a83 10007 libs optional 
libarchive_3.0.0a-1.debian.tar.gz
 53ab9550741cad19109d552797e906c5 411408 libdevel optional 
libarchive-dev_3.0.0a-1_amd64.deb
 8dff82a6148a2c4b8658f2e663a66b6b 256058 libs optional 
libarchive11_3.0.0a-1_amd64.deb
 e3ea3e44a1b7dbd8aa79ff2e83e32fb6 61106 utils optional bsdtar_3.0.0a-1_amd64.deb
 ff7858c5f1a705ea5990620189a641ad 40344 utils optional 
bsdcpio_3.0.0a-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJO67ylAAoJED+5x4pTyFTfKGgQALbZHIkjxp1OpXMlikPLYKEc
e5JmDA8BSF5kEdCUNkSTs9KjPyPEbNTsYr1bgB/ohjt46bhMo1MAJNEYSO7Xpv5J
bg8dGkgxi7OtaZgdl06LiG+De+8c2GAANqKOVQSPZtAJ6/vZ7VIThRKfM7Yg4vWf
Kq1Y2lPpZymdXPPUcCA3gmO3VsNfAia1uZZYsjS8ajT9+Y+MytbC3HIE4AST73FT
s4c0C8GpsR2h8DOscGO51McWlB6IdV3K1f1X2gy8pPTOheLNWTaNCbq9prpzORpe
udTWltR1K7qqLwvF/pck7QuLF2k/Ie8NhH9ystwLWb7ZbbHtlkwV69NKGMqr9mpz
+TKfBm3AyHHTlN2jhIMxwi0TXQqf+1m6yjA7cPksWSXW/PG/rHWcnxOm/4hSkrff
q0rY06+TS3AQkqdHJxp+TytmSVbFuyucFdfjbRzOpSApIoaPSrQf1pBcKyoLJMGV
Ai9+2A4HvYs5BdEqyop62XIo5/pi6phefZmuWezjWy/2F4YwGyTtCz09arnHRD2/
wp8CpByswi6fBVxGnsLhXCPAVfkhtZPWBY1dMDNn2RzAkQvf7jPWmtoVb6rfzOfb
U+MWHRlEUuEAAsIox4R7WNYvq3/jRiwcbgJc230XWaPHFPfaa38BZwqkCnmUWA0v
BveXWUTG1vaHd7UlXPio
=VA23
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to