Ticket #57 (closed task: fixed)

Opened 12 years ago

Last modified 12 years ago

setting CLFS_HOST

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


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

comment:1 Changed 12 years ago by jciccone

  • Priority changed from major to critical
  • Milestone set to CLFS 1.0.0

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

comment:2 Changed 12 years ago by jciccone

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:3 Changed 12 years ago by jim

  • Version changed from unstable to 1.0.0
Note: See TracTickets for help on using tickets.