pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
BATCH variable in pbulk (Re: (devel/magit) to be imported
inside pbulk, we have the value BATCH assigned.
mef20@makoto 07:20:13/250110(..usr/pkg_bulk)% grep -rn3 BATCH .
./libexec/pbulk/pkg-build-68- run_cmd=$1
./libexec/pbulk/pkg-build-69- shift
./libexec/pbulk/pkg-build-70- ${run_cmd} ${make} "$@" \
./libexec/pbulk/pkg-build:71: BATCH=1 \
./libexec/pbulk/pkg-build-72- DEPENDS_TARGET=/nonexistent \
./libexec/pbulk/pkg-build-73- ${MAKE_FLAGS} \
./libexec/pbulk/pkg-build-74- WRKLOG=${bulklog}/${pkgname}/work.log
-
in pkgsrc side, if BATCH is referenced, the value 1 is kept
because of above.
That's why wip/magit-git fails for line 121 below fails
(following is changed so that name is BATCH2 to avoid collision
---------------
thinkc11@makoto 07:24:45/250110(..wip/magit-git)% grep -2n BATCH2 /tmp/wip/magit-git/work/magit-4.1.3/default.mk
30- (put 'if-let 'byte-obsolete-info nil) \
31- (put 'when-let 'byte-obsolete-info nil))"
32:BATCH2 = $(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH)
33-
34-LISP_EXTRA_TARGETS ?= check-declare
--
119-EMACS_VERSION = 26.1
120-
121:EMACSOLD := $(shell $(BATCH2) --eval \
122- "(and (version< emacs-version \"$(EMACS_VERSION)\") (princ \"true\"))")
123-ifeq "$(EMACSOLD)" "true"
---------------
Thanks wiz@ and Atsushi Toyokura for debugging.
--
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost
Home |
Main Index |
Thread Index |
Old Index