<div dir="auto">Hi Marvin,<div dir="auto"><br></div><div dir="auto">Late response to the thread -- this is a subproject of GnuPG [1]. They have a bug tracker [2], you could submit a ticket and attach the patch to the report.</div><div dir="auto"><br></div><div dir="auto">[1] <a href="https://gnupg.org/software/libgpg-error/index.html">https://gnupg.org/software/libgpg-error/index.html</a></div><div dir="auto"><br></div><div dir="auto">[2] <a href="https://dev.gnupg.org/">https://dev.gnupg.org/</a><br><br><div data-smartmail="gmail_signature" dir="auto">Sean McGovern</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu., Mar. 26, 2020, 04:23 Marvin Scholz, <<a href="mailto:epirat07@gmail.com">epirat07@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am not sure how upstream development process works, so<br>
no idea where to submit this for upstream.<br>
<br>
(Or even where to find a Git repo for upstream…)<br>
<br>
On 21 Mar 2020, at 18:44, Alexandre Janniaux wrote:<br>
<br>
> Hi,<br>
><br>
> LGTM, it's much nicer indeed. Can this be upstreamed?<br>
><br>
> Regards,<br>
> --<br>
> Alexandre Janniaux<br>
> Videolabs<br>
><br>
> On Wed, Mar 18, 2020 at 04:52:29PM +0100, Marvin Scholz wrote:<br>
>> Instead of copying the header files around, change the triplet<br>
>> canonicalization function to correctly remove version numbers for<br>
>> darwin triplets.<br>
>> ---<br>
>> contrib/src/gpg-error/darwin-triplet.patch | 25 <br>
>> ++++++++++++++++++++++<br>
>> contrib/src/gpg-error/rules.mak | 24 <br>
>> +--------------------<br>
>> 2 files changed, 26 insertions(+), 23 deletions(-)<br>
>> create mode 100644 contrib/src/gpg-error/darwin-triplet.patch<br>
>><br>
>> diff --git a/contrib/src/gpg-error/darwin-triplet.patch <br>
>> b/contrib/src/gpg-error/darwin-triplet.patch<br>
>> new file mode 100644<br>
>> index 0000000000..dd0fef95de<br>
>> --- /dev/null<br>
>> +++ b/contrib/src/gpg-error/darwin-triplet.patch<br>
>> @@ -0,0 +1,25 @@<br>
>> +--- libgpg-error-1.27_orig/src/mkheader.c 2017-02-28 <br>
>> 13:32:33.000000000 +0100<br>
>> ++++ libgpg-error-1.27/src/mkheader.c 2020-01-23 11:36:50.000000000 <br>
>> +0100<br>
>> +@@ -107,7 +107,21 @@<br>
>> + return xstrdup (lastalias);<br>
>> + }<br>
>> + }<br>
>> +- return xstrdup (triplet);<br>
>> ++ /* Darwin triplet de-versioning */<br>
>> ++ char *res_triplet = xstrdup (triplet);<br>
>> ++<br>
>> ++ char *triplet_last = strrchr(res_triplet, '-');<br>
>> ++ if (triplet_last == NULL) {<br>
>> ++ fprintf (stderr, PGM ": unexpected host triplet missing any <br>
>> separator: '%s'",<br>
>> ++ res_triplet);<br>
>> ++ exit (1);<br>
>> ++ }<br>
>> ++ triplet_last++; /* Advance past the dash */<br>
>> ++ if (strncmp("darwin", triplet_last, 6) == 0) {<br>
>> ++ triplet_last[6] = '\0';<br>
>> ++ }<br>
>> ++<br>
>> ++ return res_triplet;<br>
>> + }<br>
>> +<br>
>> +<br>
>> diff --git a/contrib/src/gpg-error/rules.mak <br>
>> b/contrib/src/gpg-error/rules.mak<br>
>> index e045c8ea48..a22c778632 100644<br>
>> --- a/contrib/src/gpg-error/rules.mak<br>
>> +++ b/contrib/src/gpg-error/rules.mak<br>
>> @@ -24,6 +24,7 @@ endif<br>
>> $(APPLY) $(SRC)/gpg-error/win32-unicode.patch<br>
>> $(APPLY) $(SRC)/gpg-error/version-bump-gawk-5.patch<br>
>> $(APPLY) $(SRC)/gpg-error/win32-extern-struct.patch<br>
>> + $(APPLY) $(SRC)/gpg-error/darwin-triplet.patch<br>
>> $(MOVE)<br>
>> ifdef HAVE_ANDROID<br>
>> ifeq ($(ARCH),aarch64)<br>
>> @@ -33,29 +34,6 @@ else<br>
>> cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h <br>
>> $@/src/syscfg/lock-obj-pub.linux-android.h<br>
>> endif<br>
>> endif<br>
>> -ifdef HAVE_DARWIN_OS<br>
>> -ifdef HAVE_ARMV7A<br>
>> -ifneq ($(HOST),arm-apple-darwin)<br>
>> - cp $@/src/syscfg/lock-obj-pub.arm-apple-darwin.h <br>
>> $@/src/syscfg/lock-obj-pub.$(HOST).h<br>
>> -endif<br>
>> -else<br>
>> -ifeq ($(ARCH),aarch64)<br>
>> -ifneq ($(HOST),aarch64-apple-darwin)<br>
>> - cp $@/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h <br>
>> $@/src/syscfg/lock-obj-pub.$(HOST).h<br>
>> -endif<br>
>> -else<br>
>> -ifeq ($(ARCH),x86_64)<br>
>> -ifneq ($(HOST),x86_64-apple-darwin)<br>
>> - cp $@/src/syscfg/lock-obj-pub.x86_64-apple-darwin.h <br>
>> $@/src/syscfg/lock-obj-pub.$(HOST).h<br>
>> -endif<br>
>> -else<br>
>> -ifneq ($(HOST),i386-apple-darwin)<br>
>> - cp $@/src/syscfg/lock-obj-pub.x86_64-apple-darwin.h <br>
>> $@/src/syscfg/lock-obj-pub.$(HOST).h<br>
>> -endif<br>
>> -endif<br>
>> -endif<br>
>> -endif<br>
>> -endif<br>
>> ifdef HAVE_NACL<br>
>> ifeq ($(ARCH),i386) # 32bits intel<br>
>> cp $@/src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h <br>
>> $@/src/syscfg/lock-obj-pub.nacl.h<br>
>> --<br>
>> 2.21.1 (Apple Git-122.3)<br>
>><br>
>> _______________________________________________<br>
>> vlc-devel mailing list<br>
>> To unsubscribe or modify your subscription options:<br>
>> <a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
> _______________________________________________<br>
> vlc-devel mailing list<br>
> To unsubscribe or modify your subscription options:<br>
> <a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></blockquote></div>