[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2500: emacs and architecture dependencies



Hi Jan,
sorry, as your reply went only to debian-bugs, i have not seen it
up until now, when i looked at the bug-report-logs in the WWW.

please reply (not only, but also ;-)) to
menden@informatik.tu-muenchen.de

From: Ian Jackson <ian@chiark.chu.cam.ac.uk>
> Juergen Menden writes ("Bug#2500: (no subject)"):
> ...
> > this patch is needed to make the debian.rules file
> > arch-independend. at least it should not change anything
> > on intel's, but it makes the emacs compile (and run ;-)
> > on m68k-linux.
>
> dpkg 1.1.1elf and later has a `--print-architecture' option that
> prints i386 on 386/486/Pentium &c.
>
> Is this any help here ?  Its output is what should appear in the
> Architecture control file field.

not really. the problem is, that the debian.rules file forces
./configure to configure the sources for an i486-debian-linux
host, regardless on which host it actually runs. I don't know
what any output of dpkg might help here.

another problem arises: what value should be inserted in an
architecture field in the control file? for m68k this is easy,
but on intels this might lead to two different arch-values in your
debian.rules file. i486 for ./configure, i386 for the arch-field.
another thing is the return of $(shell arch) or $(shell uname -m)
or whatever else is used to get the architecture of the building
machine.

the part in the debian.rules file might then look as:
  # uname returns i[345]86. only one of them is known by ./configure
  ConfigIntelArch=i486
  # the architecture known by the Arch-field in the control file
  ControlIntelArch=i386

  # get the config architecture name
  ConfigArch=`uname -m | sed -e 's/i[345]86/$(ConfigIntelArch)/'`
  # get the control file architecture name
  ControlArch=`uname -m | sed -e 's/i[345]86/$(ControlIntelArch)/'`

i'm not sure if this is better or worse. what is the advantage
of adding such a field in the control file?

jjm

--
Juergen Menden                   | Disclaimer: The opinions expressed by me,
tel:    +49 (89) 2051 - 2387     +-----------+ are (usually) not the opinions
e-mail: menden@informatik.tu-muenchen.de     | of anyone else on this planet.

Hi! I'm a .signature virus!  Add me to your .signature and join in the fun!



Reply to: