Commit graph

49 commits

Author SHA1 Message Date
joerg
0261c02566 Switch to xz version from upstream and remove outdated comment about
dependency cycles.
2014-01-03 14:55:47 +00:00
ryoon
57d785b50e Update to 2.7.1
Changelog:
Changes in version 2.7.1:

* Two critical bug fixes in the "diff --git" format support.
* Clarify the message printed when a patch is expected to empty out and delete
  a file, but the file does not become empty.
* Various improvements to messages when applying a patch to a file of different
  type (regular file vs. symlink), when there are line ending differences (LF
  vs. CRLF), and when in --dry-run mode.
* When in the root directory, allow file names that are absolute or that
  contain a component of "..".
* New --follow-symlinks option to allow to treat symlinks as files: this was
  patch's behavior before version 2.7.
* Ignore when extended attributes cannot be preserved because they are
  unsupported or because permission to set them is denied.
* License clarifications in NEWS and README.
* Portability bug fixes.

Changes in version 2.7:

* Patch no longer gets a failed assertion for certain mangled patches.
* Ignore destination file names that are absolute or that contain a component
  of "..".  This addresses CVE-2010-4651.
* Support for most features of the "diff --git" format, including renames and
  copies, permission changes, and symlink diffs.  Binary diffs are not
  supported yet; patch will complain and skip them.
* Support for double-quoted filenames: when a filename starts with a double
  quote, it is interpreted as a C string literal.  The escape sequences \\, \",
  \a, \b, \f, \n, \r, \t, \v, and \ooo (a three-digit octal number between 0
  and 255) are recognized.
* Refuse to apply a normal patch to a symlink.  (Previous versions of patch
  were replacing the symlink with a regular file.)
* When trying to modify a read-only file, warn about the potential problem
  by default.  The --read-only command line option allows to change this
  behavior.
* Files to be deleted are deleted once the entire input has been processed, not
  immediately.  This fixes a bug with numbered backup files.
* When a timestamp specifies a time zone, honor that instead of assuming the
  local time zone (--set-date) or Universal Coordinated Time (--set-utc).
* Support for nanosecond precision timestamps.
* Many portability and bug fixes.

Changes in version 2.6.1:

* Support for diff3(1) style merges which show the old, original, and new lines
  of a conflict has been added (--merge=diff3).  The default still is the
  merge(1) format (--merge or --merge=merge).
* Bug and portability fixes.

Changes in version 2.6:

* A regression test suite has been added ("make check").
* A --merge option has been added which will merge a patch file into
  the original files similar to merge(1).  See the patch(1) manual page for
  documentation.
* Unless a filename has been specified on the command line, look only
  for filenames in the patch until one has been found.  This prevents
  patch from tripping over garbage that isn't a patch.  When conforming
  to POSIX, this behavior is turned off and patch will ask for a
  filename if none is found.
* All reject files have file name headers, which allows them to be used as
  regular patches.
* When a patch file modifies the same file more than once, patch makes
  sure it backs up the original version of the file rather than any
  intermediary versions.
* In the above situation, if there are rejects in more than one of those
  patches, they all go into the same reject file.
* When the file to be patched is specified on the command line, all patches
  are applied to that file. (Previously, the first patch was applied to the
  file specified on the command line, and the names of additional files to
  patch were taken from header lines in the patch file.)
* The -r option now works correctly even if there are rejects in more than
  one file.  Use the - argument to discard rejects.
* Rejected hunks come out in unified diff format if the input patch was of
  that format, otherwise in ordinary context diff form.  Use the
  --reject-format option to enforce either "context" or "unified" format.
  Timestamps and the "diff -p" (--show-c-function) output are preserved.
  Changed lines in context format reject files are correctly indicated
  with '!' markers as the format defines.  Added and removed lines are
  still marked with '+' and '-', respectively.
* The file permissions of reject files are no longer set to match the files
  they modify.  Instead, they retain the default permissions.  This is
  consistent with reject files produced with the -r option.
* The --binary option disables the heuristic for stripping CRs from
  line endings in patches.  This allows to preserve CRs even in mangled
  patches, or in patches generated on non-POSIX systems and without the
  --binary option.
* Backup files for nonexisting files are now created with default
  permissions rather than with mode 0: backup files with mode 0 were
  causing problems with applications which do not expect unreadable
  files.
* The -B, -Y, and -z options (--prefix, --basename-prefix, --suffix) now
  imply the simple version control mode, and can be combined.
* Patch rejects more malformed normal format commands and checks for trailing
  garbage.  It now recognizes ed commands without addresses.
* Change the default value of PATCH_GET to 0.  (Previously, the default was 0
  under POSIXLY_CORRECT and negative otherwise; this is causing problems
  particularly with Perforce.)
* Handle missing timestamps better.
* Various bug fixes.
* Switch to GNU General Public License version 3.
2014-01-01 05:32:27 +00:00
sbd
43f14832af Use ${PKGGNUDIR} and ${PKGMANDIR} in INSTALLATION_DIRS. 2012-12-31 00:27:36 +00:00
jperkin
cefff77d66 Add PKGGNUDIR support. 2012-12-06 11:38:19 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
cheusov
46a5dcfbfa Add gnu/man/man1/patch.1
++pkgrevision
2012-06-01 16:32:41 +00:00
cheusov
60e53fafc7 Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@).
All utilities are installed with a prefix 'g'. Symlinks with original
names are created in ${PREFIX}/gnu/bin.

