Em 15-02-2014 10:41, akhiezer escreveu:
>> Date: Sat, 15 Feb 2014 09:58:02 -0300
>> From: Fernando de Oliveira <fam...@yahoo.com.br>
>> To: BLFS Support List <blfs-support@linuxfromscratch.org>
>> Subject: Re: [blfs-support] Iced Tea 2.4.1 and iced tea 2.4.5 sed unknown
>>  option to `s'
>>

>>
>> Many thanks again, akh. Read quickly your mail (obliged to do other
>> things, as I wrote earlier), and seems very good analysis indeed.
>>
>>
>> But still spent some time with this, reading the config.log (it is fast
>> to do it to this point).
>>
>> In one machine, I have:
>>
>> {{{
>> DIST_ID='Custom build (Sat Feb 15 08:33:10 BRT 2014)'
>> DIST_NAME='linux-gnu'
>> }}}
>>
>> In another:
>>
>> {{{
>> DIST_ID='Linux From Scratch, package '\''7u51-2.4.4-blfs'\'''
>> DIST_NAME='Linux From Scratch'
>> }}}
>>
>> First one does not have lsb_release, second one does:
>>
>> $ env LC_ALL=C which lsb_release
>> which: no lsb_release in
>> (/usr/local/bin:/bin:/sbin:/usr/sbin:/opt/gnome/bin:/opt/ant/bin:/opt/openjdk/bin:/opt/qt/bin:/usr/bin:/usr/X11R6/bin)
>>
>> $ grep -ri linux-gnu /etc/ 2>/dev/null
>> /etc/gtk-2.0/gtk.immodules:# ModulesPath =
>> /root/.gtk-2.0/2.10.0/i686-pc-linux-gnu/immodules:/root/.gtk-2.0/2.10.0/immodules:/root/.gtk-2.0/i686-pc-linux-gnu/immodules:/root/.gtk-2.0/immodules:/usr/lib/gtk-2.0/2.10.0/i686-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/2.10.0/immodules:/usr/lib/gtk-2.0/i686-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/immodules
>>
>> I cannot believe that it is taking
>>
>> Second machine:
>>
>> $ which lsb_release
>> /usr/bin/lsb_release
>>
>> $ lsb_release -ds
>> "Linux From Scratch"
>>
>>
>> Configure search for DIST_NAME in:
>>
>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking build identification" >&5
>> $as_echo_n "checking build identification... " >&6; }
>> if test -n "$LSB_RELEASE"; then
>>   lsb_info="$($LSB_RELEASE -ds | sed 's/^"//;s/"$//')"
>>   if test "x$PKGVERSION" = "xnone"; then
>>     DIST_ID="Built on $lsb_info ($(date))"
>>   else
>>     DIST_ID="$lsb_info, package $PKGVERSION"
>>   fi
>>   DIST_NAME="$($LSB_RELEASE -is | sed 's/^"//;s/"$//')"
>> else
>>   DIST_ID="Custom build ($(date))"
>>   DIST_NAME="$build_os"
>> fi
>>
>> Thus, it should be able to find using the variable build_os, which seems
>> to be defined in configure at:
>>
>> # Remember, the first character of IFS is used to create $*,
>> # except with old shells:
>> build_os=$*
>>
>> Value is defined everywhere, including Makefile, only after configure is
>> run:
>>
>> Makefile:build_os = linux-gnu
>> config.status:S["build_os"]="linux-gnu"
>> config.log:build_os='linux-gnu'
>>
>> I still do not understand how it gets this value.
>>
>> I have to stop, now.
>>
> 
> 
> (Yes, likewise here doing this in parallel.)
> 
> 
> I think that it looks like Christopher (OP) config _is_ finding and
> executing 'lsb_release -is' (& likely also 'lsb_release -ds'), and
> it's the 'lsb_release -is' that's returning the 'n/a' - iirc 
> usually from/via '/etc/lsb_release' or similar.
> 
> 
> Christopher, can you confirm if your build environment does have
> 'lsb_release -is', and if so what does it output? And similarly for
> 'lsb_release -ds' ?
> 
> 
> For ref:
> ----
> $ grep -r 'n/a' ./lsb-release-1.4/
> ./lsb-release-1.4/lsb_release:MSG_NA="n/a"
> ./lsb-release-1.4/lsb_release:        echo -e "$MSG_LSBVER$LSB_VERSION"       
>    # at least "n/a"
> ./lsb-release-1.4/lsb_release.examples:LSB Version:    n/a
> $
> $ grep -r MSG_NA ./lsb-release-1.4/
> ./lsb-release-1.4/lsb_release:MSG_NA="n/a"
> ./lsb-release-1.4/lsb_release:    [ -z "$LSB_VERSION" ] && LSB_VERSION=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_ID" ] && 
> DISTRIB_ID=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_RELEASE" ] && 
> DISTRIB_RELEASE=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_CODENAME" ] && 
> DISTRIB_CODENAME=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_ID" ] && 
> DISTRIB_ID=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_RELEASE" ] && 
> DISTRIB_RELEASE=$MSG_NA
> ./lsb-release-1.4/lsb_release:            [ -z "$DISTRIB_CODENAME" ] && 
> DISTRIB_CODENAME=$MSG_NA
> ./lsb-release-1.4/lsb_release:            DISTRIB_ID=$MSG_NA
> ./lsb-release-1.4/lsb_release:            && DISTRIB_RELEASE=$MSG_NA
> ./lsb-release-1.4/lsb_release:            && DISTRIB_CODENAME=$MSG_NA
> $
> ----
> 
> 
> 
> rgds,
> akh

I see, now. Thanks. Hope this will lead to solve his problem in a clean way.


-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to