Commit graph

56 commits

Author SHA1 Message Date
rillig
ca9c50a7e1 Fixed pkglint warnings. 2006-05-17 06:12:27 +00:00
christos
03360d73b6 bump version 2006-02-02 19:29:09 +00:00
christos
c53c81e372 hack for solaris automounter. 2006-02-02 19:28:25 +00:00
minskim
3f8fb63c0c Update pax to 20051108. The previous version failed to handle the -X
option, which is used in print/teTeX3-texmf.  The only difference from
the pax in src is that tar does not support the --chroot option if
fchroot(2) is not available.


Major changes and bug fixes since 20040802:

PR/18759: FUKAUMI Naoki: pax/tar dot-dot handling broken
PR/18840: Frederick Bruckman:  Fix for PR/18663 incomplete pax symlink handling
This patch makes ``--insecure'' do something. Now if ``--insecure''
is not set (the default) we do a realpath(3) in all the pathnames
that we are trying to create and if either realpath fails, or the
path is outside our working directory, we print a warning and die.
This maybe too strict and might fail on valid archives that create
symlinks and directories in the wrong order.

PR/31923: Sergey Svishchev: pax-as-tar ignores -k, overwrites existing files
Fix from Onno van der Linden

PR/30132: Juan RP: tar --chroot refuses to extract files.
fchroot() changes the effective path, so we need to call updatepath().

Apply user supplied patterns first before applying actions for -A. This way pax
behavior WRT to patterns lines up with the example in the documentation
and how other implementations do it as well since -A is a non-standard
option/behavior. Fixes items noted in PR#23776

Add an option --chroot to tar.  Causes it to chroot(".") before doing
an extract.  With -h this will cause existing absolute symlinks to be treated
as relative to the current directory.
Helps sysinst handle existing symlinks in the target system.
Remove 'L' from the usage (got spilt into 'h' and 'H' many moons ago)
Add 'S' to usage, and put into correct place in options list.

PR/27213: Greg A. Woods: pax doesn't honour SIGPIPE when listing
But always exit, not just on SIGPIPE.

Properly handle "cpio" archives where the last hardlink includes the
data of a file. This fixes PR bin/26514.

PR/20228: Simon Burge: pax has problems reading a particular cpio archive
The problem here is that the archive is too short (< 512 bytes). The
buffer routines, try to read at least 512 bytes, even when we try to determine
what format file we have, which is wrong.

Don't leave arcn->org_name pointing to ftent->fts_path, if we being cpio
then ftent is freed just below.  Take a copy of the name and point org_name
at the copy.
Should fix PR/30627 (the fix in the PR will break pax and tar!)

PR/30167: J.T. Conklin: NetBSD tar does not support GNU tar --no-recursion flag

Fix from PR#29290. Properly terminate the cpio_longopts struct so an unknown
option doesn't run off the end and core dump

Fix broken cpio(1) option handling:
- "cpio -i -t" should list the contents of a file, not extract it.
- Don't extract a file when only option "-d" is given.
Patch supplied by Paul Ripke in PR bin/26513.

PR/27212: Greg A. Woods: Accept "-C <dirname>" inside filelists in addition
to "-C\n<dirname>".
But we are not making it the default output option as the patch suggests.

PR/19490: Julio Merino: Teach tar about --sparse, -S option.
Do it for cpio too.

PR/27208: Greg A. Woods: pax must call options() before using syswarn()
or tty_warn()

PR/20071: Perry Metzger: --extract handling is broken. This patch fixes
Perry's example.
2005-12-01 03:00:01 +00:00
rillig
d67097247a Changed values of some variables to "yes" instead of #defined. 2005-05-31 21:39:29 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
tv
049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00
grant
495ab8cee9 update config.{sub,guess} for various bootstrap tools. fixes build on
newer platforms such as DragonFly.

fixes PR pkg/28579 from Todd Willey.
2004-12-12 00:46:28 +00:00
jlam
683567c435 Fix the version number of the package in the configure script, and modify
the Makefiles so that they can be built by really basic make programs.
2004-08-21 06:33:39 +00:00
jlam
6985e27f27 Check for a few more system headers after the update to pax-20040804. 2004-08-21 05:06:41 +00:00
jlam
3f57bcbb36 Mirror change in archivers/mtree by <heinz> on 2004/04/16:
Introduce HAVE_FILE_FLAGS if the system declares UF_SETTABLE and SF_SETTABLE
in addition to member 'st_flags' of struct stat. Use HAVE_FILE_FLAGS instead
of HAVE_STRUCT_STAT_ST_FLAGS.
This avoids confusion on UnixWare which has 'st_flags' but does _not_ support
file flags.
2004-08-21 04:20:50 +00:00
jlam
ff44898db4 Update archivers/pax to 20040802 (latest version on src HEAD). Changes
from previous include:

  - include a pax2nbcompat script to ease importing from src HEAD
    into pkgsrc.

  * for copy mode, show more meaningful information on SIGINFO.
2004-08-21 03:28:49 +00:00
jlam
896e92919d If LIBNBCOMPAT_STYLE is set to "inplace", then build and use a local
version of libnbcompat instead of requiring libnbcompat to be installed.
This simplifies testing of bootstrap packages without root privileges
on a system that has already been bootstrapped.
2004-08-14 02:33:32 +00:00
jlam
169328c7d5 Check for all system headers needed in the sources. 2004-08-13 14:52:11 +00:00
grant
e399158ba6 bump to 20040703. 2004-07-03 02:50:32 +00:00
grant
c8c0ca8a03 sync with src:
Salvage the `create parent directories and try again' path which is
removed by the previous commit.
2004-07-03 02:50:21 +00:00
grant
5123eb9e1b bump to 20040626. 2004-06-26 13:31:47 +00:00
grant
e24d57c28d sync with src:
break out of the loop and avoid the infinite loop if attempts to
create, unlink and create all fail.
2004-06-26 13:30:59 +00:00
grant
663b3eaa47 sync with src:
don't attempt to remove the current directory.
2004-06-26 12:42:02 +00:00
grant
64c34cde46 bump to 20040620. 2004-06-20 10:11:56 +00:00
grant
fd78a9be8e sync pax with src/ from 20040620, includes many bug fixes including
properly handling broken archives.
2004-06-20 10:11:02 +00:00
heinz
376f91082d pax does not support tape drives on Unixware at the moment. 2004-04-12 12:34:16 +00:00
jlam
326169077a USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined. 2004-03-23 04:40:59 +00:00
tv
fbac3615a8 Wrap physical mt operations in SUPPORT_TAPE, and define that if either of
<sys/mtio.h> or <sys/tape.h> is available.
2004-03-11 20:10:29 +00:00
xtraeme
6c39a6eab6 bl3ify 2004-03-11 18:03:49 +00:00
grant
8b8e7d1cf0 bump version to 20031220. 2003-12-20 04:47:38 +00:00
grant
268cdc4a22 regen without insane line wrapping. 2003-12-20 04:47:19 +00:00
grant
798a3fb1b6 sync with -current:
Don't emit any warnings when tar is trying to figure out if the file is
really tar format.  valid CPIO files should not trigger a warning from tar.c
2003-12-20 04:46:27 +00:00
grant
7f81d2f7df sync with -current:
Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. confirmed to the board by Keith Muller.
2003-12-20 04:45:04 +00:00
erh
5d4fd31572 Bump to 20031205. Add support for AIX. 2003-12-05 16:38:38 +00:00
erh
8e083a76f8 Update pax to work on AIX. Use tape.h with appropriate fixups since
there's no mtio.h
2003-12-05 16:35:54 +00:00
erh
4f33af102c Fix a call to ftree_add. s/NULL/0/ 2003-12-05 16:34:32 +00:00
grant
20360d359c sync with NetBSD-current's pax-20030923. 2003-09-23 14:37:41 +00:00
grant
e564a5265b don't use VAR+=, it doesn't work with all make(1)s. 2003-09-15 05:33:41 +00:00
grant
8ac42db09b bump version to 20030915 after latest changes. 2003-09-15 04:39:14 +00:00
grant
4b107be2da define _PATH_DEFTAPE in nbcompat.h to avoid redefining it when paths.h
is included.
2003-09-14 14:24:12 +00:00
grant
6a2c9d8555 libnbcompat tests for pwd.h, so no need to test for it here. 2003-09-06 05:53:03 +00:00
grant
a4dfb4c8f9 (my) linux defines DEFTAPE, not _PATH_DEFTAPE, so use that or
"/dev/tape" if DEFTAPE is undefined.
2003-09-06 05:10:17 +00:00
jlam
80e302b380 Update archivers/pax to 20030905. Changes from previous version include
syncing with -current, making this build using libnbcompat-20030829, and
cleaning up the configure script and Makefile.
2003-09-05 18:40:47 +00:00
grant
d09d5f0f4e allow this to build again after the recent lot of libnbcompat
changes (full sync with -current coming soon).
2003-09-05 05:48:56 +00:00
grant
fd5abef87c also install man page source, bump to 20030731. 2003-07-31 09:34:13 +00:00
wiz
de9333152e Bump date for -O change. 2003-07-09 14:42:43 +00:00
jschauma
95397dc7b6 Synch with latest changes by simonb@ in basesrc and as a result, bump
the version to todays date:
Add support for gnutar's -O "extract to stdout" option.
2003-07-08 18:40:28 +00:00
grant
78c00e091c install into into bin, not sbin 2003-06-30 14:58:31 +00:00
grant
633bd0944f install catman pages, like bootstrap-pkgsrc does.
bump to 20030630.
2003-06-30 11:47:27 +00:00
grant
db72255379 sync with -current:
----------------------------
revision 1.18
date: 2003/06/24 16:23:31;  author: christos;  state: Exp;  lines: +44 -9
Revert previous change, and fix the -T problem differently: When the options
of the second argument are exhausted, call the appropriate getopt() routine
to process the rest of the arguments instead of finishing option processing.
Fixes:
        tar cf - -T foo
2003-06-30 11:45:40 +00:00
jschauma
0e81cc9882 Make pax compile on Irix by including pwcache.h, which now includes
forward declarations of the uid_from_user functions.
2003-06-24 14:09:21 +00:00
grant
8d2952fff3 bump to 20030623 (PKGVERSION is already there) 2003-06-24 08:08:38 +00:00
grant
8cd78ad7f2 fix path in comment 2003-06-24 08:06:19 +00:00
grant
b80ea00458 sync with -current
file_subs.c 1.33
pax.h 1.19
2003-06-24 08:04:18 +00:00