Your message dated Mon, 11 May 2015 11:00:08 +0000 with message-id <e1yrlrq-00042i...@franck.debian.org> and subject line Bug#778588: fixed in linux-tools 4.0.2-1 has caused the Debian Bug report #778588, regarding linux-tools: build fails with linux-3.19 sources 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.) -- 778588: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778588 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Package: src:linux-tools Version: 3.18.5-1~exp1 Severity: important Tags: patch Dear Maintainer, As linux-image-3.19.0-* packages are available in experimental but linux-kbuild-3.19 is not yet in the repositories, I tried to build it manually following the guide at https://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage but I encountered a couple of problems that break the build. Hoping that it can be useful, I am attaching the patch I diff'ed against the latest version of the repo: svn://svn.debian.org/kernel/dists/trunk/linux-tools The problems encountered are: - The patch tools-perf-version.patch does not apply cleanly due to upstream changes - lib/hweight.c must be copied by debian/bin/genorig.py as it is needed to build - x86_64 specific: perf does not build, fix taken from lkml (has not been committed as of now) and used to create a new Quilt patch, link to the upstream mail: https://lkml.org/lkml/2015/2/13/55 Kind regards, Luca Boccassi Index: debian/bin/genorig.py =================================================================== --- debian/bin/genorig.py (revision 22391) +++ debian/bin/genorig.py (working copy) @@ -146,6 +146,7 @@ 'arch/x86/lib/memset_64.S', 'include/', 'lib/rbtree.c', + 'lib/hweight.c', 'scripts/', 'tools/', ) Index: debian/patches/perf-fix-building-error-in-x86_64.patch =================================================================== --- debian/patches/perf-fix-building-error-in-x86_64.patch (revision 0) +++ debian/patches/perf-fix-building-error-in-x86_64.patch (working copy) @@ -0,0 +1,27 @@ +From: He Kuang <heku...@huawei.com> +Date: Fri, 13 Feb 2015 15:11:14 +0800 +Subject: [PATCH v2] perf: fix building error in x86_64 + +When build with ARCH=x86_64, perf failed to compile with following error: + +tests/builtin-test.o:(.data+0x158): undefined reference to `test__perf_time_to_tsc' +collect2: error: ld returned 1 exit status +Makefile.perf:632: recipe for target 'perf' failed +... + +Which is caused commit c6e5e9fbc3ea1 ("perf tools: Fix building error +in x86_64 when dwarf unwind is on"), ARCH test in Makefile.perf +conflicts with tests/builtin-test.c's __x86_64__. +To x86/x86_64 platform, ARCH should always override to x86 while +IS_64_BIT stands for the actual architecture. + +--- a/tools/perf/config/Makefile.arch ++++ b/tools/perf/config/Makefile.arch +@@ -29,3 +29,7 @@ + else + IS_64_BIT := 0 + endif ++ ++ifeq ($(ARCH), x86_64) ++ override ARCH := x86 ++endif Index: debian/patches/series =================================================================== --- debian/patches/series (revision 22391) +++ debian/patches/series (working copy) @@ -4,3 +4,4 @@ usbip-document-tcp-wrappers.patch kbuild-fix-recordmcount-dependency.patch usbip-include-uninstalled-linux-usbip-h.patch +perf-fix-building-error-in-x86_64.patch Index: debian/patches/tools-perf-version.patch =================================================================== --- debian/patches/tools-perf-version.patch (revision 22391) +++ debian/patches/tools-perf-version.patch (working copy) @@ -9,7 +9,7 @@ --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf -@@ -833,8 +833,8 @@ install-gtk: +@@ -923,8 +923,8 @@ install-gtk: install-bin: all install-gtk $(call QUIET_INSTALL, binaries) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'; \ @@ -17,10 +17,10 @@ - $(LN) '$(DESTDIR_SQ)$(bindir_SQ)/perf' '$(DESTDIR_SQ)$(bindir_SQ)/trace' + $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)/perf_$(VERSION)'; \ + $(LN) '$(DESTDIR_SQ)$(bindir_SQ)/perf_$(VERSION)' '$(DESTDIR_SQ)$(bindir_SQ)/trace_$(VERSION)' - $(call QUIET_INSTALL, libexec) \ - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)' - $(call QUIET_INSTALL, perf-archive) \ -@@ -857,7 +857,7 @@ ifndef NO_LIBPYTHON + ifndef NO_PERF_READ_VDSO32 + $(call QUIET_INSTALL, perf-read-vdso32) \ + $(INSTALL) $(OUTPUT)perf-read-vdso32 '$(DESTDIR_SQ)$(bindir_SQ)'; +@@ -957,7 +957,7 @@ ifndef NO_LIBPYTHON endif $(call QUIET_INSTALL, perf_completion-script) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'; \ @@ -29,7 +29,7 @@ $(call QUIET_INSTALL, tests) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ $(INSTALL) tests/attr.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \ -@@ -871,7 +871,7 @@ install-python_ext: +@@ -971,7 +971,7 @@ install-python_ext: # 'make install-doc' should call 'make -C Documentation install' $(INSTALL_DOC_TARGETS):
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: linux-tools Source-Version: 4.0.2-1 We believe that the bug you reported is fixed in the latest version of linux-tools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 778...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ben Hutchings <b...@decadent.org.uk> (supplier of updated linux-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Mon, 11 May 2015 03:53:12 +0100 Source: linux-tools Binary: linux-kbuild-4.0 linux-tools-4.0 libusbip-dev usbip Architecture: i386 source Version: 4.0.2-1 Distribution: unstable Urgency: medium Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org> Changed-By: Ben Hutchings <b...@decadent.org.uk> Closes: 778588 778942 783681 Description: libusbip-dev - USB device sharing system over IP network (development files) linux-kbuild-4.0 - Kbuild infrastructure for Linux 4.0 linux-tools-4.0 - Performance analysis tools for Linux 4.0 usbip - USB device sharing system over IP network Changes: linux-tools (4.0.2-1) unstable; urgency=medium . * New upstream release * Thanks to Luca Boccassi and Lukas Wunner for some hints on upgrading to 4.0 (Closes: #778588) * debian/control: Add gcc-multilib to Build-Depends in order to build perf-read-vdso{,x}32 * linux-tools: Install perf-read-vdso{,x}32 in versioned directory under /usr/lib * linux-tools: Set ARCH=x86 when building perf for amd64, i386 or x32 * linux-kbuild: Include Makefile.kasan (Closes: #783681) * linux-kbuild: Enable Large File Support (Closes: #778942) Checksums-Sha1: 70d66d56f2b8d333ceb9aca062278d233ac6ab28 2718 linux-tools_4.0.2-1.dsc acef9cec14fa56aa5500043efcc6cf08e914a3fd 8181700 linux-tools_4.0.2.orig.tar.xz a1eb109b4d5497da5573237674a206adc044aef0 24020 linux-tools_4.0.2-1.debian.tar.xz a12001ad469e68322c02211e3a5db4134656384a 23654 libusbip-dev_2.0+4.0.2-1_i386.deb 15c1e31e03733d2bef6751d44c714190913f42eb 177962 linux-kbuild-4.0_4.0.2-1_i386.deb 9a17cada8504bd5a3e21f11820a21474d6861450 37634 usbip_2.0+4.0.2-1_i386.deb 0e1da9e8be24833f42b0668ef45409a8537f6983 646136 linux-tools-4.0_4.0.2-1_i386.deb Checksums-Sha256: 9684cd1919d958b7c006f7e2aec7c0baf72a5b00f14ebe471acb0cd563057914 2718 linux-tools_4.0.2-1.dsc 9c149a18e2d0ec3aba9200fdf49b124849a74130574e15abcb526f7481c2147e 8181700 linux-tools_4.0.2.orig.tar.xz b1eca5841fc7db16426000cfbb82ca937f0a69005c7a59d5ad1b8519619375cd 24020 linux-tools_4.0.2-1.debian.tar.xz 9a012cb741e0b119afec14c80d42c90b67ca7ed7b37502fae920e4b9852c3d1c 23654 libusbip-dev_2.0+4.0.2-1_i386.deb 313379b20f32473ea5dc853d0cc8c0e83b96140b5ada1fe0c30a2203ffc62598 177962 linux-kbuild-4.0_4.0.2-1_i386.deb 8f004ab1d53a0e35cf2f129a15dadec1b11a62342b19fb0762cf1fe69a0c94a7 37634 usbip_2.0+4.0.2-1_i386.deb 2cbce0e2d34aa2ebcb8bd352b567859689aa31f19058a87a645d11913474621c 646136 linux-tools-4.0_4.0.2-1_i386.deb Files: 234861d531833cae51cf49156d66c8ae 2718 kernel optional linux-tools_4.0.2-1.dsc 2bf7891f174843b40603395e94bde29d 8181700 kernel optional linux-tools_4.0.2.orig.tar.xz e853b9b041bb47c4e796b4d3c326f985 24020 kernel optional linux-tools_4.0.2-1.debian.tar.xz 72b0dc8589f880466bdfd75865e58294 23654 libdevel optional libusbip-dev_2.0+4.0.2-1_i386.deb 12baaddeb33d01c9ba3b463dd2090128 177962 kernel optional linux-kbuild-4.0_4.0.2-1_i386.deb 77a00fba70ab9bcca5fdd170ed509cd7 37634 admin optional usbip_2.0+4.0.2-1_i386.deb 0afa0646c13b896f12b55edc2ebff6de 646136 devel optional linux-tools-4.0_4.0.2-1_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBVVAeX+e/yOyVhhEJAQoVUg//bwj5o8aK4CngUrlvetScMUsM8ZcnHuVR sKeHN0Rw2h7m+hHfBtftac2GCN5bdh2xL4PTZONCKjEowoEE0j14U//t5HMNT1Eo 7blDExR6Njr8z3g/7iz49XJlnEdCWQ6MklSrJ9BaHrGQ9FCUgcvNFzUY3U8FNQZh rAxAG8pWCTV7k0Ayw1VcEQSZIsOHqAUMo8d87nzVta0Eitzq9ukOn+ccrhfbbqIU PuwU/QAE19zsCMF34kqkagOd6Kzlifmi+OE+6/7uNW0nfFxFHZ3i/j7eqtvOzDgI jNdTI4xvLbHlk2Csflc4hpdy+0684PxftXI3OYbRLQzEVNP12KHcUj2tov2O33zT VDCKFlx/VTHD1GEVxTk1+1HIMtY0WwbRaahB1zLGQkTgMbpkEVld7wTWijxwsJ/E O8tc4FWu5VAjJkxX+8LXF3Lp1Vt63+3fXUnP9nucggKJUAvRHtb1DeFg0+ymMJ1R UCFZJOtwotSh8wSAxFI1g4Mn1KyxNi65OSFknuHH22KB3Rskho7B6wKgTGxunSuQ d5rOk9zKfQ6YTBGjZhWtBtCrMQxQgxtg/Dzi2H7nZUjmbRIo8CAzBv0WkcFQORRm rk1+QoR1rk368/ZfZckNe5c1ukRmHSFyxyiAWkQL4H3z8Fjo5VjTi/rAJJm9n0t2 cxTa4+wMYIQ= =3TJ4 -----END PGP SIGNATURE-----
--- End Message ---