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
diff --git a/debian/changelog b/debian/changelog
index 870e689..f81b809 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1pike8.0 (8.0.1738-1.3ubuntu1) noble; urgency=medium
2
3 * debian/patches/gz_test_fix.patch: Fix zlib detection logic.
4 * debian/patches/threads_undefined_var_fix.patch: Fix incorrect
5 variable referencing in threads.c. Closes LP: #2061023.
6
7 -- Zixing Liu <zixing.liu@canonical.com> Thu, 11 Apr 2024 14:33:12 -0600
8
1pike8.0 (8.0.1738-1.3build1) noble; urgency=medium9pike8.0 (8.0.1738-1.3build1) noble; urgency=medium
210
3 * No-change rebuild for CVE-2024-309411 * No-change rebuild for CVE-2024-3094
diff --git a/debian/patches/gz_test_fix.patch b/debian/patches/gz_test_fix.patch
4new file mode 10064412new file mode 100644
index 0000000..4d8ce42
--- /dev/null
+++ b/debian/patches/gz_test_fix.patch
@@ -0,0 +1,18 @@
1Description: Fix zlib detection logic
2 Fixes the issue where vendored zlib fails to compile on armhf
3Author: Zixing Liu <zixing.liu@canonical.com>
4Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066378
5Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/pike8.0/+bug/2061023
6Forwarded: no
7Last-Update: 2024-04-11
8--- pike8.0-8.0.1738.orig/src/modules/Gz/gz_test.c
9+++ pike8.0-8.0.1738/src/modules/Gz/gz_test.c
10@@ -320,6 +320,8 @@ void test_sync(compr, comprLen, uncompr,
11 err = inflateSync(&d_stream); /* but skip the damaged part */
12 CHECK_ERR(err, "inflateSync");
13
14+ inflateEnd(&d_stream);
15+ inflateInit(&d_stream);
16 err = inflate(&d_stream, Z_FINISH);
17 if (err != Z_DATA_ERROR) {
18 fprintf(stderr, "inflate should report DATA_ERROR\n");
diff --git a/debian/patches/series b/debian/patches/series
index 178507c..02e2fec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,5 @@ no_nostartfiles.patch
13undefined_htons.patch13undefined_htons.patch
14bad_size_t_redef.patch14bad_size_t_redef.patch
15dont_disable_debug_symbols.patch15dont_disable_debug_symbols.patch
16gz_test_fix.patch
17threads_undefined_var_fix.patch
diff --git a/debian/patches/threads_undefined_var_fix.patch b/debian/patches/threads_undefined_var_fix.patch
16new file mode 10064418new file mode 100644
index 0000000..605db25
--- /dev/null
+++ b/debian/patches/threads_undefined_var_fix.patch
@@ -0,0 +1,16 @@
1Description: Fix incorrect variable referencing in threads.c
2Author: Zixing Liu <zixing.liu@canonical.com>
3Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pike8.0/+bug/2061023
4Forwarded: no
5Last-Update: 2024-04-11
6--- pike8.0-8.0.1738.orig/src/threads.c
7+++ pike8.0-8.0.1738/src/threads.c
8@@ -3422,7 +3422,7 @@ static TH_RETURN_TYPE farm(void *_a)
9 int current = prctl(PR_GET_DUMPABLE);
10 #endif
11 #ifdef HAVE_BROKEN_LINUX_THREAD_EUID
12- if( setegid(arg.egid) != 0 || seteuid(arg.euid) != 0 )
13+ if( setegid(me->egid) != 0 || seteuid(me->euid) != 0 )
14 {
15 fprintf (stderr, "%s:%d: Unexpected error from setegid(2). errno=%d\n",
16 __FILE__, __LINE__, errno);

Subscribers

People subscribed via source and target branches