Skip to content
Snippets Groups Projects
Commit 1d72ecc8 authored by Celeste's avatar Celeste
Browse files

main/ruby-augeas: fix build with gcc 14

parent da73517e
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
pkgname=ruby-augeas pkgname=ruby-augeas
_gemname=$pkgname _gemname=$pkgname
pkgver=0.5.0 pkgver=0.5.0
pkgrel=13 pkgrel=14
pkgdesc="Ruby bindings for Augeas" pkgdesc="Ruby bindings for Augeas"
url="https://augeas.net/" url="https://augeas.net/"
arch="all" arch="all"
...@@ -13,7 +13,9 @@ depends="ruby" ...@@ -13,7 +13,9 @@ depends="ruby"
checkdepends="ruby-test-unit" checkdepends="ruby-test-unit"
makedepends="augeas-dev ruby-dev ruby-rake" makedepends="augeas-dev ruby-dev ruby-rake"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="https://github.com/hercules-team/ruby-augeas/archive/release-$pkgver/$_gemname-$pkgver.tar.gz" source="https://github.com/hercules-team/ruby-augeas/archive/release-$pkgver/$_gemname-$pkgver.tar.gz
gcc14.patch
"
builddir="$srcdir/$_gemname-release-$pkgver" builddir="$srcdir/$_gemname-release-$pkgver"
build() { build() {
...@@ -60,4 +62,5 @@ doc() { ...@@ -60,4 +62,5 @@ doc() {
sha512sums=" sha512sums="
6d1b152214d77bdc32a053627388398dcd01f1d9901f267e50a01edcf6aa64d2480275bdd8f4b13e4de48034af67ed02ba0f5c03cecc155bb528ad96ff1db8f0 ruby-augeas-0.5.0.tar.gz 6d1b152214d77bdc32a053627388398dcd01f1d9901f267e50a01edcf6aa64d2480275bdd8f4b13e4de48034af67ed02ba0f5c03cecc155bb528ad96ff1db8f0 ruby-augeas-0.5.0.tar.gz
15a3912bf9d60117345241d9a2ae2e55ba39c1f63125c1412800a5766e76191b836a0846f02d2f396d02fc64094661db9513a9440102c2f56cf4ada60a123054 gcc14.patch
" "
Patch-Source: https://github.com/hercules-team/ruby-augeas/commit/89652bd605ee7b860536a9157cf99854d42c7a6d.patch
--
From 89652bd605ee7b860536a9157cf99854d42c7a6d Mon Sep 17 00:00:00 2001
From: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
Date: Sun, 28 Jul 2024 09:33:09 +0200
Subject: [PATCH] Remove unused sibling argument from augeas_rm (#17)
This makes the function match the method definition. There was already a
warning about this, but Fedora 40 applies more hardening and it's a
fatal error.
Fixes: e6b57c58d24b ("Initial ruby bindings, written by Bryan Kearney")
---
ext/augeas/_augeas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/augeas/_augeas.c b/ext/augeas/_augeas.c
index f9b49d1..7ef0d7d 100644
--- a/ext/augeas/_augeas.c
+++ b/ext/augeas/_augeas.c
@@ -184,7 +184,7 @@ VALUE augeas_mv(VALUE s, VALUE src, VALUE dst) {
*
* Remove path and all its children. Returns the number of entries removed
*/
-VALUE augeas_rm(VALUE s, VALUE path, VALUE sibling) {
+VALUE augeas_rm(VALUE s, VALUE path) {
augeas *aug = aug_handle(s);
const char *cpath = StringValueCStr(path) ;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment