Failure to build from source when running sarge i386 with provided amd64 kernel.

Bug #23338 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
util-linux (Debian)
Fix Released
Unknown
util-linux (Ubuntu)
Fix Released
Medium
LaMont Jones

Bug Description

Automatically imported from Debian bug report #305907 http://bugs.debian.org/305907

CVE References

Revision history for this message
In , Christoph Berg (myon) wrote :

severity 305907 serious
thanks

Re: Len Sorensen in <email address hidden>
> When running on an athlon64 with the amd64 kernel that ships with sarge
> i386, util-linux fails to build because rdev doesn't get build. Simple
> fix:

util-linux fails to build in my sid/i386 chroot:

install -s sys-utils/readprofile disk-utils/elvtune sys-utils/{tunelp,cytune} sys-utils/rdev debian/tmp/usr/sbin
install: Aufruf von stat für „sys-utils/rdev“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make: *** [binary-arch] Fehler 1

The problem is in MCONFIG:

CPU=$(shell uname -m)
ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')

$ uname -m
x86_64

Please use dpkg-architecture to determine the target architecture.

$ dpkg-architecture
DEB_BUILD_ARCH=i386
[...]

Christoph
--
<email address hidden> | http://www.df7cb.de/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #305907 http://bugs.debian.org/305907

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 22 Apr 2005 16:34:53 -0400
From: Len Sorensen <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Failure to build from source when running sarge i386 with provided amd64
 kernel.

Package: util-linux
Version: 2.12-10
Severity: normal

When running on an athlon64 with the amd64 kernel that ships with sarge
i386, util-linux fails to build because rdev doesn't get build. Simple
fix:

In debian/rules change:
$(MAKE) all arch=$(arch) SUBDIRS="${SUBDIRS}"
to
$(MAKE) all CPU=$(arch) arch=$(arch) SUBDIRS="${SUBDIRS}"

Which will pass the i386 arch as the CPU type and it will build
properly. This won't affect arm either (which already converts
arm3/arm4/arm5 etc to arm in the scripts) or any other arch since no
other arch is checked for explicitly.

Len Sorensen

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages util-linux depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii slang1a-utf8 1.4.9dbs-8 The S-Lang programming library wit
ii zlib1g 1:1.2.2-3 compression library - runtime

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 6 Oct 2005 15:16:09 +0200
From: Christoph Berg <email address hidden>
To: <email address hidden>
Cc: Debian Bugs Control <email address hidden>
Subject: Re: Failure to build from source when running sarge i386 with provided amd64 kernel.

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

severity 305907 serious
thanks

Re: Len Sorensen in <email address hidden>
> When running on an athlon64 with the amd64 kernel that ships with sarge
> i386, util-linux fails to build because rdev doesn't get build. Simple
> fix:

util-linux fails to build in my sid/i386 chroot:

install -s sys-utils/readprofile disk-utils/elvtune sys-utils/{tunelp,cytun=
e} sys-utils/rdev debian/tmp/usr/sbin
install: Aufruf von stat f=C3=BCr =E2=80=9Esys-utils/rdev=E2=80=9C nicht m=
=C3=B6glich: Datei oder Verzeichnis nicht gefunden
make: *** [binary-arch] Fehler 1

The problem is in MCONFIG:

CPU=3D$(shell uname -m)
ARCH=3D$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')

$ uname -m
x86_64

Please use dpkg-architecture to determine the target architecture.

$ dpkg-architecture=20
DEB_BUILD_ARCH=3Di386
[...]

Christoph
--=20
<email address hidden> | http://www.df7cb.de/

--EVF5PPMfhYS0aIcm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDRSOZxa93SlhRC1oRAtLmAKC3JTIGeFVidkyFWGBAHaPbvsohAQCg3w0G
kf/ZiMgojdE7+nnWwXur404=
=RgRI
-----END PGP SIGNATURE-----

--EVF5PPMfhYS0aIcm--

Revision history for this message
In , LaMont Jones (lamont) wrote : Bug#305907: fixed in util-linux 2.12r-1
Download full text (4.0 KiB)

Source: util-linux
Source-Version: 2.12r-1

We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive:

bsdutils_2.12r-1_hppa.deb
  to pool/main/u/util-linux/bsdutils_2.12r-1_hppa.deb
cfdisk-udeb_2.12r-1_hppa.udeb
  to pool/main/u/util-linux/cfdisk-udeb_2.12r-1_hppa.udeb
fdisk-udeb_2.12r-1_hppa.udeb
  to pool/main/u/util-linux/fdisk-udeb_2.12r-1_hppa.udeb
mount_2.12r-1_hppa.deb
  to pool/main/u/util-linux/mount_2.12r-1_hppa.deb
util-linux-locales_2.12r-1_all.deb
  to pool/main/u/util-linux/util-linux-locales_2.12r-1_all.deb
util-linux_2.12r-1.diff.gz
  to pool/main/u/util-linux/util-linux_2.12r-1.diff.gz
util-linux_2.12r-1.dsc
  to pool/main/u/util-linux/util-linux_2.12r-1.dsc
