ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] iptables and bdm/gdb build the MPC8349mITX


From: Stuart Hughes
Subject: Re: [Ltib] iptables and bdm/gdb build the MPC8349mITX
Date: Sat, 06 Jan 2007 12:42:27 +0000

Hi Mark,

Thanks for that tip, maybe this also works for uClibc?  I suspect the
normal /etc/localtime symlink may not.

It would be nice to figure something that works for all and put it int
he ltib config section.

Regards, Stuart

On Fri, 2007-01-05 at 11:27 -0800, Mark Lacas wrote:
> Hello,
>    Not sure if this is germane to your use case.
> 
> I got the timezone stuff to work with the BSP without adding a bunch  
> of stuff.
> 
> In /etc/profile I put:
> 
> TZ=PST8PDT
> export TZ
> 
> Also in my user directory .profile I put :
> 
> TZ=PST8PDT
> export TZ
> 
> All my times now show up in PST without any other additions or changes.
> 
> -ml
> 
> 
> On Jan 5, 2007, at 6:36 AM, Stuart Hughes wrote:
> 
> > Hi Tobias,
> >
> > You have it more or less right.  Putting the symlinkery in
> > sysconfig.spec is okay, but the selection process stuff should go into
> > config/userspace/sysconfig.lkc
> >
> > So maybe something like this would work:
> >
> > In sysconfig.lkc (put if after the time setup?):
> >
> > config SYSCFG_TIMEZONE
> >     depends PKG_TIMEZONE
> >     default "GMT"
> >     string "timezone configuration"
> >     help
> >        Set this to your timezone located in "/usr/share/zoneinfo".
> >        A symbolic link will be created from "/etc/localtime" to
> >        the selected timezone.
> >
> > and then in: sysconfig.spec (after the qtopia if/then/fi stuff):
> >
> > if [ "$SYSCFG_TIMEZONE" ]; then
> >     ln -s /usr/share/zoneinfo/$SYSCFG_TIMEZONE $RPM_BUILD_ROOT/% 
> > {pfx}/etc/localtime
> > fi
> >
> > You should probably also add:  SYSCFG_TIMEZONE to the list of items in
> > the $config_deps hash for the entry PKG_SYSCONFIG.  What this does is
> > force the package to build/install if that config item gets changed.
> >
> > Also note that for uClibc this may not work the same way IIRC.  If you
> > get it working and check it in, can you let me know.
> >
> > Regards, Stuart
> >
> >>     ln -s $PATH_TO_ROOT_DIR/$SYSCFG_TIMEZONE $PATH_TO_ROOT_DIR/etc/ 
> >> localtime
> >> fi
> >
> > On Fri, 2007-01-05 at 10:17 +0100, Tobias Simon wrote:
> >> Hello Group,
> >>
> >> I am trying to bring the "/etc/localtime" symlink into the  
> >> sysconfig package.
> >> My first question is: is this the right place to do something like  
> >> that (where
> >> $SYSCFG_TIMEZONE is a path):
> >>
> >> # timezone
> >> if [ "$SYSCFG_TIMEZONE" ]; then
> >>     ln -s $PATH_TO_ROOT_DIR/$SYSCFG_TIMEZONE $PATH_TO_ROOT_DIR/etc/ 
> >> localtime
> >> fi
> >>
> >> ... where $PATH_TO_ROOT_DIR is a placeholder. Unfortunately I do  
> >> not know if
> >> there is a environment variable like that.
> >>
> >> In "config/userspace/packages.lkc" I added the following:
> >> config SYSCFG_TIMEZONE
> >>     depends PKG_TIMEZONE
> >>     default "/usr/share/zoneinfo/GMT"
> >>     string "timezone configuration"
> >>     help
> >>        Set this to your timezone located in "/usr/share/zoneinfo".
> >>        A symbolic link will be created from "/etc/localtime" to
> >>        the selected timezone.
> >>
> >> I hope anyone can help me with this.
> >>
> >>
> >> Regards,
> >> Tobi
> >>
> >
> >
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
> >
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]