[haiku-development] Re: build problems (linux)

  • From: "Bolesław Kulbabiński" <bolekk@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 14 Dec 2007 17:43:21 +0000

2007/12/2, François Revol <revol@xxxxxxx>:
>
> > >
> > > LANG=C svn info .
> > >
> > > (LANG=C svn info . 2> /dev/null || echo Revision: 0) | grep
> > > Revision | awk
> > > '{printf $2}'
> > >
> > > CU, Ingo
> > >
> > >
> > Okay, it's working now,
> > I don't know why but LANG=C wasn't affecting the output of svn info,
> > which
> > was in Polish in my case, and thus grep was unable to find the string
> > "Revision" in it. I changed locales and it helped.
> >
>
> tried
> LC_ALL=C LANG=C svn info ... ?
>
> François.
>
>

Using LC_ALL=C works. Maybe you can change it in Haiku sources?
(I attach a patch which I think does the job but I didn't do anything for
haiku before so I'm not sure if it's enough)

Bolek
Index: build/jam/FileRules
===================================================================
--- build/jam/FileRules (wersja 23122)
+++ build/jam/FileRules (kopia robocza)
@@ -247,7 +247,7 @@
 actions CopySetHaikuRevision1
 {
        $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
-       revision=`(LANG=C svn info $(HAIKU_TOP) 2> /dev/null || echo Revision: 
0) |
+       revision=`(LC_ALL=C svn info $(HAIKU_TOP) 2> /dev/null || echo 
Revision: 0) |
                grep Revision | awk '{printf $2}'`
        $(2[1]) --data $(2[3]) $(1) &&
        $(2[2]) $(1) ${revision}

Other related posts: