Date: Thu, 23 May 2002 16:51:07 +0600 From: pavelsh <pavelsh@karavan.chel.com.ru> To: freebsd-bugbusters@FreeBSD.org Subject: Bug in /usr/bin/patch Message-ID: <19121890256.20020523165107@karavan.chel.com.ru>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi
I created a own port of basis port /usr/local/security/fwlogwatch, and
put in dir /usr/local/security/fwlogwatch81
Generate file patch-aa by command "# diff -u Makefile.orig Makefile",
where Makefile was edited by me.
Then:
# make patch - all ok
But i see in file /usr/local/security/fwlogwatch81/work/fwlogwatch-0.8.1/Makefile
in string 42 - "${INSTALL_DIR}/usr/local/etc".
But fragment of patch-aa (my port in attach)
-CONF_DIR = /etc
-LOCALE_DIR = /usr
+CONF_DIR = ${INSTALL_DIR}/etc
+LOCALE_DIR = ${INSTALL_DIR}
If "# make -DDEBUG_PATCH patch" /usr/bin/patch print "all hunk ok"!
Bug in /usr/bin/patch?
When I was simple modelling situation in home dir by command line
# patch -p0 < patch-aa
That I have right results!!!!!
Example:
Fragment of patch-aa (my port in attach)
-CONF_DIR = /etc
-LOCALE_DIR = /usr
+CONF_DIR = ${INSTALL_DIR}/etc
+LOCALE_DIR = ${INSTALL_DIR}
In original Makefile string 42 - "CONF_DIR = /etc"
In patched from /usr/ports/.../fwlogwatch81 by command "#make patch"
string 42 - "${INSTALL_DIR}/usr/local/etc"
In patched from local dir by command "# patch -p0 < patch-aa" string
42 "CONF_DIR = ${INSTALL_DIR}/etc"
System: FreeBSD 4.3R, Pentium 166MMX
last ports upgrade: 10 May 2002
P.S. Sorry for bad English!
--
with best regards
pavelsh mailto:pavelsh@karavan.chel.com.ru
[-- Attachment #2 --]
U^<