#970659 nspr: FTBFS on hurd-i386

#970659#5
Date:
2020-09-20 21:21:41 UTC
From:
To:
Hello,

Currently libdrm FTBFS GNU/Hurd due to a parenthesis bug in ptsync.c.
Attached is a patch to fix this: nspr_pr_src_pthreads_ptsynch.c.diff.

Furthermore for the tests to succeed on GNU/Hurd the following patch:
debian_rules.diff, is needed, since GNU/Hurd does fully implement semaphores.

This package has built properly before, the latest built package is: 4.12-2

Thanks!

#970659#18
Date:
2022-10-22 12:27:06 UTC
From:
To:
found 970659 2:4.35-1
found 970673 2:4.35-1
thanks

Hello again,
(bug reports first filed on 20+21 september 2020 against 4.28-1)

nspr still FTBFS on GNU/Hurd due to a one-line error in the file
nspr/pr/src/pthreads/ptsynch.c, see #970659. Additionally tests in runtest.sh
are not run due to a bug in debian/rules, see #970673.

The first problem is solved by adding a condition on __GNU__ in the ptsynch.c
file. Secondly, the missing tests are run by replacing sh - with sh -s in
debian/rules for all tests.

Note that tests for gethost\|getproto\|nblayer\|socket\|vercheck are already
commented out in runtests.sh and not needed. Additionally sema tests needs to be
excluded for GNU/Hurd.

The patches debian/rules.patch and nspr_pr_src_pthreads_ptsynch.c.diff, somewhat
modified with respect to earlier patches, are attached for convenience.

Built and tests run successfully on both GNH/Hurd i386 and GNU/Linux amd64.

Thanks!

#970659#25
Date:
2022-10-22 15:04:06 UTC
From:
To:
Hi,

The attached patch for the build problem on GNU/Hurd (same as the one from 2020)
was submitted upstream. Upstream bug number:
https://bugzilla.mozilla.org/show_bug.cgi?id=1796917

Thanks!