From d812cfd1fd472a6e8aca54d07f6f8bfdf3357dbb8e5e2bb972acbef8e9515e69 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 22:23:12 +0000 Subject: [PATCH] [info=e55daad0bbd8a60ae582ca3deb4434eb7cad8fd845b2a126495beabd11d58ded] OBS-URL: https://build.opensuse.org/package/show/editors/libtranscript?expand=0&rev=16 --- ...uild-fix-configure-failure-in-gcc-14.patch | 48 +++++++++++++++++++ _scmsync.obsinfo | 4 +- build.specials.obscpio | 2 +- libtranscript.changes | 5 ++ libtranscript.spec | 9 ++-- 5 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 0001-build-fix-configure-failure-in-gcc-14.patch diff --git a/0001-build-fix-configure-failure-in-gcc-14.patch b/0001-build-fix-configure-failure-in-gcc-14.patch new file mode 100644 index 0000000..bdb544c --- /dev/null +++ b/0001-build-fix-configure-failure-in-gcc-14.patch @@ -0,0 +1,48 @@ +From de2a4b8974bf05c8dbf55a9cd20c45834164d5bf Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 23:15:00 +0100 +Subject: [PATCH] build: fix configure failure in gcc-14 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +References: https://github.com/gphalkes/transcript/pull/1 + +``` +$ ./configure +… +Checking for opendir/readdir/closedir/dirent.h/stdint.h... no +!! Some required functionality is not available. See config.log for details. +… +$ cat config.log +.config.c:12:9: error: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] +// once the right prototype is in view: +.config.c:13:27: error: passing argument 1 of ‘puts’ makes pointer from integer without a cast [-Wint-conversion] +``` +--- + dist/config.pkg | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/dist/config.pkg b/dist/config.pkg +index e2f1d64..0ecd653 100644 +--- a/config.pkg ++++ b/config.pkg +@@ -66,6 +66,7 @@ config() { + #include + #include + #include ++#include + + int main(int argc, char *argv[]) { + DIR *dir; +@@ -74,7 +75,7 @@ int main(int argc, char *argv[]) { + + dir = opendir("."); + entry = readdir(dir); +- puts(entry->d_name[0]); ++ puts(entry->d_name); + closedir(dir); + return 0; + } +-- +2.47.0 + diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 0f8454a..3794e32 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1576927943 -commit: d74c1ec2860d92b1422ce6aa32f2ac13edd31444f3f8705d7826c33b16b30276 +mtime: 1730586175 +commit: e55daad0bbd8a60ae582ca3deb4434eb7cad8fd845b2a126495beabd11d58ded url: https://src.opensuse.org/jengelh/libtranscript revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index d538654..bf2355a 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:394f590aa6e3c1138688709e7fe522669b055233dce5257cd2340e9e1ec022e3 +oid sha256:36e3637c909b39a11c3cae4fa9e6ed4a1540e6df6809ca6cc002e419829061f4 size 256 diff --git a/libtranscript.changes b/libtranscript.changes index 0a3fc19..fd9b4f8 100644 --- a/libtranscript.changes +++ b/libtranscript.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 22:22:48 UTC 2024 - Jan Engelhardt + +- Add 0001-build-fix-configure-failure-in-gcc-14.patch + ------------------------------------------------------------------- Fri Dec 20 00:02:08 UTC 2019 - Jan Engelhardt diff --git a/libtranscript.spec b/libtranscript.spec index c3e5864..916e66a 100644 --- a/libtranscript.spec +++ b/libtranscript.spec @@ -24,11 +24,11 @@ Summary: A character set conversion library License: GPL-3.0-only Group: Development/Libraries/C and C++ URL: https://os.ghalkes.nl/libtranscript.html - -#Git-Clone: git://github.com/gphalkes/transcript +#Git-Clone: https://github.com/gphalkes/transcript Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig Source3: %name.keyring +Patch1: 0001-build-fix-configure-failure-in-gcc-14.patch BuildRequires: fdupes BuildRequires: gettext-tools BuildRequires: libtool @@ -64,15 +64,14 @@ applications that want to make use of libtranscript. %build export CC=gcc %configure --docdir="%_docdir/%name" -make %{?_smp_mflags} +%make_build %install %make_install rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix -%post -p /sbin/ldconfig -n %lname -%postun -p /sbin/ldconfig -n %lname +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libtranscript.so.1*