Bug#807006: closed by Michael Tokarev <m...@tls.msk.ru> (Bug#807006: fixed in qemu 1:2.6+dfsg-1)

2016-05-20 Thread John Paul Adrian Glaubitz
On 05/19/2016 05:24 PM, John Paul Adrian Glaubitz wrote:
> Attaching an updated patch which applies to the current 2.6 package
> of qemu in unstable. I am testing now whether qemu builds fine on
> sparc64 with the patch applied.

With the patch applied, qemu builds fine on sparc64. Thus, it would be
great if it could be included in the next upload of the qemu package.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#807006: closed by Michael Tokarev <m...@tls.msk.ru> (Bug#807006: fixed in qemu 1:2.6+dfsg-1)

2016-05-19 Thread John Paul Adrian Glaubitz
On 05/18/2016 11:25 PM, Michael Tokarev wrote:
> Yes, my bad, I looked in the wrong branch and thought
> the patch is applied.

Attaching an updated patch which applies to the current 2.6 package
of qemu in unstable. I am testing now whether qemu builds fine on
sparc64 with the patch applied.

Would be great if you could then apply the patch to the qemu Debian
package until it has been merged upstream or fixed otherwise.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: Fix linker options on sparc*
 On sparc*, qemu fails to build from source because passing
 both -r and --relax at the same time is not allowed here.
 This patch adds a check to the configure time whether
 -r and --relax at the same time are accepted by the linker
 and passes --no-relax to the linker in case the test result
 is negative.
 .

--- qemu-2.6+dfsg.orig/configure
+++ qemu-2.6+dfsg/configure
@@ -4520,6 +4520,18 @@ if compile_prog "" "" ; then
 have_fsxattr=yes
 fi
 
+#
+# Sparc implicitly links with --relax, which is
+# incompatible with -r. It does no harm to give
+# it on other platforms too.
+
+cat > $TMPC << EOF
+int foo(void) { return 0; }
+EOF
+if compile_prog "" "-nostdlib -Wl,-r -Wl,--no-relax"; then
+  LD_REL_FLAGS="-Wl,--no-relax"
+fi
+
 ##
 # End of CC checks
 # After here, no more $cc or $ld runs
@@ -5525,6 +5537,7 @@ else
 fi
 echo "LDFLAGS=$LDFLAGS" >> $config_host_mak
 echo "LDFLAGS_NOPIE=$LDFLAGS_NOPIE" >> $config_host_mak
+echo "LD_REL_FLAGS=$LD_REL_FLAGS" >> $config_host_mak
 echo "LIBS+=$LIBS" >> $config_host_mak
 echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
--- qemu-2.6+dfsg.orig/rules.mak
+++ qemu-2.6+dfsg/rules.mak
@@ -93,7 +93,7 @@ module-common.o: CFLAGS += $(DSO_OBJ_CFL
 	$(if $(findstring /,$@),$(call quiet-command,cp $@ $(subst /,-,$@), "  CP$(subst /,-,$@)"))
 
 
-LD_REL := $(CC) -nostdlib -Wl,-r
+LD_REL := $(CC) -nostdlib -Wl,-r $(LD_REL_FLAGS)
 
 %.mo:
 	$(call quiet-command,$(LD_REL) -o $@ $^,"  LD -r $(TARGET_DIR)$@")


Bug#807006: closed by Michael Tokarev <m...@tls.msk.ru> (Bug#807006: fixed in qemu 1:2.6+dfsg-1)

2016-05-18 Thread John Paul Adrian Glaubitz
On 05/18/2016 11:25 PM, Michael Tokarev wrote:
>> It might not be the best idea to close Debian bugs anonymously, e.g.
>> merely by referencing their bug numbers without an actual message.
> 
> "Anonymously" is definitely not the correct word here.
> 
> Unfortunately my time limit for releasing 2.6 is way past all boundaries.
> Your patches for more accurate messages are welcome, too.

I just don't think it's a good approach to close bugs in a changelog by
solely referencing by their bug numbers. There should be at least a
short message like "Fix FTBFS on sparc64 due to wrong linker options.",
then it's less likely that you close the wrong bugs accidentally.

Did you check for other accidentally closed bugs in any case?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#807006: closed by Michael Tokarev <m...@tls.msk.ru> (Bug#807006: fixed in qemu 1:2.6+dfsg-1)

2016-05-18 Thread Michael Tokarev
18.05.2016 22:21, John Paul Adrian Glaubitz wrote:
> Control: reopen -1
> 
> I'm sorry, but this has not been fixed [1]. In fact, this particular
> patch hasn't even merged in the git repository of qemu [2].

Yes, my bad, I looked in the wrong branch and thought
the patch is applied.

> It might not be the best idea to close Debian bugs anonymously, e.g.
> merely by referencing their bug numbers without an actual message.

"Anonymously" is definitely not the correct word here.

Unfortunately my time limit for releasing 2.6 is way past all boundaries.
Your patches for more accurate messages are welcome, too.

Thanks,

/mjt



Bug#807006: closed by Michael Tokarev <m...@tls.msk.ru> (Bug#807006: fixed in qemu 1:2.6+dfsg-1)

2016-05-18 Thread John Paul Adrian Glaubitz
Control: reopen -1

I'm sorry, but this has not been fixed [1]. In fact, this particular
patch hasn't even merged in the git repository of qemu [2].

It might not be the best idea to close Debian bugs anonymously, e.g.
merely by referencing their bug numbers without an actual message.

Adrian

> [1]
https://buildd.debian.org/status/fetch.php?pkg=qemu=sparc64=1%3A2.6%2Bdfsg-1=1463590883
> [2] https://patchwork.ozlabs.org/patch/620832/

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913