mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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.
This commit is contained in:
@@ -99,10 +99,16 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
|
|||||||
echo "%dir /opt/rtems/lib/gcc-lib/@target_alias@" >> dirs ;
|
echo "%dir /opt/rtems/lib/gcc-lib/@target_alias@" >> dirs ;
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
# Collect multilib subdirectories
|
||||||
TGTDIR="$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"
|
TGTDIR="/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"
|
||||||
find $TGTDIR \
|
f=`gcc/xgcc --print-multi-lib | sed -e 's,;.*$,,'`
|
||||||
\( -type d -a ! -path "$TGTDIR/include*" \) -print | \
|
for i in $f; do
|
||||||
sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> dirs
|
case $i in
|
||||||
|
\.) echo "%dir ${TGTDIR}" >> dirs
|
||||||
|
;;
|
||||||
|
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
# Collect files to go into different packages
|
# Collect files to go into different packages
|
||||||
cp dirs files.chill
|
cp dirs files.chill
|
||||||
@@ -111,7 +117,7 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
|
|||||||
cp dirs files.objc
|
cp dirs files.objc
|
||||||
cp dirs files.gcj
|
cp dirs files.gcj
|
||||||
|
|
||||||
f=`find $TGTDIR ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||||
for i in $f; do
|
for i in $f; do
|
||||||
case $i in
|
case $i in
|
||||||
*chill*) echo "$i" >> files.chill ;;
|
*chill*) echo "$i" >> files.chill ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user