Your message dated Tue, 10 May 2011 10:13:22 +0200
with message-id <201105101013.23248.muehlenh...@univention.de>
and subject line Re: Bug#626175: The Squeeze version fails to build from source
has caused the Debian Bug report #626175,
regarding The Squeeze version fails to build from source
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
626175: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626175
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mbr
Version: 1.1.10-2
Severity: serious

Hi Santiago,
I've tried to rebuild mbr for Univention Corporate Server, a Debian derived 
distribution based on Debian stable (currently Lenny, our next release will
be based on Squeeze).

The stable version of mbr fails to build from source:

make[1]: Leaving directory `/home/jmm/mbr-1.1.10'
/usr/bin/make check-TESTS
make[1]: Entering directory `/home/jmm/mbr-1.1.10'
gcc -E -xc table.S86 -o table.s86.tmp && mv table.s86.tmp table.s86
as86 -0 -b table.b.tmp -s table.sym -l table.lst table.s86 && mv table.b.tmp 
table.b
PASS: tests/inst-1
PASS: tests/inst-3
PASS: tests/inst-4
PASS: tests/inst-6
PASS: tests/inst-7
PASS: tests/inst-8
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-1
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-2
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-3
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-4
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-5
Failed to claim V86 area: Operation not permitted
FAIL: tests/mbr-6
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-1
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-2
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-3
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-4
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-5
Failed to claim V86 area: Operation not permitted
FAIL: tests/testdisk-6
=====================
12 of 18 tests failed
=====================
make[1]: *** [check-TESTS] Error 1
rm table.s86
make[1]: Leaving directory `/home/jmm/mbr-1.1.10'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

When googling for the error cause I noticed that similar
build failures were spotted in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/mbr/+bug/765979
https://bugs.launchpad.net/ubuntu/+source/mbr/+bug/445643

The test suite passes if mbr is build as root.
I tried the version from unstable, which builds fine when 
building as a standard user.

I've filed this with RC severity, since there is at least one
person triaging stable RC bugs.

Cheers,
        Moritz



--- End Message ---
--- Begin Message ---
Version: 1.1.11-4

Santiago Garcia Mantinan wrote:

Thanks for the prompt reply.

> This is a known problem with some kernels, it is solved on the new version
> on testing, 

Confirmed. I'm marking the current sid/testing version as fixed.

> If you find using the new version good enough for you I'll close the bug,
> if not, I can try to fix this, but I don't think uploading a new version to
> stable is worth the trouble. The version on testing compiles and works ok
> on squeeze, I have tested it on i386 and amd64.

I've applied the attached fix to our build. I'll attach it here for reference 
in case anyone encounters the same problem or wants to fix this in a point 
update.

Cheers,
Moritz
-- 
Moritz Mühlenhoff                         muehlenh...@univention.de
Open Source Software Engineer and Consultant
Univention GmbH  Linux for Your Business     fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen          fax: +49 421 22 232-99
http://www.univention.de
Running the full test suite fails when building as a standard user since some
syscalls are restricted to root-equivalent capabilities when running recent
kernels. 

UCS Bug #22199
Debian Bug #626175

diff -aur mbr-1.1.10.orig/debian/rules mbr-1.1.10/debian/rules
--- mbr-1.1.10.orig/debian/rules	2011-05-10 09:59:40.000000000 +0200
+++ mbr-1.1.10/debian/rules	2011-05-10 10:01:26.114448502 +0200
@@ -21,12 +21,7 @@
 	$(checkdir)
 	./configure --prefix=/
 	$(MAKE) CC="$(CC)" LD="$(LD)" CFLAGS="$(CFLAGS)"
-ifneq (,$(findstring x86_64,$(KERNEL_ARCH)))
-	# Limit the tests on x86_64 kernels
 	$(MAKE) TESTS="tests/inst-1 tests/inst-3 tests/inst-4 tests/inst-6 tests/inst-7 tests/inst-8" check-TESTS
-else
-	$(MAKE) check-TESTS
-endif
 	touch build
 
 clean:


--- End Message ---

Reply via email to