Merge ~liushuyu-011/ubuntu/+source/pike8.0:ubuntu/devel into ubuntu/+source/pike8.0:ubuntu/devel

Proposed by Zixing Liu
Status: Merged
Merged at revision: 4c9f03174903026bb88f0a8f828a79ca27d51fe5
Proposed branch: ~liushuyu-011/ubuntu/+source/pike8.0:ubuntu/devel
Merge into: ubuntu/+source/pike8.0:ubuntu/devel
Diff against target: 72 lines (+44/-0)
4 files modified
debian/changelog (+8/-0)
debian/patches/gz_test_fix.patch (+18/-0)
debian/patches/series (+2/-0)
debian/patches/threads_undefined_var_fix.patch (+16/-0)
Reviewer Review Type Date Requested Status
Vladimir Petko (community) Approve
Review via email: mp+464142@code.launchpad.net

Description of the change

This MP fixes the FTBFS issue on armhf caused by an improper libz detection logic that make pike8.0 fallback to a broken vendored zlib source.

To post a comment you must log in.
Revision history for this message
Zixing Liu (liushuyu-011) wrote (last edit ):
Revision history for this message
Vladimir Petko (vpa1977) wrote :

Uploaded, thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 870e689..f81b809 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+pike8.0 (8.0.1738-1.3ubuntu1) noble; urgency=medium
7+
8+ * debian/patches/gz_test_fix.patch: Fix zlib detection logic.
9+ * debian/patches/threads_undefined_var_fix.patch: Fix incorrect
10+ variable referencing in threads.c. Closes LP: #2061023.
11+
12+ -- Zixing Liu <zixing.liu@canonical.com> Thu, 11 Apr 2024 14:33:12 -0600
13+
14 pike8.0 (8.0.1738-1.3build1) noble; urgency=medium
15
16 * No-change rebuild for CVE-2024-3094
17diff --git a/debian/patches/gz_test_fix.patch b/debian/patches/gz_test_fix.patch
18new file mode 100644
19index 0000000..4d8ce42
20--- /dev/null
21+++ b/debian/patches/gz_test_fix.patch
22@@ -0,0 +1,18 @@
23+Description: Fix zlib detection logic
24+ Fixes the issue where vendored zlib fails to compile on armhf
25+Author: Zixing Liu <zixing.liu@canonical.com>
26+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066378
27+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/pike8.0/+bug/2061023
28+Forwarded: no
29+Last-Update: 2024-04-11
30+--- pike8.0-8.0.1738.orig/src/modules/Gz/gz_test.c
31++++ pike8.0-8.0.1738/src/modules/Gz/gz_test.c
32+@@ -320,6 +320,8 @@ void test_sync(compr, comprLen, uncompr,
33+ err = inflateSync(&d_stream); /* but skip the damaged part */
34+ CHECK_ERR(err, "inflateSync");
35+
36++ inflateEnd(&d_stream);
37++ inflateInit(&d_stream);
38+ err = inflate(&d_stream, Z_FINISH);
39+ if (err != Z_DATA_ERROR) {
40+ fprintf(stderr, "inflate should report DATA_ERROR\n");
41diff --git a/debian/patches/series b/debian/patches/series
42index 178507c..02e2fec 100644
43--- a/debian/patches/series
44+++ b/debian/patches/series
45@@ -13,3 +13,5 @@ no_nostartfiles.patch
46 undefined_htons.patch
47 bad_size_t_redef.patch
48 dont_disable_debug_symbols.patch
49+gz_test_fix.patch
50+threads_undefined_var_fix.patch
51diff --git a/debian/patches/threads_undefined_var_fix.patch b/debian/patches/threads_undefined_var_fix.patch
52new file mode 100644
53index 0000000..605db25
54--- /dev/null
55+++ b/debian/patches/threads_undefined_var_fix.patch
56@@ -0,0 +1,16 @@
57+Description: Fix incorrect variable referencing in threads.c
58+Author: Zixing Liu <zixing.liu@canonical.com>
59+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pike8.0/+bug/2061023
60+Forwarded: no
61+Last-Update: 2024-04-11
62+--- pike8.0-8.0.1738.orig/src/threads.c
63++++ pike8.0-8.0.1738/src/threads.c
64+@@ -3422,7 +3422,7 @@ static TH_RETURN_TYPE farm(void *_a)
65+ int current = prctl(PR_GET_DUMPABLE);
66+ #endif
67+ #ifdef HAVE_BROKEN_LINUX_THREAD_EUID
68+- if( setegid(arg.egid) != 0 || seteuid(arg.euid) != 0 )
69++ if( setegid(me->egid) != 0 || seteuid(me->euid) != 0 )
70+ {
71+ fprintf (stderr, "%s:%d: Unexpected error from setegid(2). errno=%d\n",
72+ __FILE__, __LINE__, errno);

Subscribers

People subscribed via source and target branches