From owner-freebsd-ports Sun Sep 20 16:01:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29212 for freebsd-ports-outgoing; Sun, 20 Sep 1998 16:01:02 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA29135 for ; Sun, 20 Sep 1998 16:00:31 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA17770; Sun, 20 Sep 1998 16:00:02 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA28886; Sun, 20 Sep 1998 15:59:33 -0700 (PDT) (envelope-from nobody) Message-Id: <199809202259.PAA28886@hub.freebsd.org> Date: Sun, 20 Sep 1998 15:59:33 -0700 (PDT) From: pfgiffun@bachue.usc.unal.edu.co To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: ports/8004: Update to the crosssco port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8004 >Category: ports >Synopsis: Update to the crosssco port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 20 16:00:02 PDT 1998 >Last-Modified: >Originator: Pedro F. Giffuni >Organization: U. Nacional de Colombia >Release: 2.2.7/Release >Environment: >Description: Some minor changes that HAD to be done... Many thanks to Jerry Hicks for lending a hand (actually updating the port) while I was having network problems. >How-To-Repeat: >Fix: diff -rNu crosssco.orig/Makefile crosssco/Makefile --- crosssco.orig/Makefile Mon Feb 9 06:22:01 1998 +++ crosssco/Makefile Sun Sep 20 11:56:49 1998 @@ -1,28 +1,27 @@ -# New ports collection makefile for: crosssco -# Version required: 1.4 -# Date created: 26 Mar 96 -# Whom: Pedro Giffuni +# New ports collection makefile for: crosssco +# Version required: 1.5 +# Date created: 26 Mar 96 +# Whom: Pedro Giffuni # # $Id: Makefile,v 1.4 1998/02/09 00:36:17 steve Exp $ # -DISTNAME= gcc-2.7.2.2 -PKGNAME= crosssco-1.4 +DISTNAME= gcc-2.7.2.3 +PKGNAME= crosssco-1.5 CATEGORIES= devel MASTER_SITES= ftp://ftp.cygnus.com/pub/newlib/ \ ${MASTER_SITE_GNU} -DISTFILES= binutils-2.8.1.tar.gz \ - ${DISTNAME}.tar.gz \ - newlib-1.8.0.tar.gz - -MAINTAINER= giffunip@asme.org +DISTFILES= newlib-1.8.1.tar.gz \ + binutils-2.8.1.tar.gz \ + ${DISTNAME}.tar.gz PATCH_SITES= ftp://ftp.cygnus.com/pub/embedded/crossgcc/ \ ${MASTER_SITE_GNU} -PATCHFILES= crossgcc-${DISTNAME}.patch \ - gcc-2.7.2.2-2.7.2.3.diff.gz +PATCHFILES= crossgcc-${DISTNAME}.patch PATCH_DIST_STRIP=-p1 --directory=${WRKSRC}/gcc +MAINTAINER= giffunip@asme.org + WRKSRC= ${WRKDIR}/src USE_GMAKE= yes GNU_CONFIGURE= yes @@ -38,7 +37,7 @@ post-extract: (cd ${WRKDIR}/${DISTNAME}; uudecode ${FILESDIR}/$(TARGET).uu) - (cd $(WRKDIR); sh ${SCRIPTDIR}/one-tree-1.4.sh) + (cd $(WRKDIR); sh ${SCRIPTDIR}/one-tree-1.5.sh) # (ln -s ${WRKSRC}/gcc ${WRKDIR}/${DISTNAME}) # This is ONLY recommended if you are NOT planning to use diff -rNu crosssco.orig/files/md5 crosssco/files/md5 --- crosssco.orig/files/md5 Mon Feb 9 06:22:09 1998 +++ crosssco/files/md5 Sun Sep 20 11:22:35 1998 @@ -1,5 +1,4 @@ +MD5 (newlib-1.8.1.tar.gz) = c9a4c44c234d2113af8f2483d94cda00 MD5 (binutils-2.8.1.tar.gz) = 787229d600b8bb58fe7e75ea30445e44 -MD5 (gcc-2.7.2.2.tar.gz) = 39c6383e7d19405bfdcbe3682dbcd04d -MD5 (newlib-1.8.0.tar.gz) = 59c948c481ddbfd7658dd8dbe940d8f0 -MD5 (crossgcc-gcc-2.7.2.2.patch) = 334b66d06bc22a2cba3cb0ceab2142f3 -MD5 (gcc-2.7.2.2-2.7.2.3.diff.gz) = d8aa093fa43ccc91a76c7f71402f1d2c +MD5 (gcc-2.7.2.3.tar.gz) = 9f75fc7a5f13b691aabe8c1b775a4604 +MD5 (crossgcc-gcc-2.7.2.3.patch) = 334b66d06bc22a2cba3cb0ceab2142f3 diff -rNu crosssco.orig/patches/patch-ad crosssco/patches/patch-ad --- crosssco.orig/patches/patch-ad Sun Feb 8 19:36:24 1998 +++ crosssco/patches/patch-ad Sun Sep 20 11:28:35 1998 @@ -55,22 +55,3 @@ # ARFLAGS = rv # -*** libgloss/rs6000/Makefile.in.orig Mon Nov 11 15:22:14 1996 ---- libgloss/rs6000/Makefile.in Sat Jan 24 22:58:02 1998 -*************** -*** 59,65 **** - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - - OBJS = fstat.o getpid.o isatty.o kill.o putnum.o stat.o unlink.o -! CFLAGS = -g - SCRIPTS = ${SIM_SCRIPTS} ${MVME_SCRIPTS} ${EVM_SCRIPTS} - - # Here is all of the simulator stuff ---- 59,65 ---- - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - - OBJS = fstat.o getpid.o isatty.o kill.o putnum.o stat.o unlink.o -! CFLAGS = -O - SCRIPTS = ${SIM_SCRIPTS} ${MVME_SCRIPTS} ${EVM_SCRIPTS} - - # Here is all of the simulator stuff diff -rNu crosssco.orig/scripts/one-tree-1.4.sh crosssco/scripts/one-tree-1.4.sh --- crosssco.orig/scripts/one-tree-1.4.sh Sun Feb 8 19:36:28 1998 +++ crosssco/scripts/one-tree-1.4.sh Wed Dec 31 19:00:00 1969 @@ -1,108 +0,0 @@ -#!/bin/sh -# Create a single source tree from the various development tools. -# Version 1.4. -# Send comments or questions to dje@cygnus.com. -# -# The script needs a binutils, gcc, and newlib release. -# It looks for them in the current directory. -# -# The tree is faked, using symlinks. The goal is to keep it simple while -# providing a working example. -# -# After running this script: -# 1) mkdir build -# 2) cd build -# 3) ../src/configure --host=[your-host] --target=[your-target] [other options] -# 4) make all info -# 5) make install install-info -# -# If you are going to be building with gcc, do this instead. -# -# 1) mkdir build -# 2) cd build -# 3) CC=gcc ../src/configure --host=[your-host] --target=[your-target] [other options] -# 4) make all info CC=gcc -# 5) make install install-info -# -# The CC=gcc on line 4 is present for the sake of older releases -# and doesn't hurt to specify it again (normally, setting CC=gcc while -# running configure is enough). -# -# Building in a separate directory assumes of course that you have a version -# of `make' that understands VPATH. GNU Make is such a critter and -# it is not recommended trying it with other makes. -# -# That's it. - -# For FreeBSD crosscompiler ports: -# "ln -s" was replaced by mv due to obscure building problems - - -# Find source trees for binutils, gcc, and newlib. -for pkg in binutils gcc newlib -do - dir=`ls -1d $pkg-[0-9].[0-9]* | tail -1` - if [ ! -f "$dir/Makefile.in" ] ; then - echo "Unable to find a $pkg source tree." - echo "You need to install a $pkg release in this directory." - exit 1 - fi - - eval $pkg=$dir - echo "Using $pkg release $dir." -done - -# We only support binutils 2.[678].*. -# We will probably support newer ones as well but until one has -# tried it one can't actually know. -case $binutils in -binutils-2.[678] | binutils-2.[678].*) ;; -*) echo "$binutils is not supported by this script." ; exit 1 ;; -esac - -# We only support newlib 1.[78].*. -# We will probably support newer ones as well but until one has -# tried it one can't actually know. -case $newlib in -newlib-1.[78].*) ;; -*) echo "$binutils is not supported by this script." ; exit 1 ;; -esac - -# We only support gcc 2.7.*. -# We will probably support newer ones as well but until one has -# tried it one can't actually know. -case $gcc in -gcc-2.7.*) ;; -*) echo "$gcc is not supported by this script." ; exit 1 ;; -esac - -mkdir src -cd src - -# Most of the toplevel stuff we take from binutils -for f in ../$binutils/* -do - mv $f . -done - -# Create a symlink to the gcc tree. -mv ../$gcc gcc - -# Create symlinks to newlib. -mv ../$newlib/newlib . -mv ../$newlib/libgloss . -mv ../$newlib/COPYING.NEWLIB . - -# Target library configuration has undergone lots of changes recently -# [post binutils-2.6]. If we're using binutils-2.6, use the configury -# from newlib-1.7 [or greater]. - -if [ x"$binutils" = binutils-2.6 ] ; then - for f in configure configure.in config-ml.in Makefile.in - do - rm -f $f - mv ../$newlib/$f . - done -fi - -exit 0 diff -rNu crosssco.orig/scripts/one-tree-1.5.sh crosssco/scripts/one-tree-1.5.sh --- crosssco.orig/scripts/one-tree-1.5.sh Wed Dec 31 19:00:00 1969 +++ crosssco/scripts/one-tree-1.5.sh Sun Sep 20 11:14:21 1998 @@ -0,0 +1,108 @@ +#!/bin/sh +# Create a single source tree from the various development tools. +# Version 1.5. +# Send comments or questions to devans@cygnus.com. +# +# The script needs a binutils, gcc, and newlib release. +# It looks for them in the current directory. +# Syntax: sh ./one-tree-1.5.sh +# +# The tree is faked, using symlinks. The goal is to keep it simple while +# providing a working example. +# +# For FreeBSD crosscompiler ports: +# "ln -s" was replaced by mv due to obscure building problems +# After running this script: +# 1) mkdir build +# 2) cd build +# 3) ../src/configure --target=[your-target] [other options] +# 4) make all info +# 5) make install install-info +# +# If you are going to be building with gcc, do this instead. +# +# 1) mkdir build +# 2) cd build +# 3) CC=gcc ../src/configure --target=[your-target] [other options] +# 4) make all info CC=gcc +# 5) make install install-info +# +# The CC=gcc on line 4 is present for the sake of older releases +# and doesn't hurt to specify it again (normally, setting CC=gcc while +# running configure is enough). +# +# Building in a separate directory assumes of course that you have a version +# of `make' that understands VPATH. GNU Make is such a critter and +# it is not recommended trying it with other makes. +# +# That's it. + +# Find source trees for binutils, gcc, and newlib. +for pkg in binutils gcc newlib +do + dir=`ls -1d $pkg-[0-9].[0-9].[0-9]* | tail -1` + if [ ! -f "$dir/Makefile.in" ] ; then + echo "Unable to find a $pkg source tree." + echo "You need to install a $pkg release in this directory." + exit 1 + fi + + eval $pkg=$dir + echo "Using $pkg release $dir." +done + +# We only support binutils 2.[6789].*. +# We will probably support newer ones as well but until one has +# tried it one can't actually know. +case $binutils in +binutils-2.[6789] | binutils-2.[6789].*) ;; +*) echo "$binutils is not supported by this script." ; exit 1 ;; +esac + +# We only support newlib 1.[78].*. +# We will probably support newer ones as well but until one has +# tried it one can't actually know. +case $newlib in +newlib-1.[78].*) ;; +*) echo "$binutils is not supported by this script." ; exit 1 ;; +esac + +# We only support gcc 2.[78].*. +# We will probably support newer ones as well but until one has +# tried it one can't actually know. +case $gcc in +gcc-2.[78].*) ;; +*) echo "$gcc is not supported by this script." ; exit 1 ;; +esac + +mkdir src +cd src + +# Most of the toplevel stuff we take from binutils +for f in ../$binutils/* +do + mv $f . +done + +# Create a symlink to the gcc tree. +mv ../$gcc gcc + +# Create symlinks to newlib. +mv ../$newlib/newlib . +mv ../$newlib/libgloss . +mv ../$newlib/COPYING.NEWLIB . + +# Target library configuration has undergone lots of changes recently +# [post binutils-2.6]. If we're using binutils-2.6, use the configury +# from newlib-1.7 [or greater]. + +if [ x"$binutils" = binutils-2.6 ] ; then + for f in configure configure.in config-ml.in Makefile.in + do + rm -f $f + mv ../$newlib/$f . + done +fi + +exit 0 + >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message