Failure bilding 2.3.6.1
Rich Shepard
rshepard at appl-ecosys.com
Sat Feb 20 01:09:59 UTC 2021
On Fri, 19 Feb 2021, Scott Kostyshak wrote:
> Just to try something different, do you feel like trying the cmake build?
> Let us know if you want instructions for how to use cmake.
Scott,
I can try that. Since I switched from Red Hat-7 to Slackware-8.0 in 2003
I've built Lyx using the SlackBuild script (copy attached.) And it's always
worked flawlessly for me ... until earlier this week when I inadvertently
removed all the SBo packages while upgrading the distribution (and spent the
rest of the week re-building and re-installing them).
I should mention that the SlackBuild script worked fine last month in the
upgrade from 2.6.3 to 2.6.3.1. That's why I'm puzzled it now fails. Same
Qt4 and Qt5/PyQt5 versions as then.
And long ago I switched from writing tools for me in C to Python so I'm 20
years out of data on all the different C/C++ compilers now out there.
Carpe weekend,
Rich
-------------- next part --------------
#!/bin/sh
# Slackware build script for LyX
# Written by Morten Juhl-Johansen Z?lde-Fej?r <mjjzf at syntaktisk.dk>
# Now maintained by R. S. Ananda Murthy (rsamurti at gmail.com)
PRGNAM=lyx
VERSION=${VERSION:-2.3.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-qt5 \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
More information about the lyx-users
mailing list