From 4134263474a7805745fb07ebb4522d141c2a2bb5 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Wed, 21 Feb 2024 12:40:50 +0100 Subject: [PATCH 1/9] Ports: Add `openjpeg` --- Ports/AvailablePorts.md | 1 + Ports/openjpeg/package.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 Ports/openjpeg/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 1a1a98ff783c21..38ebf6097caa75 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -234,6 +234,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`ObjFW`](ObjFW/) | ObjFW | 8d19ba9 | https://objfw.nil.im/ | | [`oksh`](oksh/) | oksh | 7.1 | https://github.com/ibara/oksh | | [`OpenJDK`](OpenJDK/) | OpenJDK | 17.0.6 | https://openjdk.java.net/ | +| [`openjpeg`](openjpeg/) | OpenJPEG | 2.5.2 | https://www.openjpeg.org/ | | [`openrct2`](openrct2/) | OpenRCT2 | 0.4.9 | https://openrct2.org/ | | [`openssh`](openssh/) | OpenSSH | 9.0-94eb685 | https://github.com/openssh/openssh-portable | | [`openssl`](openssl/) | OpenSSL | 3.1.2 | https://www.openssl.org/ | diff --git a/Ports/openjpeg/package.sh b/Ports/openjpeg/package.sh new file mode 100755 index 00000000000000..e207349770ccca --- /dev/null +++ b/Ports/openjpeg/package.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='openjpeg' +version='2.5.2' +useconfigure='true' +files=( + "https://github.com/uclouvain/openjpeg/archive/refs/tags/v${version}.tar.gz#90e3896fed910c376aaf79cdd98bdfdaf98c6472efd8e1debf0a854938cbda6a" +) +depends=( + 'lcms2' + 'libpng' + 'libtiff' + 'zlib' +) + +configopts=( + '-B build' + "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" + '-DCMAKE_BUILD_TYPE=release' +) + +configure() { + run cmake "${configopts[@]}" +} + +build() { + run make -C build "${makeopts[@]}" +} + +install() { + run make -C build install "${installopts[@]}" +} From 2a6c736f094f12d608468be50753ce948d87af6c Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Tue, 12 Mar 2024 12:46:01 +0100 Subject: [PATCH 2/9] Ports: Update `libassuan` to 2.5.7 --- Ports/AvailablePorts.md | 2 +- Ports/libassuan/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 38ebf6097caa75..038279979b053f 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -138,7 +138,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`lcms2`](lcms2/) | Small-footprint color management engine | 2.15 | https://github.com/mm2/Little-CMS | | [`less`](less/) | less | 643 | https://www.greenwoodsoftware.com/less/ | | [`libarchive`](libarchive/) | libarchive | 3.7.1 | https://libarchive.org/ | -| [`libassuan`](libassuan/) | libassuan | 2.5.6 | https://gnupg.org/software/libassuan/index.html | +| [`libassuan`](libassuan/) | libassuan | 2.5.7 | https://gnupg.org/software/libassuan/index.html | | [`libatomic_ops`](libatomic_ops/) | libatomic\_ops | 7.6.14 | https://www.hboehm.info/gc/ | | [`libenet`](libenet/) | libenet | 1.3.17 | http://sauerbraten.org/enet/ | | [`libexpat`](libexpat/) | Expat | 2.5.0 | https://libexpat.github.io/ | diff --git a/Ports/libassuan/package.sh b/Ports/libassuan/package.sh index b46f2b3ad190e3..7e3d895b2ad40b 100755 --- a/Ports/libassuan/package.sh +++ b/Ports/libassuan/package.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S bash ../.port_include.sh port='libassuan' -version='2.5.6' +version='2.5.7' useconfigure='true' use_fresh_config_sub='true' config_sub_paths=( @@ -10,7 +10,7 @@ depends=( 'libgpg-error' ) files=( - "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${version}.tar.bz2#e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f426" + "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${version}.tar.bz2#0103081ffc27838a2e50479153ca105e873d3d65d8a9593282e9c94c7e6afb76" ) pre_configure() { From bbbe669a637f8cef2916074ed97b0e58eba7dba3 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Wed, 21 Feb 2024 12:42:26 +0100 Subject: [PATCH 3/9] Ports: Update `libgcrypt` to 1.10.3 --- Ports/AvailablePorts.md | 2 +- Ports/libgcrypt/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 038279979b053f..b58e9f875a51b9 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -146,7 +146,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`libfftw3`](libfftw3/) | Fastest Fourier Transform in the West (double precision) | 3.3.10 | https://www.fftw.org/ | | [`libfftw3f`](libfftw3f/) | Fastest Fourier Transform in the West (single precision) | 3.3.10 | https://www.fftw.org/ | | [`libfts`](libfts/) | libfts | 1.2.7 | https://github.com/void-linux/musl-fts | -| [`libgcrypt`](libgcrypt/) | libgcrypt | 1.10.2 | https://gnupg.org/software/libgcrypt/index.html | +| [`libgcrypt`](libgcrypt/) | libgcrypt | 1.10.3 | https://gnupg.org/software/libgcrypt/index.html | | [`libgd`](libgd/) | libgd | 2.3.3 | https://libgd.github.io/ | | [`libgpg-error`](libgpg-error/) | libgpg-error | 1.47 | https://gnupg.org/software/libgpg-error/index.html | | [`libiconv`](libiconv/) | GNU libiconv | 1.17 | https://www.gnu.org/software/libiconv/ | diff --git a/Ports/libgcrypt/package.sh b/Ports/libgcrypt/package.sh index 4d132ca7b16505..9edfc5fea4ccf4 100755 --- a/Ports/libgcrypt/package.sh +++ b/Ports/libgcrypt/package.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S bash ../.port_include.sh port='libgcrypt' -version='1.10.2' +version='1.10.3' useconfigure='true' use_fresh_config_sub='true' config_sub_paths=( @@ -10,7 +10,7 @@ depends=( 'libgpg-error' ) files=( - "https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2#3b9c02a004b68c256add99701de00b383accccf37177e0d6c58289664cce0c03" + "https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2#8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa" ) pre_configure() { From 1f9693e8f85999ece13dc000dfeb2937af3bcef2 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Tue, 12 Mar 2024 12:46:45 +0100 Subject: [PATCH 4/9] Ports: Update `libgpg-error` to 1.48 --- Ports/AvailablePorts.md | 2 +- Ports/libgpg-error/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index b58e9f875a51b9..13da7371455acf 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -148,7 +148,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`libfts`](libfts/) | libfts | 1.2.7 | https://github.com/void-linux/musl-fts | | [`libgcrypt`](libgcrypt/) | libgcrypt | 1.10.3 | https://gnupg.org/software/libgcrypt/index.html | | [`libgd`](libgd/) | libgd | 2.3.3 | https://libgd.github.io/ | -| [`libgpg-error`](libgpg-error/) | libgpg-error | 1.47 | https://gnupg.org/software/libgpg-error/index.html | +| [`libgpg-error`](libgpg-error/) | libgpg-error | 1.48 | https://gnupg.org/software/libgpg-error/index.html | | [`libiconv`](libiconv/) | GNU libiconv | 1.17 | https://www.gnu.org/software/libiconv/ | | [`libicu`](libicu/) | ICU | 73.2 | http://site.icu-project.org/ | | [`libjodycode`](libjodycode/) | libjodycode | 3.1 | https://github.com/jbruchon/libjodycode | diff --git a/Ports/libgpg-error/package.sh b/Ports/libgpg-error/package.sh index e0940f91f3583e..338ca35cc966c0 100755 --- a/Ports/libgpg-error/package.sh +++ b/Ports/libgpg-error/package.sh @@ -1,8 +1,8 @@ #!/usr/bin/env -S bash ../.port_include.sh port='libgpg-error' -version='1.47' +version='1.48' files=( - "https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${version}.tar.bz2#9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb" + "https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${version}.tar.bz2#89ce1ae893e122924b858de84dc4f67aae29ffa610ebf668d5aa539045663d6f" ) useconfigure='true' use_fresh_config_sub='true' From 2dc8e82caafa3c9551282505096dd791bc996468 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Tue, 12 Mar 2024 12:47:15 +0100 Subject: [PATCH 5/9] Ports: Update `libksba` to 1.6.6 --- Ports/AvailablePorts.md | 2 +- Ports/libksba/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 13da7371455acf..7367dde2a0c5cf 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -154,7 +154,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`libjodycode`](libjodycode/) | libjodycode | 3.1 | https://github.com/jbruchon/libjodycode | | [`libjpeg`](libjpeg/) | libjpeg | 9e | https://ijg.org/ | | [`libjxl`](libjxl/) | libjxl | 2023.09.11 | https://github.com/libjxl/libjxl | -| [`libksba`](libksba/) | libksba | 1.6.4 | https://gnupg.org/software/libksba/index.html | +| [`libksba`](libksba/) | libksba | 1.6.6 | https://gnupg.org/software/libksba/index.html | | [`liblzf`](liblzf/) | LibLZF is a very small data compression library | 3.6 | http://software.schmorp.de/pkg/liblzf.html | | [`libmad`](libmad/) | libmad | 0.15.1b | https://www.underbit.com/products/mad/ | | [`libmikmod`](libmikmod/) | libmikmod | 3.3.11.1 | http://mikmod.sourceforge.net/ | diff --git a/Ports/libksba/package.sh b/Ports/libksba/package.sh index 8995f102000a0d..ac0bee0446a238 100755 --- a/Ports/libksba/package.sh +++ b/Ports/libksba/package.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S bash ../.port_include.sh port='libksba' -version='1.6.4' +version='1.6.6' useconfigure='true' use_fresh_config_sub='true' config_sub_paths=( @@ -10,7 +10,7 @@ depends=( 'libgpg-error' ) files=( - "https://gnupg.org/ftp/gcrypt/libksba/libksba-${version}.tar.bz2#bbb43f032b9164d86c781ffe42213a83bf4f2fee91455edfa4654521b8b03b6b" + "https://gnupg.org/ftp/gcrypt/libksba/libksba-${version}.tar.bz2#5dec033d211559338838c0c4957c73dfdc3ee86f73977d6279640c9cd08ce6a4" ) pre_configure() { From aca1c876c8c3ce0b84f6ee0427aba1a16a3ef1f5 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Tue, 12 Mar 2024 12:47:44 +0100 Subject: [PATCH 6/9] Ports: Update `npth` to 1.7 --- Ports/AvailablePorts.md | 2 +- Ports/npth/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 7367dde2a0c5cf..448d93fc60baee 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -228,7 +228,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`nlohmann-json`](nlohmann-json/) | JSON for Modern C++ | 3.11.2 | https://json.nlohmann.me/ | | [`nnn`](nnn/) | nnn file manager | 4.8 | https://github.com/jarun/nnn | | [`npiet`](npiet/) | Piet language interpreter | 1.3f | https://www.bertnase.de/npiet/ | -| [`npth`](npth/) | New GNU Portable Threads Library | 1.6 | https://gnupg.org/software/npth/index.html | +| [`npth`](npth/) | New GNU Portable Threads Library | 1.7 | https://gnupg.org/software/npth/index.html | | [`ntbtls`](ntbtls/) | The Not Too Bad TLS Library | 0.3.1 | https://gnupg.org/software/ntbtls/index.html | | [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat | | [`ObjFW`](ObjFW/) | ObjFW | 8d19ba9 | https://objfw.nil.im/ | diff --git a/Ports/npth/package.sh b/Ports/npth/package.sh index fd5919ce1b47d4..c86434b3bf960a 100755 --- a/Ports/npth/package.sh +++ b/Ports/npth/package.sh @@ -1,11 +1,11 @@ #!/usr/bin/env -S bash ../.port_include.sh port=npth -version=1.6 +version=1.7 useconfigure=true use_fresh_config_sub=true config_sub_paths=("build-aux/config.sub") files=( - "https://gnupg.org/ftp/gcrypt/npth/npth-${version}.tar.bz2#1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1" + "https://gnupg.org/ftp/gcrypt/npth/npth-${version}.tar.bz2#8589f56937b75ce33b28d312fccbf302b3b71ec3f3945fde6aaa74027914ad05" ) configure() { From 68a7478e682e7bfe8e3c7c462ab0761efcbbf5b8 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Wed, 21 Feb 2024 12:44:16 +0100 Subject: [PATCH 7/9] Ports: Update `ntbtls` to 0.3.2 --- Ports/AvailablePorts.md | 2 +- Ports/ntbtls/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 448d93fc60baee..93999b8eb878b9 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -229,7 +229,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`nnn`](nnn/) | nnn file manager | 4.8 | https://github.com/jarun/nnn | | [`npiet`](npiet/) | Piet language interpreter | 1.3f | https://www.bertnase.de/npiet/ | | [`npth`](npth/) | New GNU Portable Threads Library | 1.7 | https://gnupg.org/software/npth/index.html | -| [`ntbtls`](ntbtls/) | The Not Too Bad TLS Library | 0.3.1 | https://gnupg.org/software/ntbtls/index.html | +| [`ntbtls`](ntbtls/) | The Not Too Bad TLS Library | 0.3.2 | https://gnupg.org/software/ntbtls/index.html | | [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat | | [`ObjFW`](ObjFW/) | ObjFW | 8d19ba9 | https://objfw.nil.im/ | | [`oksh`](oksh/) | oksh | 7.1 | https://github.com/ibara/oksh | diff --git a/Ports/ntbtls/package.sh b/Ports/ntbtls/package.sh index d6c217a06d5154..8a6112c1398da4 100755 --- a/Ports/ntbtls/package.sh +++ b/Ports/ntbtls/package.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S bash ../.port_include.sh port='ntbtls' -version='0.3.1' +version='0.3.2' useconfigure='true' use_fresh_config_sub='true' config_sub_paths=( @@ -13,7 +13,7 @@ depends=( 'zlib' ) files=( - "https://gnupg.org/ftp/gcrypt/ntbtls/ntbtls-${version}.tar.bz2#8922181fef523b77b71625e562e4d69532278eabbd18bc74579dbe14135729ba" + "https://gnupg.org/ftp/gcrypt/ntbtls/ntbtls-${version}.tar.bz2#bdfcb99024acec9c6c4b998ad63bb3921df4cfee4a772ad6c0ca324dbbf2b07c" ) pre_configure() { From c3bdbb5f55fe946845445e3160feb8d36c4a4837 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Tue, 12 Mar 2024 12:45:21 +0100 Subject: [PATCH 8/9] Ports: Update `gnupg` to 2.4.5 --- Ports/AvailablePorts.md | 2 +- Ports/gnupg/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 93999b8eb878b9..d268e2b873b157 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -105,7 +105,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`gn`](gn/) | GN Meta Build System | 2023.07.12 | https://gn.googlesource.com/gn/ | | [`gnuapl`](gnuapl/) | GNU APL | 1.8 | https://www.gnu.org/software/apl/ | | [`gnucobol`](gnucobol/) | GnuCOBOL | 3.1.2 | https://gnucobol.sourceforge.io/ | -| [`gnupg`](gnupg/) | GnuPG | 2.4.3 | https://gnupg.org/software/index.html | +| [`gnupg`](gnupg/) | GnuPG | 2.4.5 | https://gnupg.org/software/index.html | | [`gnuplot`](gnuplot/) | Gnuplot | 5.4.8 | http://www.gnuplot.info/ | | [`gperf`](gperf/) | GNU gperf | 3.1 | https://www.gnu.org/software/gperf/ | | [`grep`](grep/) | GNU Grep | 3.11 | https://www.gnu.org/software/grep/ | diff --git a/Ports/gnupg/package.sh b/Ports/gnupg/package.sh index bcfdb9b873fda6..a99b91c3e61129 100755 --- a/Ports/gnupg/package.sh +++ b/Ports/gnupg/package.sh @@ -1,13 +1,13 @@ #!/usr/bin/env -S bash ../.port_include.sh port='gnupg' -version='2.4.3' +version='2.4.5' useconfigure='true' use_fresh_config_sub='true' config_sub_paths=( 'build-aux/config.sub' ) files=( - "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2#a271ae6d732f6f4d80c258ad9ee88dd9c94c8fdc33c3e45328c4d7c126bd219d" + "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2#f68f7d75d06cb1635c336d34d844af97436c3f64ea14bcb7c869782f96f44277" ) depends=( 'libassuan' From 2330349ee5896c746ebfb68e355dbeffbe983536 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Wed, 21 Feb 2024 14:22:37 +0100 Subject: [PATCH 9/9] Ports: Add `gpgme` --- Ports/AvailablePorts.md | 1 + Ports/gpgme/package.sh | 20 ++++ ...hared-library-support-for-SerenityOS.patch | 92 +++++++++++++++++++ Ports/gpgme/patches/ReadMe.md | 16 ++++ 4 files changed, 129 insertions(+) create mode 100755 Ports/gpgme/package.sh create mode 100644 Ports/gpgme/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch create mode 100644 Ports/gpgme/patches/ReadMe.md diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index d268e2b873b157..1d7b2ebbed1e30 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -108,6 +108,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`gnupg`](gnupg/) | GnuPG | 2.4.5 | https://gnupg.org/software/index.html | | [`gnuplot`](gnuplot/) | Gnuplot | 5.4.8 | http://www.gnuplot.info/ | | [`gperf`](gperf/) | GNU gperf | 3.1 | https://www.gnu.org/software/gperf/ | +| [`gpgme`](gpgme/) | GnuPG Made Easy (GPGME) | 1.23.2 | https://gnupg.org/software/gpgme/index.html | | [`grep`](grep/) | GNU Grep | 3.11 | https://www.gnu.org/software/grep/ | | [`grepcidr`](grepcidr/) | grepcidr | 2.0 | http://www.pc-tools.net/unix/grepcidr/ | | [`griffon`](griffon/) | The Griffon Legend | 1.0 | https://www.scummvm.org/games/#games-griffon | diff --git a/Ports/gpgme/package.sh b/Ports/gpgme/package.sh new file mode 100755 index 00000000000000..901f17daed9984 --- /dev/null +++ b/Ports/gpgme/package.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='gpgme' +version='1.23.2' +useconfigure='true' +use_fresh_config_sub='true' +config_sub_paths=( + 'build-aux/config.sub' +) +files=( + "https://gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2#9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224" +) +depends=( + 'gnupg' +) +configopts=( + '--disable-gpg-test' + "--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local" + "--with-libassuan-prefix=${SERENITY_INSTALL_ROOT}/usr/local" + "--with-sysroot=${SERENITY_INSTALL_ROOT}" +) diff --git a/Ports/gpgme/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch b/Ports/gpgme/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch new file mode 100644 index 00000000000000..bc66b7568ba2fd --- /dev/null +++ b/Ports/gpgme/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch @@ -0,0 +1,92 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Schumacher +Date: Sun, 29 May 2022 15:01:28 +0200 +Subject: [PATCH] libtool: Enable shared library support for SerenityOS + +For some odd reason, libtool handles the configuration for shared +libraries entirely statically and in its configure script. If no +shared library support is "present", building shared libraries is +disabled entirely. + +Fix that by just adding the appropriate configuration options for +`serenity`. This allows us to finally create dynamic libraries +automatically using libtool, without having to manually link the +static library into a shared library. +--- + configure | 35 +++++++++++++++++++++++++++++++++++ + 1 file changed, 35 insertions(+) + +diff --git a/configure b/configure +index 0b45739345232edb5ac0a145cb704ff9ad0836d6..913b10eedb6196448a14cf017bff4ec3518e23aa 100755 +--- a/configure ++++ b/configure +@@ -8773,6 +8773,11 @@ rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + ++serenity*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++ + solaris*) + lt_cv_deplibs_check_method=pass_all + ;; +@@ -11990,6 +11995,10 @@ lt_prog_compiler_static= + lt_prog_compiler_static='-Bstatic' + ;; + ++ serenity*) ++ lt_prog_compiler_can_build_shared=yes ++ ;; ++ + *) + lt_prog_compiler_can_build_shared=no + ;; +@@ -13418,6 +13427,10 @@ printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } + hardcode_shlibpath_var=no + ;; + ++ serenity*) ++ ld_shlibs=yes ++ ;; ++ + *) + ld_shlibs=no + ;; +@@ -14437,6 +14450,17 @@ uts4*) + shlibpath_var=LD_LIBRARY_PATH + ;; + ++serenity*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}${major}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ dynamic_linker='SerenityOS LibELF' ++ ;; ++ + *) + dynamic_linker=no + ;; +@@ -18318,6 +18342,17 @@ uts4*) + shlibpath_var=LD_LIBRARY_PATH + ;; + ++serenity*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}${major}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ dynamic_linker='SerenityOS LibELF' ++ ;; ++ + *) + dynamic_linker=no + ;; diff --git a/Ports/gpgme/patches/ReadMe.md b/Ports/gpgme/patches/ReadMe.md new file mode 100644 index 00000000000000..cf0a46cd8c84d7 --- /dev/null +++ b/Ports/gpgme/patches/ReadMe.md @@ -0,0 +1,16 @@ +# Patches for gpgme on SerenityOS + +## `0001-libtool-Enable-shared-library-support-for-SerenityOS.patch` + +libtool: Enable shared library support for SerenityOS + +For some odd reason, libtool handles the configuration for shared +libraries entirely statically and in its configure script. If no +shared library support is "present", building shared libraries is +disabled entirely. + +Fix that by just adding the appropriate configuration options for +`serenity`. This allows us to finally create dynamic libraries +automatically using libtool, without having to manually link the +static library into a shared library. +