Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#57 closed task (fixed)

setting CLFS_HOST

Reported by: Joe Ciccone Owned by: clfs-commits@…
Priority: critical Milestone: CLFS Standard 1.0.0
Component: BOOK Version: CLFS Standard 1.0.0
Keywords: Cc:

Description

Currently the book uses:

export CLFS_HOST="$(echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g')"

I think we should be using this instead:

export CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"

Advantages of the proposed command, It will replace the 2nd field where the delimeter is - with cross.

Change History (3)

comment:1 Changed 13 years ago by Joe Ciccone

Milestone: CLFS 1.0.0
Priority: majorcritical

Changing the status of this ticket is critical because some of the host distros will not be "-unknown-" or "-pc-".

comment:2 Changed 13 years ago by Joe Ciccone

Resolution: fixed
Status: newclosed

Fixed in r2149. by changing the command to the second in the description.

comment:3 Changed 13 years ago by Jim Gifford

Version: unstable1.0.0
Note: See TracTickets for help on using tickets.