[CROSS] Fix generation of debian/control

Bug #913734 reported by Marcin Juszkiewicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.6 (Ubuntu)
Undecided
Matthias Klose

Bug Description

Gcc 4.6.2-10 release added some extra Provides: lines for armel/armhf. But this also broke cross builds as empty lines were generated in debian/control:

Package: libgcc1-armel-cross
Architecture: all
Section: devel
Priority: extra
Depends: gcc-4.6-arm-linux-gnueabi-base (= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends}
Provides: libgcc1-armel-dcv1

Description: GCC support library
 Shared version of the support library, a library of internal subroutines
 that GCC uses to overcome shortcomings of particular machines, or
 special needs for some languages.
 .
 This package contains files for armel architecture, for use in cross-compile
 environment.

Package: libgcc1-dbg-armel-cross
Architecture: all
Section: debug
Priority: extra
Depends: gcc-4.6-arm-linux-gnueabi-base (= ${gcc:Version}), libgcc1-armel-cross (= ${gcc:EpochVersion}), ${misc:Depends}

Description: GCC support library (debug symbols)
 Debug symbols for the GCC support library.
 .
 This package contains files for armel architecture, for use in cross-compile
 environment.

Attached patch fixes it (maybe not in best way).

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

How to check:

echo armel >debian/target
debian/rules control

look at debian/control - libgcc1-armel-cross and libgcc1-dbg-armel-cross will be broken

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

seems tooling related, I thought foundations would want to take a look

Changed in gcc-4.6 (Ubuntu):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Colin Watson (cjwatson)
Changed in gcc-4.6 (Ubuntu):
assignee: Canonical Foundations Team (canonical-foundations) → Matthias Klose (doko)
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 4.6.2-12ubuntu1

Changed in gcc-4.6 (Ubuntu):
status: New → Fix Released
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

dh_installchangelogs -pgcc-4.6-arm-linux-gnueabi-base
dh_compress -pgcc-4.6-arm-linux-gnueabi-base
dh_fixperms -pgcc-4.6-arm-linux-gnueabi-base
dh_gencontrol -pgcc-4.6-arm-linux-gnueabi-base -- -v4.6.2-12ubuntu1 '-Vgcc:Version=4.6.2-12ubuntu1' '-Vgcc:EpochVersion=1:4.6.2-12ubuntu1' '-Vgcc:SoftVersion=4.6.1-16' '-Vgdc:Version=' '-Vgcj:Version=4.6.2-12ubuntu1' '-Vgcj:SoftVersion=4.6.1-9' '-Vgcj:BaseVersion=4.6' '-Vgnat:Version=4.6.2-12ubuntu1' '-Vbinutils:Version=2.21.1' '-Vdep:libgcc=libgcc1-armel-cross (>= 1:4.6.2-12ubuntu1)' '-Vdep:libgccbiarch=libhfgcc1-armel-cross (>= 1:4.6.2-12ubuntu1) | libgcc1-armhf' '-Vdep:libcdev=libc6-dev-armel-cross (>= 2.13-0ubuntu6)' '-Vdep:libcbiarch=libc6-armhf-armel-cross (>= 2.5) | libc6-armhf-armel-cross' '-Vdep:libcbiarchdev=libc6-dev-armhf-armel-cross (>= 2.5) | libc6-dev-armhf-armel-cross' '-Vdep:libunwinddev=' '-Vdep:libcxxbiarch=libhfstdc++6-armel-cross (>= ${gcc:Version}) | libstdc++6-armel-cross-armhf' '-Vdep:libcxxbiarchdbg=libhfstdc++6-4.6-dbg-armel-cross | libstdc++6-4.6-armel-cross-dbg-armhf' '-Vdep:libgobiarch=' '-Vdep:libgobiarchdbg=' '-Vdep:libgnat=' '-Vdep:ecj=' '-Vdep:libcloog=' '-Vgcc:multilib=gcc-4.6-multilib-arm-linux-gnueabi' '-Vgxx:multilib=g++-4.6-multilib-arm-linux-gnueabi' '-Vgobjc:multilib=gobjc-4.6-multilib-arm-linux-gnueabi' '-Vgobjcxx:multilib=gobjc++-4.6-multilib-arm-linux-gnueabi' '-Vgfortran:multilib=gfortran-4.6-multilib-arm-linux-gnueabi' '-Vdep:gold=binutils-gold (>= 2.21.1)' '-Vdep:libgomp=libgomp1-armel-cross (>= ${gcc:Version})' '-Vdep:libgfortranbiarch=libhfgfortran3-armel-cross (>= ${gcc:Version}) | libgfortran3-armel-cross-armhf' '-Vdep:libobjcbiarch=libhfobjc3-armel-cross (>= ${gcc:Version}) | libobjc3-armel-cross-armhf' '-Vdep:libmudflapbiarch=libhfmudflap0-armel-cross (>= ${gcc:Version}) | libmudflap0-armel-cross-armhf' '-Vdep:libgompbiarch=libhfgomp1-armel-cross (>= ${gcc:Version}) | libgomp1-armel-cross-armhf' '-Vdep:gcj=gcc-4.6 (>= 4.6.1-16)' '-Vmultiarch:breaks=gcc-4.1, gcc-4.3 (<< 4.3.6-1), gcc-4.4 (<< 4.4.6-4), gcc-4.5 (<< 4.5.3-2)'
dpkg-gencontrol: error: syntax error in debian/control at line 48: block lacks the 'Package' field

debian/control.m4 needs lot of fixes to get cross build working again. My brain shutdown each time when I see m4 ;(

I am thinking about adding NOTARGET variable to reverse some of checks there.

Changed in gcc-4.6 (Ubuntu):
status: Fix Released → Confirmed
Marcin Juszkiewicz (hrw)
Changed in gcc-4.6 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.6 - 4.6.2-14ubuntu1

---------------
gcc-4.6 (4.6.2-14ubuntu1) precise; urgency=low

  * Merge with Debian.

gcc-4.6 (4.6.2-14) unstable; urgency=low

  * Update to SVN 20120210 (r184105) from the gcc-4_6-branch.
    - Fix PR rtl-optimization/52139, PR rtl-optimization/52060,
      PR middle-end/52074, PR target/52129, PR middle-end/48071,
      PR target/52006, PR libmudflap/40778, PR rtl-optimization/51767,
      PR middle-end/51768, PR middle-end/44777, PR debug/51695, PR c/51360,
      PR debug/51517, PR middle-end/52140, PR target/51106, PR c++/51669,
      PR driver/48306, PR tree-optimization/49536.
  * Fix libstdc++-dev control file for cross builds.

gcc-4.6 (4.6.2-13) unstable; urgency=low

  * Update to SVN 20120208 (r184026) from the gcc-4_6-branch.
    - Fix PR middle-end/51994, PR target/40068, PR target/52107,
      PR tree-optimization/51118, PR rtl-optimization/51374, PR target/51835,
      PR target/50313, PR middle-end/45678, PR ada/46192, PR fortran/52151,
      PR fortran/52093, PR fortran/52012, PR fortran/52022, PR fortran/51966,
      PR fortran/51948, PR fortran/51913, PR libstdc++/51795, PR libjava/48512.

  * Install libstdc++ -gdb.py file into /usr/lib/debug.
    Closes: #652160, #653446.
  * Configure --with-system-root, remove trailing slash from system root.
  * Strip whitespace from with_libssp definition. Closes: #653255.
  * Fix control file generation for cross packages. LP: #913734.
  * Update the Linaro support to the 4.6-2012.01-1 release.
 -- Matthias Klose <email address hidden> Fri, 10 Feb 2012 19:34:24 +0100

Changed in gcc-4.6 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Build of cross compiler gave me few more errors from dpkg so I had to change debian/control.m4 a bit.

Changed in gcc-4.6 (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Matthias Klose (doko) wrote :

should the conflicts to libhfstdc++6-dbg`'LS really be dropped?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.6 - 4.6.2-14ubuntu2

---------------
gcc-4.6 (4.6.2-14ubuntu2) precise; urgency=low

  * Update to SVN 20120215 (r184282) from the gcc-4_6-branch.
    - Fix PR tree-optimization/46886, PR debug/51950, PR c/52181,
      PR middle-end/52230, PR bootstrap/51969, PR c++/52247, PR c/5218.
  * Don't add ARM sf/hf conflicts for cross package builds. LP: #913734.
 -- Matthias Klose <email address hidden> Thu, 16 Feb 2012 00:28:55 +0100

Changed in gcc-4.6 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers