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

Re: Bug#12869: debmake still uses #!/bin/bash for very simple scripts.



On Mon, 15 Sep 1997, Dale Scheetz wrote:

> On Sat, 13 Sep 1997, Christoph Lameter wrote:
> 
> > >In fact, I'm considering to remove debstd from all my packages if you
> > >insist on not changing debmake.
> >
> Santiago, I would encourage you to do so anyway. As far as I know debmake
> has not become required by policy, and if it ever comes up I will be one
> of the more vocal objectors. I maintain all of my packages without debmake
> and have never had the "control" problems that I have seen folks like
> yourself experience. In my estimation, every bit of functionality should
> be explicitly present in the debian/rules file. That is the proper control
> center for package construction, not debmake.

I must say I like debmake for small packaging up small and easy packages.

However, I ran into big problems with using debstd in the large and
complicated mysql package. (For example, debstd inserts commands in the
postinst script which can not be turned of easily.)

So I converted the debian/rules back from debstd to "explicit commands".
It's much better now. 

I think more people have the same problem: debmake/debstd is good for a
quick start, but later it would be nice to turn it off. That's why I'd
like to have a replacement for debstd with the same functionality except
that it does not execute anything, but outputs the commands that it would
execute (in a way they can be included in the debian/rules with cut and
paste). Of course, I know that this can not work 100% (an automatically
generated script will not like nearly as good as a hand made) but it can
give you a rough idea what debstd does to your problem.

For example, the debstd replacement would print to stdout:

	cp debian/copyright debian/tmp/usr/doc/foo/copyright
	cp debian/postinst debian/tmp/DEBIAN/postinst
	chmod +x debian/tmp/DEBIAN/postinst
	...


Just my 2 cents,

Chris

--                 Christian Schwarz
                    schwarz@monet.m.isar.de, schwarz@schwarz-online.com,
Don't know Perl?     schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
      
Visit                  PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
http://www.perl.com     http://fatman.mathematik.tu-muenchen.de/~schwarz/


Reply to: