Hello Jose,

Jose M. Gomez Cama wrote:
> I am trying to compile the toolchain in scientific linux 4, equivalent to 
> redhat 4.

> I am using the ptxdist version 2010.01.0 and the OSELAS.Toolchain version 
> 1.99.3.6.

> There is a problem with ptxdist when it finds the make version 3.80. The 
> solution is to substitute:
> 
> if test $MAJOR_MAKE_VERSION -eq 3 -a $MINOR_MAKE_VERSION -lt 81 -o 
> $MAJOR_MAKE_VERSION -lt 3 ; then
> 
> by
> 
> if test $MAJOR_MAKE_VERSION -eq 2 -a $MINOR_MAKE_VERSION -lt 81 -o 
> $MAJOR_MAKE_VERSION -lt 3 ; then

There are some packages in ptxdist which use GNU make extensions which
are available with gnu make >= 3.81.

Please download a recent make from gnu.org, e.g.:
http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.bz2, extract, ./configure;
make; make install

If you're admin on that machine you probably want to install the new
make into /usr/local, if you don't have admin rights you should install
it into your home directory....this is done with:

./configure --prefix=/home/jose/make; make; make install

put /home/jose/make/bin into PATH:

export PATH=/home/jose/make/bin:$PATH

Put that into you .bashrc

> Then I have found a problem with readlink
> 
> ptxdist select 
> ptxconfigs/arm-1136jfs-linux-gnueabi_gcc-4.3.2_glibc-2.8_binutils-2.19_kernel-2.6.27-sanitized.ptxconfig
>  
> readlink: invalid option -- e
> Try `readlink --help' for more information.
> info: selected ptxconfig:
>       
> 'ptxconfigs/arm-1136jfs-linux-gnueabi_gcc-4.3.2_glibc-2.8_binutils-2.19_kernel-2.6.27-sanitized.ptxconfig'

To fix this problem, please try the attached patch.

Cheers, Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
From 173b834f7443c8c53305a5d5c45e7517dc6c236a Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <[email protected]>
Date: Sat, 26 Dec 2009 21:04:02 +0100
Subject: [PATCH] [ptxdist] convert readlink -e -> readlink -f

Signed-off-by: Marc Kleine-Budde <[email protected]>
---
 bin/ptxdist           |    8 ++++----
 scripts/libptxdist.sh |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin/ptxdist b/bin/ptxdist
index 2d780d7..fb27a1e 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -42,7 +42,7 @@ menu_select() {
 # le menu
 #
 menu() {
-	local ptxconfig="$(readlink -e "${PTXDIST_PTXCONFIG}")"
+	local ptxconfig="$(readlink -f "${PTXDIST_PTXCONFIG}")"
 	ptxconfig="${ptxconfig#${PTXDIST_WORKSPACE}/}"
 
 	local -a menu
@@ -67,7 +67,7 @@ menu() {
 
 	local platform="$(ptxd_get_ptxconf PTXCONF_PLATFORM)"
 	if [ -z "${platform}" -a -e "${PTXDIST_PLATFORMCONFIG}" ]; then
-		platform="$(readlink -e "${PTXDIST_PLATFORMCONFIG}")"
+		platform="$(readlink -f "${PTXDIST_PLATFORMCONFIG}")"
 		platform="${platform#${PTXDIST_WORKSPACE}/}"
 	fi
 
@@ -925,7 +925,7 @@ clean() {
 		"${PTXDIST_PLATFORMCONFIG}" \
 		"${PTXDIST_COLLECTIONCONFIG}" \
 		; do
-		local cfg="$(readlink -e "${cfg}")"
+		local cfg="$(readlink -f "${cfg}")"
 		if [ ${?} -ne 0 -a -e "${cfg}.old" ]; then
 			rm -f -- "${cfg}.old"
 		fi
@@ -1396,7 +1396,7 @@ do_select()
 	local type="${1}"
 	local file="${2}"
 	local dest_ptr="PTXDIST_$(echo "${type}" | tr 'a-z' 'A-Z')_DEFAULT"
-	local dest_file="$(readlink -e "${!dest_ptr}")"
+	local dest_file="$(readlink -f "${!dest_ptr}")"
 	local magic="PTXCONF__${type}_MAGIC__=y"
 
 	check_nonstandard "${type}" || return
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 1acd313..7c3ccd8 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -28,7 +28,7 @@ ptxd_dialog_fselect() {
 	exec 4>&1
 	while [ -d "${_select}" -o \! -e "${_select}" ]; do
 		# FIXME take care about real links
-		_select="$(readlink -e ${_select})"
+		_select="$(readlink -f ${_select})"
 		_select="${_select}/$(eval ${PTX_DIALOG} \
 			--clear \
 			--output-fd 3 \
@@ -324,7 +324,7 @@ ptxd_kconfig() {
 	if [ ${retval} -eq 0 -a "${copy_back}" = "true" ]; then
 		cp -- .config "${file_dotconfig}" || return
 		if [ -f .config.old ]; then
-			cp -- .config.old "$(readlink -e "${file_dotconfig}").old" || return
+			cp -- .config.old "$(readlink -f "${file_dotconfig}").old" || return
 		fi
 	fi
 
-- 
1.7.0

Attachment: signature.asc
Description: OpenPGP digital signature

--
ptxdist mailing list
[email protected]

Reply via email to