libraries/libqtpas: Added Hardening Flags. Update source URL.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2023-01-24 18:37:30 +00:00 committed by Willy Sudiarto Raharjo
parent 0503ef7d8c
commit c39e5571a5
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
5 changed files with 37 additions and 21 deletions

View File

@ -1,6 +1,6 @@
libqtpas provides interface for pascal applications to
libqtpas provides interface for pascal applications to use
Qt5 C++ libraries. This binding does not cover the whole
Qt5 framework, it jsut contains all the classes needed to
Qt5 framework, it contains just the classes needed to
use Qt as a widgetset.
This package provides the libqt5pas library.

View File

@ -9,3 +9,13 @@ libqtpas added in Slackbuilds.org
Added SLKCFLAGS to QMAKE. Thanks to David Miller
for pointing it out. Bumped the build no.
24/01/2023:
corrected spelling mistake in README and slack-desc.
This will now build from lazarus source instead of
relying on Debian source package.Thanks to Davild Miller
For pointing that out.For the 64-bit systems I have added
-march=x86-64 -mtune=native flag so it will be optimized
for the host system, also added Hardening Flags.
Bumped the build no.

View File

@ -1,8 +1,7 @@
#!/bin/bash
# Slackware build script for libqtpas
# Copyright 2022 Vijay Marcel
# Copyright 2022-2023 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,9 +25,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libqtpas
VERSION=${VERSION:-2.6}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=${SRCNAM:-lazarus}
SRCVER=${SRCVER:-2.0.12}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -50,14 +51,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
PREPROCESS="-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS"
HARDENING="-fexceptions -fstack-protector-strong -fstack-clash-protection -mindirect-branch=thunk -mfunction-return=thunk"
SLDFLAGS="-Wl,-shared -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,defs"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
SLKCFLAGS="$PREPROCESS -march=i586 -mtune=i686 -O2 -fPIC $HARDENING"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
SLKCFLAGS="$PREPROCESS -march=i686 -mtune=i686 -O2 -fPIC $HARDENING"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="$PREPROCESS -march=x86-64 -mtune=native -O2 -fPIC $HARDENING"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@ -71,10 +78,9 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mv -v $CWD/libqtpas_2.6+2.2.0+dfsg1.orig.tar.xz $CWD/libqtpas-2.6.tar.xz
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
mv -v $TMP/libqtpas-2.6+2.2.0+dfsg1 $TMP/libqtpas-2.6
cd $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
cd $SRCNAM/lcl/interfaces/qt5/cbindings/
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -82,10 +88,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
qmake-qt5 "QT += x11extras" \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS\ +=\ "$SLKCFLAGS" \
QMAKE_CFLAGS\ +=\ "$SLKCFLAGS" \
QMAKE_LFLAGS\ +=\ "$SLDFLAGS" \
Qt5Pas.pro
make
make INSTALL_ROOT=$PKG install

View File

@ -1,8 +1,8 @@
PRGNAM="libqtpas"
VERSION="2.6"
HOMEPAGE="https://packages.debian.org/source/bookworm/libqtpas"
DOWNLOAD="http://deb.debian.org/debian/pool/main/libq/libqtpas/libqtpas_2.6+2.2.0+dfsg1.orig.tar.xz"
MD5SUM="b17de1aecd860528ea58761f599da787"
HOMEPAGE="http://www.lazarus.freepascal.org/"
DOWNLOAD="http://downloads.sourceforge.net/lazarus/lazarus-2.0.12.tar.gz"
MD5SUM="208dfeb20c528649d2598cc0eb341309"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View File

@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
libqtpas: libqtpas (Qt5 Interface Bindings for Pascal)
libqtpas:
libqtpas: libqtpas provides interface for pascal applications to
libqtpas: libqtpas provides interface for pascal applications to use
libqtpas: Qt5 C++ libraries. This binding does not cover the whole
libqtpas: Qt5 framework, it jsut contains all the classes needed to
libqtpas: Qt5 framework, it contains just the classes needed to
libqtpas: use Qt as a widgetset.
libqtpas:
libqtpas: Homepage:https://packages.debian.org/source/bookworm/libqtpas
libqtpas: Homepage:http://www.lazarus.freepascal.org/
libqtpas:
libqtpas:
libqtpas: