From d7f8114479246b27dd26bd891f5a95b1508c988f Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Tue, 16 Nov 2021 19:04:47 +0000 Subject: Tue Nov 16 19:04:47 UTC 2021 ap/ksh93-1.0_7ea95b7-x86_64-1.txz: Upgraded. Changed the fetch script to pull the 1.0 branch. Packaged shcomp and man page and additional documentation. Merged some other changes to the build script. Thanks to Martijn Dekker (McDutchie). ap/vim-8.2.3605-x86_64-1.txz: Upgraded. l/imagemagick-7.1.0_14-x86_64-1.txz: Upgraded. l/python-markdown-3.3.5-x86_64-1.txz: Upgraded. xap/seamonkey-2.53.10-x86_64-1.txz: Upgraded. This update contains security fixes and improvements. For more information, see: https://www.seamonkey-project.org/releases/seamonkey2.53.10 (* Security fix *) xap/vim-gvim-8.2.3605-x86_64-1.txz: Upgraded. extra/brltty/brltty-6.4-x86_64-4.txz: Rebuilt. Fixed installation of the Tcl bindings. Thanks to Stuart Winter. extra/tigervnc/tigervnc-1.12.0-x86_64-1.txz: Upgraded. Thanks to alienBOB for the original build script, and to 0XBF and Linux From Scratch for some useful hints on getting this back in shape. --- source/ap/ksh93/doinst.sh | 18 +++ source/ap/ksh93/fetch-ksh.sh | 33 +++--- source/ap/ksh93/ksh93.SlackBuild | 122 +++++++++------------ source/ap/ksh93/slack-desc | 4 +- .../l/python-markdown/python-markdown.SlackBuild | 2 +- 5 files changed, 85 insertions(+), 94 deletions(-) create mode 100644 source/ap/ksh93/doinst.sh (limited to 'source') diff --git a/source/ap/ksh93/doinst.sh b/source/ap/ksh93/doinst.sh new file mode 100644 index 000000000..97599b5e5 --- /dev/null +++ b/source/ap/ksh93/doinst.sh @@ -0,0 +1,18 @@ +# Backup the old copy if we find one, move the new one in place +if [ -f bin/ksh ]; then + mv bin/ksh bin/ksh.old +fi +mv bin/ksh.new bin/ksh +if [ -f bin/ksh.old ]; then + rm -f bin/ksh.old +fi + +# Add entries to /etc/shells if we need them +if [ ! -r etc/shells ] ; then + touch etc/shells + chmod 644 etc/shells +fi + +if ! grep -q "/bin/ksh" etc/shells ; then + echo "/bin/ksh" >> etc/shells +fi diff --git a/source/ap/ksh93/fetch-ksh.sh b/source/ap/ksh93/fetch-ksh.sh index d5c2dc132..956c70690 100755 --- a/source/ap/ksh93/fetch-ksh.sh +++ b/source/ap/ksh93/fetch-ksh.sh @@ -20,31 +20,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Use master (ksh93u+m) branch. Verify first that there's no better branch with +set -o errexit + +# Use 1.0 (ksh93u+m) branch. Verify first that there's no better branch with # "git branch -a" in the unpruned repo. -BRANCH=${1:-master} +BRANCH=${1:-1.0} # Clear download area: rm -rf ksh -# Clone repository: -git clone https://github.com/ksh93/ksh - -# checkout $BRANCH: -( cd ksh - git checkout $BRANCH || exit 1 -) +# Clone repository and check out $BRANCH: +git clone -b "$BRANCH" https://github.com/ksh93/ksh -HEADISAT="$( cd ksh && git log -1 --format=%h )" -DATE="$( cd ksh && git log -1 --format=%cd --date=format:%Y%m%d )" +HEADISAT=$( cd ksh && git log -1 --format=%h ) +VERSION=$(sed -n '/^#define SH_RELEASE_SVER/ { s/.*"\(.*\)".*/\1/; s/-/_/g; p; }' ksh/src/cmd/ksh93/include/version.h) # Cleanup. We're not packing up the whole git repo. -( cd ksh && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null ) -# No need to package these: -( cd ksh && rm -rf lib/package/tgz ) -mv ksh ksh-${DATE}_${HEADISAT} -tar cf ksh-${DATE}_${HEADISAT}.tar ksh-${DATE}_${HEADISAT} -plzip -9 -n 6 -f ksh-${DATE}_${HEADISAT}.tar -rm -rf ksh-${DATE}_${HEADISAT} +rm -rf ksh/.git* +mv ksh "ksh-${BRANCH}_${HEADISAT}" +tar cf "ksh-${BRANCH}_${HEADISAT}.tar" "ksh-${BRANCH}_${HEADISAT}" +plzip -9 -n 6 -f "ksh-${BRANCH}_${HEADISAT}.tar" +rm -rf "ksh-${BRANCH}_${HEADISAT}" echo -echo "ksh branch $BRANCH with HEAD at $HEADISAT packaged as ksh-${DATE}_${HEADISAT}.tar.lz" +echo "ksh branch $BRANCH with HEAD at $HEADISAT packaged as ksh-${BRANCH}_${HEADISAT}.tar.lz" echo diff --git a/source/ap/ksh93/ksh93.SlackBuild b/source/ap/ksh93/ksh93.SlackBuild index b703d6ba2..cb6bac6c8 100755 --- a/source/ap/ksh93/ksh93.SlackBuild +++ b/source/ap/ksh93/ksh93.SlackBuild @@ -45,19 +45,10 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi -# ast considers this an i386 arch, so we'll humor it -# but package with our real arch label... -if [ "$ARCH" = "x86_64" ]; then - SARCH=i386-64 -else - SARCH=i386 -fi - -CWD=$(pwd) -TMP=/tmp/build-ksh93 -PKG=/tmp/package-ksh93 +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM -rm -rf $TMP $PKG +rm -rf $PKG mkdir -p $TMP $PKG cd $TMP @@ -72,32 +63,40 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -/bin/ksh ./bin/package -/bin/ksh ./bin/package make mamake ||: -/bin/ksh ./bin/package make mamake ||: -/bin/ksh ./bin/package make -S || exit 1 - -mkdir -p $PKG/bin -cp arch/linux.$SARCH/bin/ksh $PKG/bin/ksh.new -strip --strip-unneeded $PKG/bin/ksh.new - -#cp arch/linux.$SARCH/lib/libshell.so.1.1 /usr/lib -#cp arch/linux.$SARCH/lib/libshell.a /usr/lib -#cp arch/linux.$SARCH/lib/libast.so.5.4 /usr/lib -#cp arch/linux.$SARCH/lib/libast.a /usr/lib -#cp arch/linux.$SARCH/src/cmd/ksh93/cc-g,-fpic/libshell.so.1.1 /usr/lib -#cp arch/linux.$SARCH/src/cmd/ksh93/cc-g,-fpic/libshell.a /usr/lib -#cp arch/linux.$SARCH/src/lib/libast/libast.so.5.4 /usr/lib -#cp arch/linux.$SARCH/src/cmd/ksh93/cc-g,-fpic/libast.a /usr/lib -#strip /usr/lib/libast.so.5.4 /usr/lib/libshell.so.1.1 +# ast uses its own architecture labels +SARCH=$(bin/package host type) || exit + +bin/package make || exit + +mkdir -p $PKG/bin $PKG/usr/bin +cp arch/$SARCH/bin/ksh $PKG/bin/ksh.new || exit +cp arch/$SARCH/bin/shcomp $PKG/usr/bin/ || exit + +# this may be re-enabled and updated someday when ksh 93u+m +# regains the ability to build and use dynamic libraries... +#cp arch/$SARCH/lib/libshell.so.1.1 /usr/lib +#cp arch/$SARCH/lib/libshell.a /usr/lib +#cp arch/$SARCH/lib/libast.so.5.4 /usr/lib +#cp arch/$SARCH/lib/libast.a /usr/lib +#cp arch/$SARCH/src/cmd/ksh93/cc-g,-fpic/libshell.so.1.1 /usr/lib +#cp arch/$SARCH/src/cmd/ksh93/cc-g,-fpic/libshell.a /usr/lib +#cp arch/$SARCH/src/lib/libast/libast.so.5.4 /usr/lib +#cp arch/$SARCH/src/cmd/ksh93/cc-g,-fpic/libast.a /usr/lib mkdir -p $PKG/usr/man/man1 -sed -e "s#\.nr Z 0#\.nr Z 1#g" src/cmd/ksh93/sh.1 > \ - $PKG/usr/man/man1/ksh.1 -#mkdir -p $PKG/usr/man/man1 -#cp src/cmd/ksh93/shell.3 $PKG/usr/man/man3 -#cp src/cmd/ksh93/nval.3 $PKG/usr/man/man3 -gzip -9 $PKG/usr/man/man?/* +cp src/cmd/ksh93/sh.1 $PKG/usr/man/man1/ksh.1 +LD_LIBRARY_PATH=$PKG/lib $PKG/usr/bin/shcomp --nroff 2> $PKG/usr/man/man1/shcomp.1 || : +#mkdir -p $PKG/usr/man/man3 +#cp src/cmd/ksh93/shell.3 $PKG/usr/man/man3/ +#cp src/cmd/ksh93/nval.3 $PKG/usr/man/man3/ +( cd $PKG/usr/man/man1 ; ln -sf ksh.1 rksh.1 ) + +# Compress manual pages: +find $PKG/usr/man -type f -exec gzip -9 {} \+ +for i in $( find $PKG/usr/man -type l ) ; do + ln -s $( readlink $i ).gz $i.gz + rm $i +done ## Install locale files: #mkdir -p $PKG/usr/share @@ -118,52 +117,31 @@ gzip -9 $PKG/usr/man/man?/* #( cd /usr/lib rm -rf libast.so ; ln -sf libast.so.5.4 libast.so ) ( cd $PKG/bin ; ln -sf ksh rksh ) -( cd $PKG/usr/man/man1 ; ln -sf ksh.1.gz rksh.1.gz ) -mkdir -p $PKG/usr/doc/ksh93-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION ( cd src/cmd/ksh93 cp -a COMPATIBILITY* DESIGN* OBSOLETE* README* RELEASE* TYPES* \ - $PKG/usr/doc/ksh93-$VERSION + $PKG/usr/doc/$PKGNAM-$VERSION ) -cp -a CHANGELOG* CONTRIBUTING* README* \ - $PKG/usr/doc/ksh93-$VERSION -mkdir -p $PKG/usr/doc/ksh93-$VERSION/LICENSE -cp -a LICENSE $PKG/usr/doc/ksh93-$VERSION/LICENSE/LICENSE -cp -a lib/package/LICENSES/* $PKG/usr/doc/ksh93-$VERSION/LICENSE -find . -name "*.def" -exec cp -a "{}" $PKG/usr/doc/ksh93-$VERSION/LICENSE \; -find . -name "*.lic" -exec cp -a "{}" $PKG/usr/doc/ksh93-$VERSION/LICENSE \; - -chown -R root:root $PKG/usr/doc/ksh93-$VERSION -find $PKG/usr/doc/ksh93-$VERSION -type f -exec chmod 644 "{}" \; -find $PKG/usr/doc/ksh93-$VERSION -type d -exec chmod 755 "{}" \; +cp -a ANNOUNCE* CHANGELOG* CONTRIBUTING* LICENSE* NEWS* README* \ + $PKG/usr/doc/$PKGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/LICENSES +cp -a lib/package/LICENSES/* $PKG/usr/doc/$PKGNAM-$VERSION/LICENSES +find . -name "*.def" -exec cp -a "{}" $PKG/usr/doc/$PKGNAM-$VERSION/LICENSES \; +find . -name "*.lic" -exec cp -a "{}" $PKG/usr/doc/$PKGNAM-$VERSION/LICENSES \; +chown -R root:root $PKG/usr/doc/$PKGNAM-$VERSION +find $PKG/usr/doc/$PKGNAM-$VERSION -type f -exec chmod 644 "{}" \; +find $PKG/usr/doc/$PKGNAM-$VERSION -type d -exec chmod 755 "{}" \; #chmod 755 $PKG/usr/lib/libshell.so.1.1 #chmod 755 $PKG/usr/lib/libast.so.5.4 -mkdir -p $PKG/install -cat <> $PKG/install/doinst.sh -# Backup the old copy if we find one, move the new one in place -if [ -f bin/ksh ]; then - mv bin/ksh bin/ksh.old -fi -mv bin/ksh.new bin/ksh -if [ -f bin/ksh.old ]; then - rm -f bin/ksh.old -fi - -# Add entries to /etc/shells if we need them -if [ ! -r etc/shells ] ; then - touch etc/shells - chmod 644 etc/shells -fi - -if ! grep -q "/bin/ksh" etc/shells ; then - echo "/bin/ksh" >> etc/shells -fi -EOF +# Strip binaries: +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null mkdir -p $PKG/install +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n /tmp/ksh93-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/ap/ksh93/slack-desc b/source/ap/ksh93/slack-desc index a8ef183e7..637775a21 100644 --- a/source/ap/ksh93/slack-desc +++ b/source/ap/ksh93/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| -ksh93: ksh93 (AT&T Korn Shell 93) +ksh93: ksh93 (KornShell 93u+m) ksh93: ksh93: The KornShell language and interactive shell were designed by ksh93: David G. Korn at AT&T Bell Laboratories. Besides offering a powerful @@ -15,5 +15,5 @@ ksh93: such features as associative arrays and built in integer math ksh93: operations. ksh is an excellent choice for system administration ksh93: scripts and for everyday interactive use. ksh93: -ksh93: The official site for the Korn Shell is http://www.kornshell.com/ +ksh93: The site for KornShell 93u+m is https://github.com/ksh93/ksh ksh93: diff --git a/source/l/python-markdown/python-markdown.SlackBuild b/source/l/python-markdown/python-markdown.SlackBuild index 9561d1f54..ca75022f7 100755 --- a/source/l/python-markdown/python-markdown.SlackBuild +++ b/source/l/python-markdown/python-markdown.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=python-markdown SRCNAM=Markdown VERSION=${VERSION:-$(echo ${SRCNAM}-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} if [ -z "$ARCH" ]; then case "$( uname -m )" in -- cgit v1.2.3