pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/bmake/files Fix a problem with MAKE_VERSION bein...
details: https://anonhg.NetBSD.org/pkgsrc/rev/441506b11e89
branches: trunk
changeset: 366554:441506b11e89
user: brook <brook%pkgsrc.org@localhost>
date: Tue Aug 15 15:54:06 2017 +0000
description:
Fix a problem with MAKE_VERSION being undefined on case-insentive filesystems.
On case-insensitive filesystems such as MacOS, two files (Makefile and makefile,
which is created by configure from makefile.in) collide. Only the former
defines MAKE_VERSION, but it is replaced by the latter. Consequently,
MAKE_VERSION is defined as an empty string on these systems. This patch is
the result of a discussion on tech-pkg (see the thread following
http://mail-index.netbsd.org/tech-pkg/2017/08/13/msg018629.html) and is
based upon code incorporated into bmake v20170812.
diffstat:
devel/bmake/files/FILES | 1 +
devel/bmake/files/Makefile | 7 +++----
devel/bmake/files/Makefile.config.in | 2 ++
devel/bmake/files/VERSION | 2 ++
devel/bmake/files/bsd.after-import.mk | 3 ++-
devel/bmake/files/configure | 3 +++
devel/bmake/files/configure.in | 6 +++++-
devel/bmake/files/make-bootstrap.sh.in | 2 +-
8 files changed, 19 insertions(+), 7 deletions(-)
diffs (127 lines):
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/FILES
--- a/devel/bmake/files/FILES Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/FILES Tue Aug 15 15:54:06 2017 +0000
@@ -5,6 +5,7 @@
PSD.doc/Makefile
PSD.doc/tutorial.ms
README
+VERSION
aclocal.m4
arch.c
bmake.1
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/Makefile
--- a/devel/bmake/files/Makefile Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/Makefile Tue Aug 15 15:54:06 2017 +0000
@@ -1,7 +1,4 @@
-# $Id: Makefile,v 1.2 2015/05/19 22:01:19 joerg Exp $
-
-# Base version on src date
-MAKE_VERSION= 20150505
+# $Id: Makefile,v 1.3 2017/08/15 15:54:06 brook Exp $
PROG= bmake
@@ -57,6 +54,8 @@
lstReplace.c \
lstSucc.c
+.-include "VERSION"
+
# this file gets generated by configure
.-include "Makefile.config"
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/Makefile.config.in
--- a/devel/bmake/files/Makefile.config.in Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/Makefile.config.in Tue Aug 15 15:54:06 2017 +0000
@@ -1,5 +1,7 @@
# things set by configure
+_MAKE_VERSION=@_MAKE_VERSION@
+
prefix= @prefix@
srcdir= @srcdir@
CC?= @CC@
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/VERSION
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bmake/files/VERSION Tue Aug 15 15:54:06 2017 +0000
@@ -0,0 +1,2 @@
+# keep this compatible with sh and make
+_MAKE_VERSION=20150505
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/bsd.after-import.mk
--- a/devel/bmake/files/bsd.after-import.mk Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/bsd.after-import.mk Tue Aug 15 15:54:06 2017 +0000
@@ -1,4 +1,4 @@
-# $Id: bsd.after-import.mk,v 1.2 2015/05/19 22:01:19 joerg Exp $
+# $Id: bsd.after-import.mk,v 1.3 2017/08/15 15:54:06 brook Exp $
# This makefile is for use when integrating bmake into a BSD build
# system. Use this makefile after importing bmake.
@@ -56,6 +56,7 @@
# Makefiles need a little more tweaking than say config.h
MAKEFILE_SED = sed -e '/^MACHINE/d' \
+ -e '/include.*VERSION/d' \
-e '/^PROG/ { s,=,?=,;s,bmake,$${.CURDIR:T},; }' \
-e 's,^.-include,.sinclude,' \
-e '/^\..*include *</ { s,<,<bsd.,;/autoconf/d; }' \
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/configure
--- a/devel/bmake/files/configure Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/configure Tue Aug 15 15:54:06 2017 +0000
@@ -591,6 +591,7 @@
#endif"
ac_subst_vars='LTLIBOBJS
+_MAKE_VERSION
filemon_h
use_meta
diff_u
@@ -2263,6 +2264,8 @@
*) srcdir=`cd $srcdir && pwd`;;
esac
+. $srcdir/VERSION
+
# Check whether --with-defshell was given.
if test "${with_defshell+set}" = set; then :
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/configure.in
--- a/devel/bmake/files/configure.in Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/configure.in Tue Aug 15 15:54:06 2017 +0000
@@ -1,6 +1,6 @@
dnl
dnl RCSid:
-dnl $Id: configure.in,v 1.13 2015/05/19 22:01:19 joerg Exp $
+dnl $Id: configure.in,v 1.14 2017/08/15 15:54:06 brook Exp $
dnl
dnl Process this file with autoconf to produce a configure script
dnl
@@ -14,6 +14,9 @@
*) srcdir=`cd $srcdir && pwd`;;
esac
+dnl get _MAKE_VERSION
+. $srcdir/VERSION
+
dnl
AC_ARG_WITH(defshell,
[ --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions],
@@ -375,6 +378,7 @@
AC_SUBST(diff_u)
AC_SUBST(use_meta)
AC_SUBST(filemon_h)
+AC_SUBST(_MAKE_VERSION)
AC_OUTPUT(makefile Makefile.config make-bootstrap.sh unit-tests/Makefile)
cat <<EOF
diff -r 05cb68a6b8e1 -r 441506b11e89 devel/bmake/files/make-bootstrap.sh.in
--- a/devel/bmake/files/make-bootstrap.sh.in Tue Aug 15 14:23:59 2017 +0000
+++ b/devel/bmake/files/make-bootstrap.sh.in Tue Aug 15 15:54:06 2017 +0000
@@ -13,7 +13,7 @@
CC="@CC@"
CFLAGS="@CFLAGS@ -I. -I${srcdir} @DEFS@ @CPPFLAGS@ -DMAKE_NATIVE ${XDEFS} -DBMAKE_PATH_MAX=@bmake_path_max@"
-MAKE_VERSION=`sed -n '/^MAKE_VERSION=/s,.*=[^0-9]*,,p' $srcdir/Makefile`
+MAKE_VERSION=@_MAKE_VERSION@
MDEFS="-DMAKE_VERSION=\"$MAKE_VERSION\" \
-D@force_machine@MACHINE=\"@machine@\" -DPKGSRC_MACHINE_ARCH=\"@machine_arch@\" \
Home |
Main Index |
Thread Index |
Old Index