This is the mail archive of the cygwin-apps@cygwin.com 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]

setup.ini, setup.hint, and update-setup


While setup.exe can handle multi-line "ldesc" entries in setup.ini, the 
update-setup script used to generate that file from the setup.hint's 
will not create the correct results if the hint file has a multi-line 
ldesc entry.

e.g. running update-setup when setup.hint is:
---------------------------
curr 5.2-7
prev 5.2-5a
category Base Libs
requires cygwin libncurses6 terminfo
sdesc "ncurses: libraries for terminal handling (main package)"
ldesc "The curses library routines are a terminal-independent method
of updating character screens with reasonalble optimization. The ncurses
(new curses) library is a freely distributable replacement for the
discontinued 4.4BSD classic curses library.  This package contains
the documentation, static libraries, utility and test programs,
and the header files."
---------------------------

results in a setup.ini entry like this:

---------------------------
@ ncurses
sdesc: "ncurses: libraries for terminal handling (main package)"
ldesc: "The curses library routines are a terminal-independent method
version: 5.2-7
install: latest/ncurses/ncurses-5.2-7.tar.bz2 621191
source:  latest/ncurses/ncurses-5.2-7-src.tar.bz2 1365560
[prev]
version: 5.2-5a
install: latest/ncurses/ncurses-5.2-5a.tar.bz2 529501
source:  latest/ncurses/ncurses-5.2-5a-src.tar.gz 1822746
----------------------------

(Note that only the first line of ldesc was taken, and it's missing the 
trailing quotation mark)

Question:

There are two ways to address this, that I can see:
   1) fix update-setup to deal with multi-line entries
   2) require that all entries fit on a single line -- but it can be 
very long...

I'm all for #2.  Comments?

Oh, and one other thing: update-setup doesn't parse the "category" or 
"requires" entry from the hint file.

--Chuck


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