• Bug#1106399: libmawk: FTBFS when built in parallel

    From Santiago Vila@21:1/5 to All on Sat May 24 14:10:01 2025
    This is a multi-part message in MIME format.
    Package: src:libmawk
    Version: 1.0.4-3
    Severity: serious
    Tags: ftbfs trixie sid patch

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    cd zfifo && make
    make[5]: Entering directory '/<<PKGBUILDDIR>>/src/libmawk/regression/zfifo'
    cp ../../zfifo.c .
    cp ../../zfifo.c .
    cp ../../zfifo.h .
    cp ../../zfifo.h .
    cp: cannot create regular file './zfifo.h': File exists
    make[5]: *** [Makefile:11: zfifo.c] Error 1
    make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk/regression/zfifo' make[4]: *** [Makefile:55: zfifo/zfifo_test] Error 2
    make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk/regression'
    make[3]: *** [Makefile:118: test] Error 2
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk'
    make[2]: *** [Makefile:7: test] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
    make[1]: *** [Makefile:22: test] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test: error: make -j2 test "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1 returned exit code 2
    make: *** [debian/rules:9: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


    Looks like a race condition where one make thread tries to create zfifo.c and another
    make thread tries to create zfifo.h at the same time.

    I'm not sure about the "file exists" error. Maybe it happens because the file zfifo.h is still
    open by the first thread when the other tries to copy the same file.

    I agree this is odd, because the package has not changed in a long time,
    but I'm currently doing archive rebuilds with Intel machines (a little bit faster)
    and I was able to reproduce this several times in a row (I can offer a VM to test
    if you need it).

    To fix this, I propose just splitting the target in two, one for zfifo.c and one for zfifo.h,
    as in the attached patch.

    Thanks. LS0tIGEvc3JjL2xpYm1hd2svcmVncmVzc2lvbi96Zmlmby9NYWtlZmlsZQorKysgYi9zcmMv bGlibWF3ay9yZWdyZXNzaW9uL3pmaWZvL01ha2VmaWxlCkBAIC03LDggKzcsMTAgQEAgYWxs OiB6Zmlmb190ZXN0CiB6Zmlmb190ZXN0OiAkKE9CSlMpCiAJJChDQykgJChPQkpTKSAtbyAk QAogCi16Zmlmby5jIHpmaWZvLmg6IC4uLy4uL3pmaWZvLmMgLi4vLi4vemZpZm8uaAoremZp Zm8uYzogLi4vLi4vemZpZm8uYwogCWNwIC4uLy4uL3pmaWZvLmMgLgorCit6Zmlmby5oOiAu Li8uLi96Zmlmby5oCiAJY3AgLi4vLi4vemZpZm8uaCAuCiAKIHpmaWZvLm86IHpmaWZvLmMg emZpZm8uaAo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Jun 2 20:40:01 2025
    This is a multi-part message in MIME format...

    Your message dated Mon, 02 Jun 2025 18:34:04 +0000
    with message-id <E1uM9z2-009v82-Hu@fasolo.debian.org>
    and subject line Bug#1106399: fixed in libmawk 1.0.4-4
    has caused the Debian Bug report #1106399,
    regarding libmawk: FTBFS when built in parallel
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1106399: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106399
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 24 May 2025 11:59:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-119.4 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 24; hammy, 150; neutral, 61; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <sanvila@debian.org>
    Received: fro