util-linux_2.12r-1_hppa.deb
  to pool/main/u/util-linux/util-linux_2.12r-1_hppa.deb
util-linux_2.12r.orig.tar.gz
  to pool/main/u/util-linux/util-linux_2.12r.orig.tar.gz

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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
LaMont Jones <email address hidden> (supplier of updated util-linux 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 <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 7 Dec 2005 08:52:21 -0700
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all hppa source
Version: 2.12r-1
Distribution: unstable
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
 bsdutils - Basic utilities from 4.4BSD-Lite
 cfdisk-udeb - Partition a hard drive (cfdisk) (udeb)
 fdisk-udeb - Partition a hard drive (manual) (udeb)
 mount - Tools for mounting and manipulating filesystems
 util-linux - Miscellaneous system utilities
 util-linux-locales - Locales files for util-linux
Closes: 243094 305907 314368 337955 340232
Changes:
 util-linux (2.12r-1) unstable; urgency=low
 .
   * New upstream verison and maintainer.
     - cfdisk: fix a segfault with ReiserFS partitions
     - umount: disallow -r option for non-root users (CAN-2005-2876)
     - sfdisk: document -G option in --help output
     - updated translations: ca, et, fr
     - sfdisk: add -G option (Andries Brouwer)
     - updated translations: de, es, ru, sv, tr, nl
   * split cfdisk into its own udeb. Closes: #243094, #314368
   * Really move hwclockfirst.sh back to S18 where it belongs.
     Put hwclock.sh at S22. See #50572.
   * Missing line break in hwclock.sh. Closes: #337955
   * Include swap-suspend patch from Ubuntu.
   * Fix variable name typo in hwclock.sh. Closes: #340232
   * Add CPU=$(arch) to make call for building on amd64/i386 mixed systems.
     Closes: #305907
   * Cleanup lsb_init function usage.
Files:
 382e5f7f3594aecbeb609f787a774e1f 146128 base required mou...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (4.2 KiB)

Message-Id: <email address hidden>
Date: Wed, 07 Dec 2005 13:12:52 -0800
From: LaMont Jones <email address hidden>
To: <email address hidden>
Subject: Bug#305907: fixed in util-linux 2.12r-1

Source: util-linux
Source-Version: 2.12r-1

We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive:

bsdutils_2.12r-1_hppa.deb
  to pool/main/u/util-linux/bsdutils_2.12r-1_hppa.deb
cfdisk-udeb_2.12r-1_hppa.udeb
  to pool/main/u/util-linux/cfdisk-udeb_2.12r-1_hppa.udeb
fdisk-udeb_2.12r-1_hppa.udeb
  to pool/main/u/util-linux/fdisk-udeb_2.12r-1_hppa.udeb
mount_2.12r-1_hppa.deb
  to pool/main/u/util-linux/mount_2.12r-1_hppa.deb
util-linux-locales_2.12r-1_all.deb
  to pool/main/u/util-linux/util-linux-locales_2.12r-1_all.deb
util-linux_2.12r-1.diff.gz
  to pool/main/u/util-linux/util-linux_2.12r-1.diff.gz
util-linux_2.12r-1.dsc
  to pool/main/u/util-linux/util-linux_2.12r-1.dsc
util-linux_2.12r-1_hppa.deb
  to pool/main/u/util-linux/util-linux_2.12r-1_hppa.deb
util-linux_2.12r.orig.tar.gz
  to pool/main/u/util-linux/util-linux_2.12r.orig.tar.gz

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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
LaMont Jones <email address hidden> (supplier of updated util-linux 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 <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 7 Dec 2005 08:52:21 -0700
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all hppa source
Version: 2.12r-1
Distribution: unstable
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
 bsdutils - Basic utilities from 4.4BSD-Lite
 cfdisk-udeb - Partition a hard drive (cfdisk) (udeb)
 fdisk-udeb - Partition a hard drive (manual) (udeb)
 mount - Tools for mounting and manipulating filesystems
 util-linux - Miscellaneous system utilities
 util-linux-locales - Locales files for util-linux
Closes: 243094 305907 314368 337955 340232
Changes:
 util-linux (2.12r-1) unstable; urgency=low
 .
   * New upstream verison and maintainer.
     - cfdisk: fix a segfault with ReiserFS partitions
     - umount: disallow -r option for non-root users (CAN-2005-2876)
     - sfdisk: document -G option in --help output
     - updated translations: ca, et, fr
     - sfdisk: add -G option (Andries Brouwer)
     - updated translations: de, es, ru, sv, tr, nl
   * split cfdisk into its own udeb. Closes: #243094, #314368
   * Really move hwclockfirst.sh back to S18 where it belongs.
     Put hwclock.sh at S22. See #50572.
   * Missing line break in hwclock.sh. Closes: #337955
   * Include swap-suspend patch from Ubuntu.
   * Fix variable name typo in hwclock.sh. Closes: ...

Read more...

LaMont Jones (lamont)
Changed in util-linux:
status: Confirmed → Fix Released
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.