Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
a36da05ba7
7 changed files with 45 additions and 3 deletions
  1. +6
    -0
      package/base/bdb/pkgmapper.in
  2. +5
    -0
      package/base/gcc/pkgmapper.in
  3. +5
    -0
      package/base/glibc/pkgmapper.in
  4. +5
    -0
      package/base/linux/pkgmapper.in
  5. +5
    -0
      package/rene/subversion/pkgmapper.in
  6. +7
    -2
      scripts/Build-Pkg
  7. +12
    -1
      scripts/Build-Tools

+ 6
- 0
package/base/bdb/pkgmapper.in

@ -0,0 +1,6 @@
case "$pkg" in
bdb33|bdb4[012])
pkg=bdb ;;
esac

+ 5
- 0
package/base/gcc/pkgmapper.in

@ -0,0 +1,5 @@
if [ -z "${pkg##gcc[23]*}" ]; then
pkg=gcc
fi

+ 5
- 0
package/base/glibc/pkgmapper.in

@ -0,0 +1,5 @@
if [ -z "${pkg##glibc2*}" ]; then
pkg=glibc
fi

+ 5
- 0
package/base/linux/pkgmapper.in

@ -0,0 +1,5 @@
if [ -z "${pkg##linux2*}" ]; then
pkg=linux
fi

+ 5
- 0
package/rene/subversion/pkgmapper.in

@ -0,0 +1,5 @@
if [ "$pkg" = subversion-static ]; then
pkg=subversion
fi

+ 7
- 2
scripts/Build-Pkg

@ -134,8 +134,13 @@ if [ $# -gt 1 ] ; then
done
exit 0
fi
pkg="${1%=*}" ; xpkg="${1#*=}"
builddir="$base/src.$pkg.$id"
# parameter 1 has $pkg=$xpkg
pkg="${1%=*}"; xpkg="${1#*=}"
builddir="$base/src.$xpkg.$id"
# get real pkg name for mapped packages
. build/$ROCKCFG_ID/ROCK/$toolsdir/lib/pkgmapper
if [ "$chroot" = 1 ] ; then

+ 12
- 1
scripts/Build-Tools

@ -279,7 +279,6 @@ EOT
# Create pkg_*_{pre,post}.conf files
#
rm -f build/$ROCKCFG_ID/ROCK/$toolsdir/lib/pkg_*_{pre,post}.conf
echo_status "Creating $toolsdir/lib/pkg_*_{pre,post}.conf"
for x in `grep "^X" config/$config/packages | cut -d ' ' -f 4,5 | tr ' ' '/'`; do
@ -290,6 +289,18 @@ EOT
done
done
# Create pkgmapper script
#
bash scripts/xfind.sh \
architecture/$arch/. package/. target/$target/. misc/ -type f \
-name 'pkgmapper.in' \
-printf '%f\t%p\n' | sort | awk '{ $1="."; print; }' \
> build/$ROCKCFG_ID/ROCK/$toolsdir/lib/pkgmapper.$$
mv build/$ROCKCFG_ID/ROCK/$toolsdir/lib/pkgmapper.$$ \
build/$ROCKCFG_ID/ROCK/$toolsdir/lib/pkgmapper
# Create cmd_wrapper config
#
echo -e "${wrappervars// /\n}" | grep . | sort -u |
while read x ; do
echo "export ${x}_WRAPPER_DEBUG=0 ${x}_WRAPPER_BYPASS=0"

Loading…
Cancel
Save