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

Re: dpkg --print-architecture [WAS: Release-critical Bugreport for January 25, 1999]



On Mon, 25 Jan 1999, Marcelo E. Magallon wrote:

> On Mon, Jan 25, 1999 at 12:15:11AM -0600, BugScan reporter wrote:
> 
> > Package: emacs20 (main)
> > Maintainer: Rob Browning <rlb@cs.utexas.edu>
> >   28177  dpkg --print-architecture requires gcc                                 
> > 
> > Package: xlib6 (main)
> > Maintainer: Branden Robinson <branden@debian.org>
> >   31610  xlib6: requires gcc but declares no dependency (dpkg --print-gnu-build-architecture?)
> 
> Aren't this two the same kind of bug?  Having no idea why the maintainer
> chose this particular way to implement this, wouldn't it be easier to put
> this information *on the script* at *compile-time*?
> 
> Something like
> 
> ARCH := $(shell dpkg --print-gnu-build-architecture)
> 
> debian/whatever.postinst: debian/whatever.postinst.in
> 	sed -e 's/@ARCH@/$(ARCH)/' $< > $@

This seems like a workable solution, for slink.

For potato, we will have a new tool, dpkg-architecture, which will solve
this problem more completely (see policy archives).

Jules

/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@jellybean.co.uk         |  6 Evelyn Rd	       |
|  Jules aka     | jules@debian.org              |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@hermes.cam.ac.uk        |  TW9 2TF *UK*       |
+----------------+-------------------------------+---------------------+
|  War doesn't demonstrate who's right... just who's left.             |
|  When privacy is outlawed... only the outlaws have privacy.          |
\----------------------------------------------------------------------/


Reply to: