This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] quilt-0.43 -- Tool to work with series of patches


On Tue, 7 Feb 2006, Brian Dessent wrote:

> [snip]
> The postinstall/preremove system seems unnecessarily complex.  It
> includes nearly 250 lines of shell script and two manifests to do what
> could be accomplished simply with:
>
> [ ! -f /etc/quilt.quiltrc ] && \
>   cp /etc/defaults/etc/quilt.quiltrc /etc/quilt.quiltrc
>
> and
>
> cmp -s /etc/defaults/etc/quilt.quiltrc /etc/quilt.quiltrc && \
>   rm -f /etc/quilt.quiltrc
>
> ...and by locating the default quiltrc file under /etc/defaults instead
> of stashed away in /usr/share/doc/quilt-<VER>/examples/quilt.quiltrc and
> requiring all that scripting to locate.

Do we already have a package (like _update-info-dir) that takes care of
moving everything from /etc/defaults to the intended locations?  If not,
would such a package be useful (so that you can simply add
/etc/defaults/<pkg>.pkgrc, and then depend on that script)?  Maybe fold
the functionality right into _update-info-dir (since so many packages
already depend on it)?

I may be misremembering, and something like this may already exist, in
which case I'll crawl back under my rock.

> And these scripts have code for printing warnings/messages to stderr but
> all postinstall/preremove scripts run in setup.exe with both stdout and
> stderr connected to /dev/null so this can serve no purpose.

Script output goes to setup.log.full, not /dev/null.  So it's reasonably
useful to have output (to track script progress and print diagnostics), as
long as there aren't gobs and gobs of it.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]