tags 1045158 patch
severity 1045158 normal
thanks
Hi. The attached patch works for me for the current version.
I've tested that it allows building source after binary build, and
also that the produced .deb binaries are exactly the same before and
after applying the patch.
Thanks.
commit 9024a4776421b9d9b2052d063a6f31a4ad7be963
Author: Santiago Vila <[email protected]>
Date: Sat Feb 21 20:30:00 2026 +0100
Fix clean target. Closes: #1045158.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 000000000..42449d56d
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,36 @@
+ikvm-native/Makefile
+mcs/build/config.make
+mcs/build/deps/xbuild_14_xbuild.exe.makefrag
+mcs/class/.dep_dirs-build
+mcs/class/.dep_dirs-net_4_x
+mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng.Rnc/RncParser.cs
+mcs/class/Commons.Xml.Relaxng/y.output
+mcs/class/Facades/.dep_dirs-build
+mcs/class/Facades/.dep_dirs-net_4_x
+mcs/class/Microsoft.Build/Microsoft.Build.Internal/ExpressionParser.cs
+mcs/class/Microsoft.Build/Microsoft.Build.Internal/y.output
+mcs/class/Mono.CSharp/net_4_x-parser.cs
+mcs/class/RabbitMQ.Client/docs/specs/net_4_x-api-0-8.cs
+mcs/class/RabbitMQ.Client/docs/specs/net_4_x-api-0-9.cs
+mcs/class/RabbitMQ.Client/docs/specs/net_4_x-api-qpid-0-8.cs
+mcs/class/System.Web/System.Web/UplevelHelper.cs
+mcs/class/lib/build-linux/
+mcs/class/lib/net_4_x-linux/
+mcs/ilasm/ILParser.cs
+mcs/mcs/cs-parser.cs
+mono/mini/libmono-ee-interp.la
+mono/tests/*.xml
+mono/tests/assembly-load-reference/*.xml
+mono/tests/assembly-load-reference/mainanddep/middle/
+mono/tests/assembly-load-reference/separatedir/middle/
+mono/tests/assemblyresolve_deps/
+mono/tests/console-output.exe.stderr
+mono/tests/gc-descriptors/descriptor-tests.cs
+mono/tests/test-multi-netmodule-1-netmodule.netmodule
+scripts/csc
+scripts/csi
+scripts/dmcs
+scripts/mcs
+scripts/peverify
+scripts/vbc
+scripts/xbuild
diff --git a/debian/rules b/debian/rules
index 478957a3d..e48c6e9d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -131,10 +131,10 @@ endif
# distclean misses stuff
find -name "*.mdb" -delete
find ./external/binary-reference-assemblies/ -name "*.dll" -not -path
"./external/binary-reference-assemblies/v4.7.1/*" -print -delete
- rm -rf mcs/class/lib/basic/ \
- mcs/class/lib/net_4_5/
+ find mcs/class -name "*.resources" -not -path "mcs/class/corlib/*" \
+ -not -path
"mcs/class/System.Windows.Forms/System.Windows.Forms.dll.resources" -delete
+ find mono/tests \( -name "*.dll" -o -name "*.exe" \) -delete
rm -f debian/MonoGetAssemblyName.exe
- rm -f mcs/packages/*.dll mcs/packages/*.exe* mcs/packages/*.rsp
dh_auto_clean
execute_before_dh_install: