Source: tmux
Version: 3.0~rc5-1
Severity: important

Hi,

tmux/experimental cannot be built twice in a row. (I haven't tested the
version from sid, it may have the same problems.)
The first build succeeds, but the subsequent distclean removes
cmd-parse.c which cannot be regenerated due to yacc (bison) not being
available.

[... first build succeeds...]
[...]
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
        make -j3 distclean
make[1]: Entering directory '/build/tmux-3.0~rc5'
test -z "tmux" || rm -f tmux
test -z "tmux.1.mdoc tmux.1.man cmd-parse.c" || rm -f tmux.1.mdoc tmux.1.man 
cmd-parse.c
[...]
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building tmux using existing ./tmux_3.0~rc5.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: warning: ignoring deletion of file cmd-parse.c, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file Makefile.in, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file aclocal.m4, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file configure, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file etc/ylwrap, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file etc/missing, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file etc/install-sh, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file etc/depcomp, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file etc/compile, use 
--include-removal to override
dpkg-source: info: building tmux in tmux_3.0~rc5-1.debian.tar.xz
dpkg-source: info: building tmux in tmux_3.0~rc5-1.dsc
 debian/rules build
[...]
/bin/bash ./etc/ylwrap cmd-parse.y y.tab.c cmd-parse.c y.tab.h `echo 
cmd-parse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e 
s/c$/h/` y.output cmd-parse.output -- yacc  
gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" 
-DPACKAGE_VERSION=\"3.0-rc5\" -DPACKAGE_STRING=\"tmux\ 3.0-rc5\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" 
-DVERSION=\"3.0-rc5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 
-DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_PATHS_H=1 
-DHAVE_PTY_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_DIRFD=1 
-DHAVE_FLOCK=1 -DHAVE_PRCTL=1 -DHAVE_SYSCONF=1 -DHAVE_ASPRINTF=1 
-DHAVE_CFMAKERAW=1 -DHAVE_EXPLICIT_BZERO=1 -DHAVE_MEMMEM=1 
-DHAVE_REALLOCARRAY=1 -DHAVE_SETENV=1 -DHAVE_STRCASESTR=1 -DHAVE_STRNDUP=1 
-DHAVE_STRSEP=1 -DHAVE_NCURSES_H=1 -DHAVE_UTEMPTER=1 -DHAVE_B64_NTOP=1 
-DHAVE_DAEMON=1 -DHAVE_FORKPTY=1 -DHAVE___PROGNAME=1 
-DHAVE_PROGRAM_INVOCATION_SHORT_NAME=1 -DHAVE
 _PR_SET_NAME=1 -DHAVE_PROC_PID=1 -I.  -DTMUX_CONF="\"/etc/tmux.conf\""  
-iquote.     -Wdate-time -D_FORTIFY_SOURCE=2 -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=600   -std=gnu99 -O2   -g -O2 
-fdebug-prefix-map=/build/tmux-3.0~rc5=. -fstack-protector-strong -Wformat 
-Werror=format-security -c -o cmd-paste-buffer.o cmd-paste-buffer.c
./etc/ylwrap: line 175: yacc: command not found
make[1]: *** [Makefile:967: cmd-parse.c] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/tmux-3.0~rc5'
dh_auto_build: make -j3 returned exit code 2
make: *** [debian/rules:7: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

That also indicates that the regular build uses the shipped version of the
generated file cmd-parse.c and does not create it on the fly.

Andreas

Attachment: tmux_3.0~rc5-1_twice.log.gz
Description: application/gzip

Reply via email to