Re: Troubles in a multiple choice
Stefan Fiedler <[email protected]> Wed, 15 Nov 2006 18:15:31 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
On 15.11.2006 16:00:25, Luca wrote: > Good afternoon! > > Some bad news, it seemed to work but... > > In the glibc options I added (some duplicates, just to try): > > text 'Select your timezone' ROCKCFG_PKG_GLIBC_TZ > text 'Select your locale' ROCKCFG_PKG_GLIBC_LOCALE > > Comment 'Choose your timezone' > > CFGTEMP_PKG_GLIBC_TZ=`grep "$1/" /usr/share/zoneinfo/zone.tab | while > read a b timezone c ; do echo "$timezone $timezone" ; done ` > > choice ROCKCFG_PKG_GLIBC_TIMEZONE Factory \ $CFGTEMP_PKG_GLIBC_TZ > > Result of glibc options is: > > <*> Enable profile library > <glibc25> Use glibc-2.5 > <Europe/Rome> Select your timezone /* The text one*/ > <it_IT.UTF-8> Select your locale /* The text one*/ > ^@ > Choose your timezone > ?Factory? /* The choice one*/ > > And in the resultant config file: > export ROCKCFG_PKG_GLIBC_ENABLE_PROFILE='1' > export ROCKCFG_PKG_GLIBC_BRANCH='glibc25' > export ROCKCFG_PKG_GLIBC_TZ='Europe/Rome' > export ROCKCFG_PKG_GLIBC_LOCALE=' it_IT.UTF-8' > export ROCKCFG_PKG_GLIBC_TIMEZONE='Factory' > export ROCKCFG_PKG_GLIBC_TIMEZONE='Factory' > Hi Luca! There's only a problem with the time zone choice afaik. CFGTEMP_PKG_GLIBC_TZ contains a newline separated list, while it should contain a space separated; also use grep to filter out comments: CFGTEMP_PKG_GLIBC_TZ="Factory Factory_Setting \ `grep -v "^#" /usr/share/zoneinfo/zone.tab | \ while read a a tz desc ; do echo "$tz $tz" ; done | sort | tr '\n' ' '`" Also change the following line to: choice ROCKCFG_PKG_GLIBC_TIMEZONE Factory $CFGTEMP_PKG_GLIBC_TZ Then it should work as expected. Note that the default value has to be in the list too. Also description text must not contain spaces, used underscores instead. With best regards, Stefan Fiedler