NetBSD Problem Report #11220
Received: (qmail 29589 invoked from network); 14 Oct 2000 15:18:43 -0000
Message-Id: <Pine.SOL.4.21.0010141611300.28200-100000@draco.cus.cam.ac.uk>
Date: Sat, 14 Oct 2000 16:18:39 +0100 (BST)
From: Ben Harris <bjh21@netbsd.org>
Sender: Ben Harris <bjh21@cus.cam.ac.uk>
To: gnats-bugs@gnats.netbsd.org
Subject: POSIX.2: patch -b does the wrong thing
>Number: 11220
>Category: standards
>Synopsis: POSIX.2: patch -b does the wrong thing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: standards-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 14 15:19:00 +0000 2000
>Closed-Date: Fri Sep 19 18:40:55 +0000 2008
>Last-Modified: Fri Sep 19 18:40:55 +0000 2008
>Originator: Ben Harris
>Release: 2000-02-07
>Organization:
>Environment:
NetBSD cromarty 1.4X NetBSD 1.4X (CROMARTY) #9: Wed May 3 23:49:51 BST 2000
bjh21@cromarty:/usr/src/sys/arch/macppc/compile/CROMARTY macppc
>Description:
According to POSIX.2, the -b option to patch should cause it to create
backup files with the extension ".orig", whereas our patch demands an
option-argument after -b to specify the extension.
>How-To-Repeat:
cromarty:~$ patch -b
patch: **** missing argument after `-b'
>Fix:
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/11220 CVS commit: pkgsrc/mk/platform
Date: Sun, 10 Aug 2008 17:40:01 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Sun Aug 10 17:40:00 UTC 2008
Modified Files:
pkgsrc/mk/platform: NetBSD.mk
Log Message:
Use patch --suffix instead of -b, the latter will be problematic when
PR 11220 gets addressed.
To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 pkgsrc/mk/platform/NetBSD.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/11220 CVS commit: [pkgsrc-2008Q2] pkgsrc/mk/platform
Date: Sat, 30 Aug 2008 10:40:00 +0000 (UTC)
Module Name: pkgsrc
Committed By: tron
Date: Sat Aug 30 10:40:00 UTC 2008
Modified Files:
pkgsrc/mk/platform [pkgsrc-2008Q2]: NetBSD.mk
Log Message:
Pullup ticket #2509 - requested by joerg
mk/platform/NetBSD.mk: portability fix
Revisions pulled up:
- mk/platform/NetBSD.mk 1.31
---
Module Name: pkgsrc
Committed By: joerg
Date: Sun Aug 10 17:40:00 UTC 2008
Modified Files:
pkgsrc/mk/platform: NetBSD.mk
Log Message:
Use patch --suffix instead of -b, the latter will be problematic when
PR 11220 gets addressed.
To generate a diff of this commit:
cvs rdiff -r1.30 -r1.30.6.1 pkgsrc/mk/platform/NetBSD.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/11220 CVS commit: src/usr.bin/patch
Date: Fri, 19 Sep 2008 18:33:34 +0000 (UTC)
Module Name: src
Committed By: joerg
Date: Fri Sep 19 18:33:34 UTC 2008
Modified Files:
src/usr.bin/patch: Makefile backupfile.c backupfile.h common.h inp.c
inp.h patch.1 patch.c pch.c pch.h util.c util.h
Added Files:
src/usr.bin/patch: mkpath.c pathnames.h
Removed Files:
src/usr.bin/patch: EXTERN.h INTERN.h README patchlevel.h version.c
version.h
Log Message:
Update patch to the version used by DragonFly and derived from OpenBSD.
Major changes are:
- better detection of double applied patches
- rejects remain unified diffs for unified patches
- far less limitations, e.g. patch lines may be arbitrary long
This addresses PR standards/11220 by changing patch -b behavior to be
POSIX compliant. Old behavior can be obtained using --suffix, which
works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
To generate a diff of this commit:
cvs rdiff -r1.4 -r0 src/usr.bin/patch/EXTERN.h src/usr.bin/patch/INTERN.h \
src/usr.bin/patch/patchlevel.h
cvs rdiff -r1.8 -r1.9 src/usr.bin/patch/Makefile
cvs rdiff -r1.3 -r0 src/usr.bin/patch/README
cvs rdiff -r1.13 -r1.14 src/usr.bin/patch/backupfile.c
cvs rdiff -r1.5 -r1.6 src/usr.bin/patch/backupfile.h
cvs rdiff -r1.18 -r1.19 src/usr.bin/patch/common.h src/usr.bin/patch/inp.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/patch/inp.h src/usr.bin/patch/pch.h
cvs rdiff -r0 -r1.1 src/usr.bin/patch/mkpath.c src/usr.bin/patch/pathnames.h
cvs rdiff -r1.12 -r1.13 src/usr.bin/patch/patch.1
cvs rdiff -r1.26 -r1.27 src/usr.bin/patch/patch.c
cvs rdiff -r1.22 -r1.23 src/usr.bin/patch/pch.c
cvs rdiff -r1.23 -r1.24 src/usr.bin/patch/util.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/patch/util.h
cvs rdiff -r1.6 -r0 src/usr.bin/patch/version.c src/usr.bin/patch/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Fri, 19 Sep 2008 18:40:55 +0000
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.