Changeset bdf9a994 in rtems


Ignore:
Timestamp:
Jun 6, 2000, 1:44:18 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
259397cc
Parents:
19f4540e
Message:

Patch from Ralf Corsepius <corsepiu@…>:

gccnewlib.add applies find -path=... which might cause files.gcc
getting corrupted.

This seems to be gnu-find specific and doesn't seem to be supported
by Solaris find (/usr/bin/find). I didn't see this because I use
gnu-find even under Solaris (/amd/bin/find under our Solaris
installation).
This causes the first call to find in gccnewlib.add to deliver
incorrect results and may result into incorrectly setting up the
files.* files, esp. files.gcc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/gccnewlib/gccnewlib.add

    r19f4540e rbdf9a994  
    100100
    101101  # Collect multilib subdirectories
    102   TGTDIR="$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"
    103   find $TGTDIR \
    104     \( -type d -a ! -path "$TGTDIR/include*" \) -print | \
    105     sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> dirs
     102  TGTDIR="/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"
     103  f=`gcc/xgcc --print-multi-lib | sed -e 's,;.*$,,'`
     104  for i in $f; do
     105    case $i in
     106    \.) echo "%dir ${TGTDIR}" >> dirs
     107      ;;
     108    *)  echo "%dir ${TGTDIR}/$i" >> dirs
     109      ;;
     110    esac
     111  done
    106112
    107113  # Collect files to go into different packages
     
    112118  cp dirs files.gcj
    113119
    114   f=`find $TGTDIR ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
     120  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
    115121  for i in $f; do
    116122    case $i in
Note: See TracChangeset for help on using the changeset viewer.