Bug#1068341: bioawk: FTBFS randomly due to Makefile bug: cp: cannot create regular file 'ytab.c': File exists

2024-04-04 Thread Santiago Vila

Nilesh: Would it help if I do a "team upload" to fix this?
(Using the proposed patch)

Or would you prefer to fix it yourself?


Just go ahead with a fix. I don't have much time these days. Please also drop 
me from uploaders field for this package won't have time to maintain this.


Yes, I noticed, as there was already a commit in git about that.

I've made the commits in salsa and the upload.

Thanks a lot.



Bug#1068341: bioawk: FTBFS randomly due to Makefile bug: cp: cannot create regular file 'ytab.c': File exists

2024-04-04 Thread Nilesh Patra



On 4 April 2024 2:28:07 am IST, Santiago Vila  wrote:
>Hi. I've just realized that (as a member of Debian Med)
>I could fix this myself.
>
>Nilesh: Would it help if I do a "team upload" to fix this?
>(Using the proposed patch)
>
>Or would you prefer to fix it yourself?

Just go ahead with a fix. I don't have much time these days. Please also drop 
me from uploaders field for this package won't have time to maintain this.

>Thanks.

Thank you very much for helping out!



Bug#1068341: bioawk: FTBFS randomly due to Makefile bug: cp: cannot create regular file 'ytab.c': File exists

2024-04-04 Thread Andreas Tille
Hi Santiago,

Am Wed, Apr 03, 2024 at 10:58:07PM +0200 schrieb Santiago Vila:
> Hi. I've just realized that (as a member of Debian Med)
> I could fix this myself.
> 
> Nilesh: Would it help if I do a "team upload" to fix this?
> (Using the proposed patch)
> 
> Or would you prefer to fix it yourself?

I'm not Nilesh but its usual practice in our team that team uploads are
fine since those who usually care for a package can concentrate on other
things.

>From my point of view just go for it ... and BTW, thanks for all your
QA work
Andreas.

-- 
https://fam-tille.de



Bug#1068341: bioawk: FTBFS randomly due to Makefile bug: cp: cannot create regular file 'ytab.c': File exists

2024-04-03 Thread Santiago Vila

Hi. I've just realized that (as a member of Debian Med)
I could fix this myself.

Nilesh: Would it help if I do a "team upload" to fix this?
(Using the proposed patch)

Or would you prefer to fix it yourself?

Thanks.



Bug#1068341: bioawk: FTBFS randomly due to Makefile bug: cp: cannot create regular file 'ytab.c': File exists

2024-04-03 Thread Santiago Vila

Package: src:bioawk
Version: 1.0-4
Severity: important
Tags: ftbfs patch

Dear maintainer:

This package fails to build from source in a random fashion
due to what it seems to be a Makefile bug:

This is from my own autobuilder:

make[1]: Entering directory '/<>'
bison -y -d awkgram.y
bison -y -d awkgram.y
awkgram.y: warning: 43 shift/reduce conflicts [-Wconflicts-sr]
awkgram.y: warning: 85 reduce/reduce conflicts [-Wconflicts-rr]
awkgram.y: note: rerun with option '-Wcounterexamples' to generate conflict 
counterexamples
awkgram.y: warning: 43 shift/reduce conflicts [-Wconflicts-sr]
awkgram.y: warning: 85 reduce/reduce conflicts [-Wconflicts-rr]
awkgram.y: note: rerun with option '-Wcounterexamples' to generate conflict 
counterexamples
cp y.tab.c ytab.c
cp y.tab.c ytab.c
cp: cannot create regular file 'ytab.c': File exists
make[1]: *** [Makefile:49: ytab.h] Error 1
make[1]: *** Waiting for unfinished jobs
cp y.tab.h ytab.h
gcc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=for
mat-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c ytab.c
make[1]: Leaving directory '/<>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned 
exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


This has also happened on the buildds several times:

https://buildd.debian.org/status/fetch.php?pkg=bioawk=sparc64=1.0-2=1614438070=0
https://buildd.debian.org/status/fetch.php?pkg=bioawk=riscv64=1.0-2=1614441112=0
https://buildd.debian.org/status/fetch.php?pkg=bioawk=armhf=1.0-3=1614527051=0


I believe the error happens when the same target is being executed twice at the 
same time.

Given that the package is very small and it builds in a few seconds, I suggest
disabling parallel build as a simple and effective way to fix the problem.

Patch attached.

Thanks.--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ DPKG_EXPORT_BUILDTOOLS = nonempty
 include /usr/share/dpkg/buildtools.mk
 
 %:
-   dh $@
+   dh $@ --no-parallel
 
 override_dh_auto_configure: