I recently came across some software that I wanted to package that uses
file names like "\vee.".  (Some of the file names are names of TeX
macros, followed by a period.)  Unfortunately, dpkg breaks when trying
to create a deb containing files like these; the error is something like
"tar: unable to stat: No such file or directory: \vee.".  (I forget the
exact error that tar produces, but it is very close to that.)

The problem seems to be that, when the list of files in a
not-yet-created package is given to tar with the help of the -T flag,
tar treats file names like "\vee." as containing an escape character.

After some digging around, I found the `--no-unquote' option in the tar
documentation.  If this option is added to this list of arguments to tar
I am able to create my package with files like "\vee." just fine.  The
relevant code change is in line 450 of build.c in the subdirectory
dpkg-deb of version 1.10.21 of dpkg:

  execlp(TAR,"tar","-cf", "-", "--null", "-T", "-", "--no-recursion", 
"--no-unquote", (char*)0);

instead of

  execlp(TAR,"tar","-cf", "-", "--null", "-T", "-", "--no-recursion", (char*)0);

What would be the consequences of adding this flag to the invocation of
tar?  Do we know of any packages that require that the --no-unquote flag
be absent?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to