Ticket #57 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

setting CLFS_HOST

Reported by: jciccone Assigned to: clfs-commits@lists.cross-lfs.org.
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

07/16/06 22:51:13 changed 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-".

07/17/06 04:08:50 changed 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.

09/17/06 18:55:05 changed by jim

  • version changed from unstable to 1.0.0.