[PATCH] Change to ustar for filenames >99 length



Hello,

please consider the attached patch for inclusion in NetworkManager 0.7 
trunk. By default, Automake generates 'v7' tar archives on 'make dist', 
which do not allow files with more than 99 characters in the path name. 
This becomes an issue when you append data to the version number (as I 
do for unreleased snapshots), and can be seen here:

=====================================================================
tardir=NetworkManager-0.7.0_pre20080807 && /bin/sh ./missing --run tar 
chof - "$tardir" | GZIP=--best gzip -c 
>NetworkManager-0.7.0_pre20080807.tar.gz
tar: 
NetworkManager-0.7.0_pre20080807/system-settings/src/org.freedesktop.NetworkManagerSystemSettings.service.in: 
file name is too long (max 99); not dumped
tar: Error exit delayed from previous errors
=====================================================================

The patch enables such filenames by changing to the 'ustar' tarfile 
format.

Regards,
Robert
Change to automake 1.9 and 'ustar' tar format
defined by POSIX 1003.1-1988, allowing for file
names longer than 99 characters.

--- autogen.sh	2008-03-07 00:45:34 +0000
+++ autogen.sh	2008-08-18 12:07:05 +0000
@@ -3,7 +3,7 @@
 
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
-REQUIRED_AUTOMAKE_VERSION=1.7
+REQUIRED_AUTOMAKE_VERSION=1.9
 PKG_NAME=NetworkManager
 
 (test -f $srcdir/configure.in \

--- configure.in	2008-07-21 11:23:58 +0000
+++ configure.in	2008-08-18 12:04:38 +0000
@@ -1,7 +1,7 @@
 AC_PREREQ(2.52)
 
 AC_INIT(NetworkManager, 0.7.0, dcbw redhat com, NetworkManager)
-AM_INIT_AUTOMAKE([subdir-objects])
+AM_INIT_AUTOMAKE([subdir-objects tar-ustar])
 AM_MAINTAINER_MODE
 
 AC_CONFIG_HEADERS(config.h)

Attachment: signature.asc
Description: This is a digitally signed message part.



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