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 <[EMAIL PROTECTED]> > > 28177 dpkg --print-architecture requires gcc > > > > > > Package: xlib6 (main) > > Maintainer: Branden Robinson <[EMAIL PROTECTED]> > > 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 | [EMAIL PROTECTED] | 6 Evelyn Rd | | Jules aka | [EMAIL PROTECTED] | Richmond, Surrey | | Julian Bean | [EMAIL PROTECTED] | TW9 2TF *UK* | +----------------+-------------------------------+---------------------+ | War doesn't demonstrate who's right... just who's left. | | When privacy is outlawed... only the outlaws have privacy. | \----------------------------------------------------------------------/