Bug in /usr/bin/patch

pavelsh <[email protected]>
Newsgroups gmane.os.freebsd.bugbusters
Message-ID <[email protected]>
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:[email protected]
fwlogwatch81.tar.gz (application/x-gzip, 2.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.