Opened 18 years ago

Closed 18 years ago

Last modified 18 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 by Joe Ciccone, 18 years ago

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 by Joe Ciccone, 18 years ago

Resolution: fixed
Status: newclosed

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

comment:3 by Jim Gifford, 18 years ago

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