David Runge pushed to branch main at Arch Linux / Packaging / Packages / giac


Commits:
88532935 by David Runge at 2025-07-28T16:47:51+02:00
Switch to TLS for url and source

Signed-off-by: David Runge <[email protected]>

- - - - -
cd57e978 by David Runge at 2025-07-28T17:17:27+02:00
Patch libtool to not overlink

Signed-off-by: David Runge <[email protected]>

- - - - -
10be176a by David Runge at 2025-07-28T17:28:03+02:00
Consolidate dependencies

Signed-off-by: David Runge <[email protected]>

- - - - -
e92cc9fc by David Runge at 2025-07-28T17:34:28+02:00
Build against fltk1.3

Signed-off-by: David Runge <[email protected]>

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -2,7 +2,7 @@ pkgbase = giac
        pkgdesc = A free computer algebra system
        pkgver = 2.0.0.10
        pkgrel = 3
-       url = http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
+       url = https://www-fourier.ujf-grenoble.fr/~parisse/giac.html
        arch = x86_64
        license = GPL-3.0-only
        makedepends = hevea
@@ -11,21 +11,20 @@ pkgbase = giac
        makedepends = texlive-latexrecommended
        makedepends = texlive-mathscience
        depends = blas
-       depends = cblas
        depends = curl
-       depends = fltk
+       depends = fltk1.3
        depends = gcc-libs
        depends = glibc
        depends = glpk
        depends = gmp
        depends = gmp-ecm
        depends = gsl
+       depends = hicolor-icon-theme
        depends = lapack
        depends = libao
        depends = libglvnd
        depends = libpng
        depends = libsamplerate
-       depends = libusb
        depends = mpfi
        depends = mpfr
        depends = nauty
@@ -34,7 +33,7 @@ pkgbase = giac
        depends = readline
        depends = zlib
        optdepends = perl: for pgiac
-       source = 
http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_2.0.0-10.tar.gz
+       source = 
https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_2.0.0-10.tar.gz
        source = format-security.patch
        source = sha256-init.patch
        sha256sums = 
614f26660063913bef0301afccb17b5d93673106a002ea70a0b5bc59a504ebd3


=====================================
PKGBUILD
=====================================
@@ -6,24 +6,23 @@ pkgver=${_pkgver//-/.}
 pkgrel=3
 pkgdesc='A free computer algebra system'
 arch=(x86_64)
-url='http://www-fourier.ujf-grenoble.fr/~parisse/giac.html'
+url='https://www-fourier.ujf-grenoble.fr/~parisse/giac.html'
 license=(GPL-3.0-only)
 depends=(blas
-         cblas
          curl
-         fltk
+         fltk1.3
          gcc-libs
          glibc
          glpk
          gmp
          gmp-ecm
          gsl
+         hicolor-icon-theme
          lapack
          libao
          libglvnd
          libpng
          libsamplerate
-         libusb
          mpfi
          mpfr
          nauty
@@ -37,7 +36,7 @@ makedepends=(hevea
              texlive-latexrecommended
              texlive-mathscience)
 optdepends=('perl: for pgiac')
-source=(http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_$_pkgver.tar.gz
+source=(https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_$_pkgver.tar.gz
         format-security.patch
         sha256-init.patch)
 sha256sums=('614f26660063913bef0301afccb17b5d93673106a002ea70a0b5bc59a504ebd3'
@@ -48,17 +47,22 @@ prepare() {
   cd $pkgname-${pkgver%.*}
   patch -p1 < ../format-security.patch # Fix -Werror=format-security errors
   patch -p1 < ../sha256-init.patch # Fix broken use of sha256_init
+
+  autoreconf -fiv
 }
 
 build() {
   cd $pkgname-${pkgver%.*}
 
   # 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}"
+  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2} 
-I/usr/include/fltk1.3"
+  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2} 
-I/usr/include/fltk1.3"
 
   CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS" # Fix crashes
+  LDFLAGS+=" -L/usr/lib/fltk1.3"
   ./configure --prefix=/usr
+  # prevent excessive overlinking due to libtool
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/giac/-/compare/f325fdd1fe984ced4e0801f9138b8dcfc9fef574...e92cc9fc596f68fa9ee3dcc780fec4bc43557b22

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/giac/-/compare/f325fdd1fe984ced4e0801f9138b8dcfc9fef574...e92cc9fc596f68fa9ee3dcc780fec4bc43557b22
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to