modem/libsamsung-ipc: fix build with GCC 15

Signed-off-by: Jens Reidel <adrian@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7125>
This commit is contained in:
Jens Reidel 2025-10-02 00:21:32 +02:00 committed by The Friendly Merge Bot
parent c63615b9a6
commit 28d2a166f3
No known key found for this signature in database
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,25 @@
From ddfec5f4d8432b10daa57572585dcfe8c6e346df Mon Sep 17 00:00:00 2001
From: Jens Reidel <adrian@travitia.xyz>
Date: Thu, 2 Oct 2025 00:17:10 +0200
Subject: [PATCH] Use -std=gnu99 for tools
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
---
tools/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 41e5441..a411307 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -2,6 +2,7 @@ NULL =
AM_CFLAGS = \
-I$(top_srcdir)/include \
+ -std=gnu99 \
$(NULL)
bin_PROGRAMS = \
--
2.51.0

View file

@ -1,6 +1,6 @@
pkgname=libsamsung-ipc
pkgver=6.0.0004
pkgrel=0
pkgrel=1
pkgdesc="Implementation of Samsung modem protocol"
url="https://redmine.replicant.us/projects/replicant/wiki/Libsamsung-ipc"
arch="all"
@ -12,6 +12,7 @@ _pkgver="$(echo "$pkgver" | sed 's/\([0-9]*\.[0-9]*\)\.*/\1-/')"
source="$pkgname-$_pkgver.tar.gz::https://git.replicant.us/replicant/hardware_replicant_libsamsung-ipc/snapshot/replicant-$_pkgver.tar.gz
0001-i9100-modem-firmware-device-path.patch
0002-runtime-device-overrides.patch
0003-Use-std-gnu99-for-tools.patch
"
options="!check" # No tests
@ -30,4 +31,5 @@ sha512sums="
37725ffac1e44396e29da12dcb47313bfacddd6df89cb514a34412def788e1716a961ddb8e9b0923d722f7e6c4455a534156099f0dd6d2d0c414a5d57415585c libsamsung-ipc-6.0-0004.tar.gz
8751a815c8749e1c098b0231e064fcc475703f0d22125acdd0156bbe9d8cf8859158c5a5ca79f305292ed312694070f62b5c54d70ca4a4a713b5405f173ee1cf 0001-i9100-modem-firmware-device-path.patch
4309b407d8ac5773a2e37573618a548116adeb5aa40233d52f2afc9f5f24f61684e72c72be6476f245f70e58d163211e4d31931bb95dc4f4cfcafa4dba693d8b 0002-runtime-device-overrides.patch
61ecc4ae8c8482fbe53d5b7fca391a726c10758f906491b265ad18b458a82503afd6760e020ed0da480fa9166105e89ad1c3a56c1c456923d0032e90ea7ea5a4 0003-Use-std-gnu99-for-tools.patch
"