Errors with last merge (manual patching)
Misc fixes from Dan McGee <dpmcgee@gmail.com>
This commit is contained in:
parent
77b4d0d013
commit
7dacc70b77
2 changed files with 48 additions and 59 deletions
|
@ -57,7 +57,7 @@ NOLIBTOOL=0
|
||||||
NOEMPTYDIRS=0
|
NOEMPTYDIRS=0
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||||
INTEGRITY_CHECK=(md5)
|
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})
|
DOC_DIRS=(usr/{,share/}{info,doc} opt/gnome/{,share/}{info,doc,gtk-doc})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -293,6 +293,7 @@ usage() {
|
||||||
|
|
||||||
ARGLIST=$@
|
ARGLIST=$@
|
||||||
|
|
||||||
|
#Source user-specific makepkg.conf overrides
|
||||||
if [ -f /etc/makepkg.conf ]; then
|
if [ -f /etc/makepkg.conf ]; then
|
||||||
source /etc/makepkg.conf
|
source /etc/makepkg.conf
|
||||||
else
|
else
|
||||||
|
@ -384,16 +385,6 @@ if [ "$DEP_SUDO" = "1" -a ! "$(type -p sudo)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [ "$CLEANCACHE" = "1" ]; then
|
||||||
#fix flyspray feature request #5223
|
#fix flyspray feature request #5223
|
||||||
if [ -n "$SRCDEST" ]; then
|
if [ -n "$SRCDEST" ]; then
|
||||||
|
@ -503,7 +494,9 @@ msg "Making package: $pkgname $pkgver-$pkgrel ($(date))"
|
||||||
|
|
||||||
unset deplist makedeplist
|
unset deplist makedeplist
|
||||||
# fix flyspray bug #5973
|
# 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..."
|
msg "Checking Runtime Dependencies..."
|
||||||
deplist=$(checkdeps ${depends[@]})
|
deplist=$(checkdeps ${depends[@]})
|
||||||
handledeps $deplist
|
handledeps $deplist
|
||||||
|
@ -522,10 +515,6 @@ if [ $(type -p pacman) -a "$NODEPS" = "0" -a "$GENINTEG" = "0" -a "$NOBUILD" = "
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [ "$GENINTEG" = "1" -o "$NOBUILD" = "1" ]; then
|
|
||||||
msg "skipping dependency checks."
|
|
||||||
elif [ "$NODEPS" = "1" ]; then
|
|
||||||
warning "skipping dependency checks."
|
|
||||||
else
|
else
|
||||||
warning "pacman was not found in PATH. skipping dependency checks."
|
warning "pacman was not found in PATH. skipping dependency checks."
|
||||||
fi
|
fi
|
||||||
|
@ -585,7 +574,7 @@ for netfile in ${source[@]}; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$NOEXTRACT" = "1" -o "$REPKG" ]; then
|
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||||
warning "Skipping source integrity checks -- using existing src/ tree"
|
warning "Skipping source integrity checks -- using existing src/ tree"
|
||||||
else
|
else
|
||||||
for integ in ${INTEGRITY_CHECK[@]}; do
|
for integ in ${INTEGRITY_CHECK[@]}; do
|
||||||
|
@ -704,14 +693,19 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$REPKG" = "0" ]; then
|
|
||||||
if [ "$EUID" = "0" ]; then
|
if [ "$EUID" = "0" ]; then
|
||||||
# chown all source files to root.root
|
# chown all source files to root.root
|
||||||
chown -R root.root $startdir/src
|
chown -R root.root $startdir/src
|
||||||
fi
|
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
|
# check for existing pkg directory
|
||||||
if [ -d $startdir/pkg ]; then
|
if [ -d $startdir/pkg ]; then
|
||||||
msg "Removing existing pkg/ directory..."
|
msg "Removing existing pkg/ directory..."
|
||||||
|
@ -719,11 +713,6 @@ if [ "$REPKG" = "0" ]; then
|
||||||
fi
|
fi
|
||||||
mkdir -p $startdir/pkg
|
mkdir -p $startdir/pkg
|
||||||
|
|
||||||
if [ "$NOBUILD" = "1" ]; then
|
|
||||||
msg "Sources are ready."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use distcc if requested
|
# use distcc if requested
|
||||||
if [ "$USE_DISTCC" = "y" ]; then
|
if [ "$USE_DISTCC" = "y" ]; then
|
||||||
[ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH
|
[ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH
|
||||||
|
@ -810,7 +799,7 @@ done
|
||||||
cd $startdir
|
cd $startdir
|
||||||
|
|
||||||
# strip binaries
|
# strip binaries
|
||||||
if [ ! "$(check_option NOSTRIP)" -a "$NOSTIP" = "0" ]; then
|
if [ ! "$(check_option NOSTRIP)" -a "$NOSTRIP" = "0" ]; then
|
||||||
msg "Stripping debugging symbols from libraries..."
|
msg "Stripping debugging symbols from libraries..."
|
||||||
find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not -name "*.exe" \
|
find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not -name "*.exe" \
|
||||||
-exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \
|
-exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue