[packages/dotnet-soup-sharp] Rel 4

arekm arekm at pld-linux.org
Mon Aug 17 00:29:46 CEST 2026


commit 268bfca238b47b779b3650c714d2836f2d51c521
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 17 00:29:26 2026 +0200

    Rel 4

 dotnet-soup-sharp-cflags.patch         | 17 +++++++++++++++++
 dotnet-soup-sharp-configure-typo.patch | 17 +++++++++++++++++
 dotnet-soup-sharp-mcs.patch            | 16 ++++++++++++++++
 dotnet-soup-sharp.spec                 |  8 +++++++-
 4 files changed, 57 insertions(+), 1 deletion(-)
---
diff --git a/dotnet-soup-sharp.spec b/dotnet-soup-sharp.spec
index bf8e1e9..b85b81f 100644
--- a/dotnet-soup-sharp.spec
+++ b/dotnet-soup-sharp.spec
@@ -2,12 +2,15 @@ Summary:	C# Bindings for libsoup2.4
 Summary(pl.UTF-8):	Wiązania C# do biblioteki libsoup2.4
 Name:		dotnet-soup-sharp
 Version:	2.42.2
-Release:	3
+Release:	4
 License:	LGPL v3
 Group:		Libraries
 Source0:	https://github.com/xDarkice/soup-sharp/releases/download/%{version}/soup-sharp-%{version}.tar.gz
 # Source0-md5:	f6376bd08ae5da39d6f7cf8998413e70
 Patch0:		pkgconfig.patch
+Patch1:		%{name}-configure-typo.patch
+Patch2:		%{name}-mcs.patch
+Patch3:		%{name}-cflags.patch
 URL:		https://github.com/xDarkice/soup-sharp
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -43,6 +46,9 @@ Pliki programistyczne wiązań C# do biblioteki libsoup2.4.
 %prep
 %setup -q -n soup-sharp-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__libtoolize}
diff --git a/dotnet-soup-sharp-cflags.patch b/dotnet-soup-sharp-cflags.patch
new file mode 100644
index 0000000..5a665e5
--- /dev/null
+++ b/dotnet-soup-sharp-cflags.patch
@@ -0,0 +1,17 @@
+Do not clobber CFLAGS in the glue Makefile.
+
+A plain "CFLAGS =" assignment overrides whatever configure was given, so the
+glue was built with no optimisation and no debug info at all (which also left
+the debugsource package empty).  The define belongs in AM_CPPFLAGS.
+
+--- soup-sharp-2.42.2/sources/glue/Makefile.am.orig
++++ soup-sharp-2.42.2/sources/glue/Makefile.am
+@@ -10,7 +10,7 @@
+ 
+ INCLUDES = $(SOUP_CFLAGS) -I$(top_srcdir)
+ 
+-CFLAGS = -DLIBSOUP_USE_UNSTABLE_REQUEST_API
++AM_CPPFLAGS = -DLIBSOUP_USE_UNSTABLE_REQUEST_API
+ 
+ libsoupsharpglue.dll: $(libsoupsharpglue_2_42_2_la_OBJECTS) libsoupsharpglue.rc libsoupsharpglue.def
+ 	./build-dll libsoupsharpglue $(VERSION)
diff --git a/dotnet-soup-sharp-configure-typo.patch b/dotnet-soup-sharp-configure-typo.patch
new file mode 100644
index 0000000..06778c5
--- /dev/null
+++ b/dotnet-soup-sharp-configure-typo.patch
@@ -0,0 +1,17 @@
+Drop a stray "1" in front of an AC_PATH_PROG call.
+
+It makes the generated configure try to run a command called "1"
+("./configure: 1: inaccessible or not found").  gstreamer-sharp, which uses the
+same configure.ac template, does not have it.
+
+--- soup-sharp-2.42.2/configure.ac.orig
++++ soup-sharp-2.42.2/configure.ac
+@@ -38,7 +38,7 @@
+ PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= 1.0, has_mono=true, has_mono=false)
+ 
+ if test "x$has_mono" = "xtrue"; then
+-1	AC_PATH_PROG(RUNTIME, mono, no)
++	AC_PATH_PROG(RUNTIME, mono, no)
+ 	AC_PATH_PROG(CSC, gmcs, no)
+ 	LIB_PREFIX=.so
+ 	LIB_SUFFIX=
diff --git a/dotnet-soup-sharp-mcs.patch b/dotnet-soup-sharp-mcs.patch
new file mode 100644
index 0000000..f7be9e4
--- /dev/null
+++ b/dotnet-soup-sharp-mcs.patch
@@ -0,0 +1,16 @@
+Look for mcs instead of gmcs.
+
+mono 6.x dropped gmcs together with the 2.0 profile; mcs is the only C#
+compiler it ships.
+
+--- soup-sharp-2.42.2/configure.ac.orig
++++ soup-sharp-2.42.2/configure.ac
+@@ -39,7 +39,7 @@
+ 
+ if test "x$has_mono" = "xtrue"; then
+ 	AC_PATH_PROG(RUNTIME, mono, no)
+-	AC_PATH_PROG(CSC, gmcs, no)
++	AC_PATH_PROG(CSC, mcs, no)
+ 	LIB_PREFIX=.so
+ 	LIB_SUFFIX=
+ else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dotnet-soup-sharp.git/commitdiff/268bfca238b47b779b3650c714d2836f2d51c521



More information about the pld-cvs-commit mailing list