-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply upstream patch to remove sibling argument
- Loading branch information
1 parent
b092e83
commit 79c00e1
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
resources/patches/augeas/ruby-augeas-0.5.0-remove-sibling-argument.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 9f1f9df48ef8c6f62349eccb90dc54a3c3d75e3f Mon Sep 17 00:00:00 2001 | ||
From: Ewoud Kohl van Wijngaarden <[email protected]> | ||
Date: Wed, 31 Jan 2024 12:52:45 +0100 | ||
Subject: [PATCH] Remove unused sibling argument from augeas_rm | ||
|
||
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) ; | ||
|