kpcyrd pushed to branch main at Arch Linux / Packaging / Packages / qbs


Commits:
f103288a by kpcyrd at 2024-02-11T15:43:53+01:00
do not use fortification level 3

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -19,6 +19,10 @@ 
source=(https://download.qt.io/official_releases/qbs/$pkgver/qbs-src-$pkgver.tar
 sha256sums=('93e0938fbef2f60f175ae4070fbec5066744f61424ef80f9e65b54f1be8615b4')
 
 build() {
+  # this uses malloc_usable_size, which is incompatible with fortification 
level 3
+  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+
   cmake -B build -S $pkgname-src-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DWITH_TESTS=OFF \
@@ -27,5 +31,9 @@ build() {
 }
 
 package() {
+  # this uses malloc_usable_size, which is incompatible with fortification 
level 3
+  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+
   DESTDIR="$pkgdir" cmake --install build
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/qbs/-/commit/f103288a1436666120f337542411d52c68e6432a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/qbs/-/commit/f103288a1436666120f337542411d52c68e6432a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to