George Hu pushed to branch main at Arch Linux / Packaging / Packages / igrep


Commits:
8cb18e6a by George Hu at 2026-02-27T16:25:07+08:00
Enable dynamic linking for libonig via environment variable

Currently `libonig` is statically linked. Set the environment
variable `RUSTONIG_DYNAMIC_LIBONIG` to enable dynamic linking.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -7,6 +7,7 @@ pkgbase = igrep
        license = MIT
        makedepends = cargo
        depends = gcc-libs
+       depends = oniguruma
        options = !lto
        source = 
igrep-1.3.0.tar.gz::https://github.com/konradsz/igrep/archive/v1.3.0.tar.gz
        sha512sums = 
30420e9d7d3c833d1415f54e0e315335f87811a514c2eba492ae4542006eb0f300d717525d9e8025c45ba51acf9e32e4ee30635321c3318105b0967195124818


=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@ pkgdesc="Interactive grep"
 arch=('x86_64')
 url="https://github.com/konradsz/igrep";
 license=('MIT')
-depends=('gcc-libs')
+depends=('gcc-libs' 'oniguruma')
 makedepends=('cargo')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 
sha512sums=('30420e9d7d3c833d1415f54e0e315335f87811a514c2eba492ae4542006eb0f300d717525d9e8025c45ba51acf9e32e4ee30635321c3318105b0967195124818')
@@ -20,12 +20,12 @@ prepare() {
 
 build() {
   cd "$pkgname-$pkgver"
-  cargo build --release --frozen
+  RUSTONIG_DYNAMIC_LIBONIG=1 cargo build --release --frozen
 }
 
 check() {
   cd "$pkgname-$pkgver"
-  cargo test --frozen
+  RUSTONIG_DYNAMIC_LIBONIG=1 cargo test --frozen
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/igrep/-/commit/8cb18e6aff35aba805707fc45879a4165dbf555c

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


Reply via email to