Errors with last merge (manual patching)

Misc fixes from Dan McGee <dpmcgee@gmail.com>
This commit is contained in:
Aaron Griffin 2006-12-21 19:11:22 +00:00
parent 77b4d0d013
commit 7dacc70b77
2 changed files with 48 additions and 59 deletions

View file

@ -57,7 +57,7 @@ NOLIBTOOL=0
NOEMPTYDIRS=0
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
+#-- Info and doc directories to be removed
#-- Info and doc directories to be removed
DOC_DIRS=(usr/{,share/}{info,doc} opt/gnome/{,share/}{info,doc,gtk-doc})

View file

@ -293,6 +293,7 @@ usage() {
ARGLIST=$@
#Source user-specific makepkg.conf overrides
if [ -f /etc/makepkg.conf ]; then
source /etc/makepkg.conf
else
@ -384,16 +385,6 @@ if [ "$DEP_SUDO" = "1" -a ! "$(type -p sudo)" ]; then
exit 1
fi
# TODO: is this necessary?
# convert a (possibly) relative path to absolute
cd $PKGDEST 2>/dev/null
if [ $? -ne 0 ]; then
error "Package destination directory does not exist or permission denied."
exit 1
fi
PKGDEST=$(pwd)
cd $OLDPWD
if [ "$CLEANCACHE" = "1" ]; then
#fix flyspray feature request #5223
if [ -n "$SRCDEST" ]; then
@ -503,7 +494,9 @@ msg "Making package: $pkgname $pkgver-$pkgrel ($(date))"
unset deplist makedeplist
# fix flyspray bug #5973
if [ $(type -p pacman) -a "$NODEPS" = "0" -a "$GENINTEG" = "0" -a "$NOBUILD" = "0" ]; then
if [ "$NODEPS" = "1" -o "$GENINTEG" = "1" -o "$NOBUILD" = "1" ]; then
warning "skipping dependecy checks"
elif [ $(type -p pacman) ]; then
msg "Checking Runtime Dependencies..."
deplist=$(checkdeps ${depends[@]})
handledeps $deplist
@ -522,10 +515,6 @@ if [ $(type -p pacman) -a "$NODEPS" = "0" -a "$GENINTEG" = "0" -a "$NOBUILD" = "
if [ $? -gt 0 ]; then
exit 1
fi
elif [ "$GENINTEG" = "1" -o "$NOBUILD" = "1" ]; then
msg "skipping dependency checks."
elif [ "$NODEPS" = "1" ]; then
warning "skipping dependency checks."
else
warning "pacman was not found in PATH. skipping dependency checks."
fi
@ -585,7 +574,7 @@ for netfile in ${source[@]}; do
fi
done
if [ "$NOEXTRACT" = "1" -o "$REPKG" ]; then
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
warning "Skipping source integrity checks -- using existing src/ tree"
else
for integ in ${INTEGRITY_CHECK[@]}; do
@ -704,14 +693,19 @@ else
fi
fi
done
fi
if [ "$REPKG" = "0" ]; then
if [ "$EUID" = "0" ]; then
# chown all source files to root.root
chown -R root.root $startdir/src
fi
fi
if [ "$NOBUILD" = "1" ]; then
msg "Sources are ready."
exit 0
elif [ "$REPKG" = "1" ]; then
warning "Skipping build"
else
# check for existing pkg directory
if [ -d $startdir/pkg ]; then
msg "Removing existing pkg/ directory..."
@ -719,11 +713,6 @@ if [ "$REPKG" = "0" ]; then
fi
mkdir -p $startdir/pkg
if [ "$NOBUILD" = "1" ]; then
msg "Sources are ready."
exit 0
fi
# use distcc if requested
if [ "$USE_DISTCC" = "y" ]; then
[ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH
@ -810,7 +799,7 @@ done
cd $startdir
# strip binaries
if [ ! "$(check_option NOSTRIP)" -a "$NOSTIP" = "0" ]; then
if [ ! "$(check_option NOSTRIP)" -a "$NOSTRIP" = "0" ]; then
msg "Stripping debugging symbols from libraries..."
find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not -name "*.exe" \
-exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \