LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2024, 08:04 AM   #1
lucabon
Member
 
Registered: Oct 2021
Location: Italy
Distribution: Slackware
Posts: 106

Rep: Reputation: 76
Regression: libcap-ng failed to build againt swig 4.2.0


In swig 4.2.0 the deprecated feature %except was removed, but libcap-ng still uses it.

The following patch could be used to fix the bug/regression:
Code:
--- libcap-ng-0.8.4.old/bindings/src/capng_swig.i       2023-12-20 16:23:01.000000000 +0100
+++ libcap-ng-0.8.4/bindings/src/capng_swig.i   2024-01-04 12:53:12.131746399 +0100
@@ -30,7 +30,16 @@
 
 %varargs(16, signed capability = 0) capng_updatev;
 
-%except(python) {
+%exception capng_clear {
+  $action
+}
+%exception capng_fill {
+  $action
+}
+%exception capng_setpid {
+  $action
+}
+%exception {
   $action
   if (result < 0) {
     PyErr_SetFromErrno(PyExc_OSError);
An issue is already opened in libcap-ng repository: https://github.com/stevegrubb/libcap-ng/issues/48
 
Old 01-04-2024, 02:33 PM   #2
lucabon
Member
 
Registered: Oct 2021
Location: Italy
Distribution: Slackware
Posts: 106

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by lucabon View Post
An issue is already opened in libcap-ng repository: https://github.com/stevegrubb/libcap-ng/issues/48
Fixed in main branch (will be applied with 0.8.5 release), and fixed with the following patch in Fedora rawhide:
https://src.fedoraproject.org/rpms/l...xception.patch
 
Old 01-04-2024, 03:48 PM   #3
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Also fixed here, in the main tree

Code:
Thu Jan  4 20:38:00 UTC 2024
  libcap-ng: patch to fix build with swig-4.2.0. Thanks to lucabon.
 
  


Reply

Tags
regression



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What do you guy recommend to use againt finger printing? GreenFireFly Slackware 29 04-05-2017 05:37 AM
problems with libcap meltdown_override Linux - Software 1 03-10-2007 04:51 PM
a problem while compiling libcap bayram Linux - Software 0 01-13-2007 05:22 AM
pppd problem with libcap.so l2g Slackware 0 04-26-2004 05:50 AM
What is libcap, and how can I make sure its installed? bripage Linux - General 2 09-26-2002 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration