Subject: [alpine-aports] [PATCH] main/patch: avoid using broken code in cross build

From: Mobile Stream <[email-masked]>
Date: Fri, 10 Aug 2018 16:46:36 +0300

Exactly the same rpl_gmtime problem as in main/tar. See the explanation and commit message in the corresponding e-mail message.

---
 main/patch/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD
index 54993e4656..fabfc95e35 100644
--- a/main/patch/APKBUILD
+++ b/main/patch/APKBUILD
@@ -25,6 +25,8 @@ builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
        cd "$builddir"
+       gl_cv_func_gettimeofday_clobber=no \
+       gl_cv_func_tzset_clobber=no \
        ./configure \
                --build=$CBUILD \
                --host=$CHOST \
-- 
2.18.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Natanael Copa <[email-masked]>
Date: Mon, 3 Sep 2018 19:34:45 +0200

The patch failed for me:

Applying: main/patch: avoid using broken code in cross build
error: patch failed: main/patch/APKBUILD:25
error: main/patch/APKBUILD: patch does not apply
Patch failed at 0001 main/patch: avoid using broken code in cross build

I fixing it manually. Thanks!

-nc

On Fri, 10 Aug 2018 16:46:36 +0300

---