Package: openafs-modules-source
Version: 1.4.7.dfsg1-4
Severity: normal
Tags: patch

I have found that with 2 small changes I can cross compile
openafs-modules-source on i386 between 32bits and 64bits.

Follow the diff of the 2 small changes

[EMAIL PROTECTED]>diff -u rules ../../../rules 
--- rules       2008-07-14 02:14:26.000000000 +0000
+++ ../../../rules      2008-07-24 14:28:48.000000000 +0000
@@ -41,7 +41,7 @@
 export KVERS
 export KPKG_DEST_DIR
 
-SYS_NAME  := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" sh debian/sysname)
+SYS_NAME  := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" ARCH="$(ARCH)" sh 
debian/sysname)
 
 package    = openafs
 modulepkg := openafs-modules-$(KVERS)${INT_SUBARCH}
53 0  Qui Jul 24 15:30:32 CWD=/usr/src/modules/openafs/debian
[EMAIL PROTECTED]>diff -u sysname  ../../../sysname 
--- sysname     2008-07-14 02:14:26.000000000 +0000
+++ ../../../sysname    2008-07-24 14:28:48.000000000 +0000
@@ -7,7 +7,7 @@
     exit 1
 fi
 
-case `uname -m` in
+case ${ARCH:-`uname -m`} in
 alpha)
     case $KVERS in
     2.2*)
53 0  Qui Jul 24 15:30:43 CWD=/usr/src/modules/openafs/debian

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

    Jose Calhariz


Kernel: Linux 2.6.18-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openafs-modules-source depends on:
ii  bison                       1:2.3.dfsg-5 A parser generator that is compati
ii  debhelper                   7.0.16       helper programs for debian/rules
ii  flex                        2.5.35-2     A fast lexical analyzer generator.
ii  kernel-package              11.001       A utility for building Linux kerne
ii  module-assistant            0.10.11.0    tool to make module package creati

openafs-modules-source recommends no packages.

openafs-modules-source suggests no packages.

-- no debconf information



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

Reply via email to