++pkgrevision
2012-05-29 21:19:30 +00:00
tron
4e0d694bb0 Update "patch" package to version 2.5.9. Changes since version 2.5.4:
- patch -D now outputs preprocessor lines without comments, as required
  by POSIX 1003.1-2001.
- File names in context patches may now contain spaces, so long
  as the context patch headers use a tab to separate the file name
  from the time stamp.
- Perforce is now supported.
- Patch lines beginning with "#" are comments and are ignored.
- The bug reporting address is now <bug-patch@gnu.org>.
- bug fixes
2011-07-09 10:32:17 +00:00
heinz
e2149dfda7 LICENSE is gnu-gpl-v2 2009-11-30 18:32:53 +00:00
joerg
5e8cacdaa0 Clarify that devel/patch is the GPL-patch from the FSF. 2008-09-10 10:13:50 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
rillig
d6cd35a8b5 Fixed pkglint warnings. 2006-06-17 20:53:09 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
9f94b112f0 Remove the old tools framework and references to _USE_NEW_TOOLS. 2005-05-22 19:11:12 +00:00
jlam
046ef1ec0b Use an uncompressed tar archive of the sources from ${MASTER_SITE_LOCAL}.
This ensures that we won't need gzcat to extract the sources, which
could potentially cause a circular dependency on archivers/gzip-base.
2005-05-16 20:04:12 +00:00
jlam
fdd75261a6 We only need the evil hack with the old tools framework. 2005-05-16 00:29:32 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
jschauma
5419c918f3 Follow Grant's advice: use _OPSYS_GPATCH_REQD to influence _NEED_PATCH
and let tools.mk take care of the rest.
2004-05-19 03:26:09 +00:00
jschauma
7384d31eb1 We have a variable _OPSYS_GPATCH_REQD, but it doesn't do anything.
Change that:  if it's set to YES, require devel/patch.  If building
devel/patch, set _OPSYS_GPATCH_REQD to NO, as otherwise we have a
circular dependency.
2004-05-19 01:27:03 +00:00
recht
acf63b6eee Enable pkgviews installation. 2004-05-18 11:58:04 +00:00
tv
24ac597e11 Make compile on Interix. It doesn't #define BSD, but it also needs the
"avoid MS-DOS setmode()" treatment.
2004-04-16 20:11:51 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
wiz
b723d54099 Use ${LN} -sf to create symlinks.
Closes PR 21263 by Jeremy C. Reed.
2003-04-22 20:25:08 +00:00
wiz
4e8b7aa2d4 Really install the symlink. 2003-01-07 10:55:51 +00:00
grant
9b294adc8a always install bin/gpatch (thanks wiz).
bump PKGREVISION.
2003-01-07 10:33:26 +00:00
grant
c1c02eb730 Correctly honour GNU_PROGRAM_PREFIX on non-NetBSD platforms for
consistency (hi wiz!)

bump PKGREVISION.
2003-01-06 22:23:06 +00:00
wiz
a1e71bb30a Also add GNU_PROGRAM_PREFIX to BUILD_DEFS. 2002-12-22 17:34:43 +00:00
wiz
d1cf501b1d Use GNU_PROGRAM_PREFIX, patch by Jeremy C. Reed. 2002-12-22 17:30:09 +00:00
seb
4b41b4ff4f Use AWK instead of SED to do the patching, now it works on Solaris.
While here put the patching in target do-patch an remove NO_PATCH.

This should fix PR 16035.
2002-03-24 19:47:28 +00:00
seb
c0eab5c8ac Allow this package to be compiled and installed on any platform:
- prefix program and manpage by `g' if platform is NetBSD
- "manual" patch for BSD systems (setmode() conflict)
2001-12-04 09:14:41 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
wiz
dfb2d5edc6 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 00:44:09 +00:00
agc
86e2ccf167 Move to sha1 digest, and add distfile size 2001-04-18 10:01:41 +00:00
agc
d7d36b3561 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 10:57:56 +00:00
tron
7925db46ea Recontruct bootstrap hack obviously required for strange experiments
performed by the dark side of the force.
2001-03-24 21:10:12 +00:00
tron
e0a11e40c9 Remove hack required for boot strapping Zoularis before "tar" was
included.
2001-03-23 14:11:23 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +00:00
hubertf
cd92bcbc65 Resolve chicken & egg problem when bootstrapping:
chicken == archivers/gtar-base (wants to apply patches)
	egg	== devel/patch (wants gtar to unpack)

Break out by using /usr/bin/tar if $GTAR is not installed.
Might be better in bsd.pkg.mk ...
2000-10-24 19:47:13 +00:00
hubertf
e75965c6ba Update IGNORE-messages for recent changes: add ${PKGNAME} where
appropriate.
2000-08-21 21:01:29 +00:00
abs
df05aef71f Strip trailing '.', and/or leading '(a|an) ' 2000-01-05 15:37:50 +00:00
kim
0dd669b887 Unfortunately /usr/bin/patch is not what we want on Solaris. 1999-09-19 19:56:48 +00:00
kim
5e2a374014 Make this look nicer 1999-09-19 19:40:05 +00:00
kim
2e76a173e7 Forgot PLIST. 1999-09-18 15:35:31 +00:00
kim
e9478f4a70 The patch utility. 1999-09-18 15:27:09 +00:00