Package: util-linux
Version: 2.12r-14
Severity: serious
Tags: patch

When building 'util-linux' on amd64/unstable,
I get the following error:

# /usr/bin/make disk-utils/raw - this is done above if linux/raw.h exists
touch build
rm -rf debian/tmp*
install -d 
debian/tmp/{DEBIAN,bin,sbin,etc/init.d,usr/{bin,sbin,lib/mime/packages,share/{locale/{ca,cs,da,de,es,et,fi,fr,it,ja,nl,pt_BR,sl,sv,tr}/LC_MESSAGES,man/{man1,man8},info,util-linux,doc/util-linux/examples,lintian/overrides}}}
install -s sys-utils/arch text-utils/more sys-utils/dmesg  debian/tmp/bin
install -s disk-utils/mkswap hwclock/hwclock disk-utils/{blockdev,raw,isosize} 
mount/pivot_root login-utils/agetty 
disk-utils/{{fsck,mkfs}.{minix,cramfs},mkfs} fdisk/{cfdisk,fdisk,sfdisk} 
debian/tmp/sbin
install -s sys-utils/{ipcs,ipcrm,setsid} 
misc-utils/{namei,setterm,mcookie,whereis,ddate} getopt/getopt 
text-utils/{rev,line,pg} disk-utils/fdformat debian/tmp/usr/bin
install    misc-utils/chkdupexe  debian/tmp/usr/bin
install -s sys-utils/readprofile disk-utils/elvtune  sys-utils/{tunelp,cytune} 
sys-utils/rdev debian/tmp/usr/sbin
install: cannot stat `sys-utils/rdev': No such file or directory
make: *** [binary-arch] Error 1

With the attached patch 'util-linux' can be built on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/util-linux-2.12r/debian/patches/10amd64-rdev.dpatch 
./debian/patches/10amd64-rdev.dpatch
--- ../tmp-orig/util-linux-2.12r/debian/patches/10amd64-rdev.dpatch     
2006-11-03 09:09:06.000000000 +0000
+++ ./debian/patches/10amd64-rdev.dpatch        2006-11-03 09:07:57.000000000 
+0000
@@ -5,14 +5,15 @@
 ## DP: hacking "architecture detection" to get rdev on amd64 too.
 
 @DPATCH@
---- util-linux/MCONFIG.old     2005-03-02 23:14:51.424457925 +0100
-+++ util-linux/MCONFIG 2005-03-02 23:22:06.749245047 +0100
-@@ -17,7 +17,7 @@
- # Select for CPU i386 if the binaries must be able to run on an intel 386
- # (by default i486 code is generated, see below)
- CPU=$(shell uname -m)
--ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')
-+ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/;s/x86_64/intel/')
+diff -urN ../tmp-orig/util-linux-2.12r/sys-utils/Makefile ./sys-utils/Makefile
+--- ../tmp-orig/util-linux-2.12r/sys-utils/Makefile    2004-11-15 
17:47:47.000000000 +0000
++++ ./sys-utils/Makefile       2006-11-03 09:05:30.000000000 +0000
+@@ -37,7 +37,7 @@
+ endif
+ endif
  
- # If HAVE_PAM is set to "yes", then login, chfn, chsh, and newgrp
- # will use PAM for authentication. Additionally, passwd will not be
+-ifeq "$(ARCH)" "intel"
++ifneq (,findstring("$(ARCH)",intel x86_64))
+ MAN8:=$(MAN8) rdev.8 ramsize.8 rootflags.8 vidmode.8
+ USRSBIN:=$(USRSBIN) rdev
+ endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to