diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2023-01-24 18:37:30 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-28 08:23:03 +0700 |
commit | c39e5571a57fd69d7378a333c870198076a498b2 (patch) | |
tree | 10e0bd6660a14934d90fe00ffc7a4886e36bb433 /libraries/libqtpas | |
parent | 0503ef7d8cb9733607fd72cacd0020ebff0f9963 (diff) |
libraries/libqtpas: Added Hardening Flags. Update source URL.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libqtpas')
-rw-r--r-- | libraries/libqtpas/README | 4 | ||||
-rw-r--r-- | libraries/libqtpas/changelog | 10 | ||||
-rw-r--r-- | libraries/libqtpas/libqtpas.SlackBuild | 32 | ||||
-rw-r--r-- | libraries/libqtpas/libqtpas.info | 6 | ||||
-rw-r--r-- | libraries/libqtpas/slack-desc | 6 |
5 files changed, 37 insertions, 21 deletions
diff --git a/libraries/libqtpas/README b/libraries/libqtpas/README index 0f4f0dea7dab..7725b450926b 100644 --- a/libraries/libqtpas/README +++ b/libraries/libqtpas/README @@ -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. diff --git a/libraries/libqtpas/changelog b/libraries/libqtpas/changelog index 93a0c76f7bf9..3695597ae142 100644 --- a/libraries/libqtpas/changelog +++ b/libraries/libqtpas/changelog @@ -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. diff --git a/libraries/libqtpas/libqtpas.SlackBuild b/libraries/libqtpas/libqtpas.SlackBuild index cd130436482f..81119fe8f797 100644 --- a/libraries/libqtpas/libqtpas.SlackBuild +++ b/libraries/libqtpas/libqtpas.SlackBuild @@ -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 diff --git a/libraries/libqtpas/libqtpas.info b/libraries/libqtpas/libqtpas.info index 0343a061a0a6..8e371d2971c7 100644 --- a/libraries/libqtpas/libqtpas.info +++ b/libraries/libqtpas/libqtpas.info @@ -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="" diff --git a/libraries/libqtpas/slack-desc b/libraries/libqtpas/slack-desc index ef3b39379c3a..83090e64b8ac 100644 --- a/libraries/libqtpas/slack-desc +++ b/libraries/libqtpas/slack-desc @@ -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: |