Package: xsp Version: 1.0.5-1 Severity: serious Tags: patch xsp fails to build because it contains an ambigous call to Math.Min, as well as trying to use dh_netdeps:
> /usr/bin/mcs -debug+ -debug:full -nologo -r:System.Web.dll -r:Mono.Posix.dll > /d:MODMONO_SERVER /out:mod-mono-server.exe IApplicationHost.cs > MonoWorkerRequest.cs Tracing.cs ApplicationServer.cs > LingeringNetworkStream.cs BaseApplicationHost.cs BaseRequestBroker.cs > IWebSource.cs server.cs ModMonoRequest.cs ModMonoWorkerRequest.cs > ModMonoApplicationHost.cs ModMonoTCPWebSource.cs AssemblyInfoModMono.cs > MonoWorkerRequest.cs(275) error CS0234: The type or namespace name `Min' > could not be found in namespace `Mono.Math' > Compilation failed: 1 error(s), 0 warnings The attached patch resolves the ambiguity by calling System.Math.Min explicitly and by using dh_clideps instead of dh_netdeps. -- Matt
diff -u xsp-1.0.5/debian/rules xsp-1.0.5/debian/rules --- xsp-1.0.5/debian/rules +++ xsp-1.0.5/debian/rules @@ -127,7 +127,7 @@ # dh_makeshlibs dh_installdeb dh_shlibdeps - dh_netdeps -d + dh_clideps -d dh_gencontrol dh_md5sums dh_builddeb diff -u xsp-1.0.5/debian/control xsp-1.0.5/debian/control --- xsp-1.0.5/debian/control +++ xsp-1.0.5/debian/control @@ -4,11 +4,11 @@ Maintainer: Debian Mono Group <[EMAIL PROTECTED]> Uploaders: Eduard Bloch <[EMAIL PROTECTED]>, Pablo Fischer <[EMAIL PROTECTED]>, Michael Schiansky <[EMAIL PROTECTED]> Standards-Version: 3.6.1 -Build-Depends: debhelper (>= 4.1.16), autotools-dev, mono-mcs | c-sharp-compiler, libmono-dev, mono-utils (>> 1.0) +Build-Depends: debhelper (>= 4.1.16), autotools-dev, mono-mcs | c-sharp-compiler, libmono-dev, mono-utils (>> 1.0), cli-common Package: mono-xsp Architecture: all -Depends: ${shlibs:Depends}, ${net:Depends}, mono-mcs (>> 1.0), debconf (>= 1.2.0), net-tools +Depends: ${shlibs:Depends}, ${cli:Depends}, mono-mcs (>> 1.0), debconf (>= 1.2.0), net-tools Description: simple web server to run ASP.NET applications XSP is a simple web server written in C# that can be used to run your ASP.NET applications. only in patch2: unchanged: --- xsp-1.0.5.orig/server/MonoWorkerRequest.cs +++ xsp-1.0.5/server/MonoWorkerRequest.cs @@ -272,7 +272,7 @@ while (length > 0 && (count = stream.Read (fileContent, 0, count)) != 0) { SendResponseFromMemory (fileContent, count); length -= count; - count = (int) Math.Min (length, fileContent.Length); + count = (int) System.Math.Min (length, fileContent.Length); } }
signature.asc
Description: Digital signature