Skip to contentSkip to conversation

package/crun: fix static build

PATCH Applied Fabrice Fontaine 2 participants 2 messages Dec 30, 2022 – Jan 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/crun: fix static build

Fix the following static build failure raised since bump to version 1.7.2 in commit 6987b92da510a8c8b9534a22506850c163d0f035 and
https://github.com/containers/crun/commit/5837234e9840cd067edd9f6cd2ed9cae9a0e6570:

src/crun.c:26:10: fatal error: dlfcn.h: No such file or directory
26 | #include <dlfcn.h>

      |          ^~~~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/a5f52a7ee757c92c9571261c0ed884d05caeaf2f

---
 ...src-crun.c-fix-build-without-dlfcn.h.patch | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/crun/0001-src-crun.c-fix-build-without-dlfcn.h.patch
package/crun/0001-src-crun.c-fix-build-without-dlfcn.h.patch new file +39 -0
new file mode 100644
index 0000000000..3e8d3f4c4b
@@ -0,0 +1,39 @@
+From 278b9b447bec3fb81bf252eb2fe2c856892ec802 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Fri, 30 Dec 2022 18:40:15 +0100
+Subject: [PATCH] src/crun.c: fix build without dlfcn.h
+
+Fix the following build failure without dlfcn.h raised since version 1.7
+and
+https://github.com/containers/crun/commit/5837234e9840cd067edd9f6cd2ed9cae9a0e6570:
+
+src/crun.c:26:10: fatal error: dlfcn.h: No such file or directory
+   26 | #include <dlfcn.h>
+      |          ^~~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/a5f52a7ee757c92c9571261c0ed884d05caeaf2f
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/containers/crun/pull/1110]
+---
+ src/crun.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/crun.c b/src/crun.c
+index cbfe900..af0cc97 100644
+--- a/src/crun.c
++++ b/src/crun.c
+@@ -23,7 +23,9 @@
+ #include <string.h>
+ #include <libgen.h>
+ 
++#ifdef HAVE_DLOPEN
+ #include <dlfcn.h>
++#endif
+ 
+ #include "crun.h"
+ #include "libcrun/utils.h"
+-- 
+2.35.1
+
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Fabrice, All,

On 2022-12-30 18:46 +0100, Fabrice Fontaine spake thusly:

Quoted 4 lines

Fix the following static build failure raised since bump to version 1.7.2 in commit 6987b92da510a8c8b9534a22506850c163d0f035 and
https://github.com/containers/crun/commit/5837234e9840cd067edd9f6cd2ed9cae9a0e6570:

Quoted 8 lines

src/crun.c:26:10: fatal error: dlfcn.h: No such file or directory
26 | #include <dlfcn.h>

      |          ^~~~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/a5f52a7ee757c92c9571261c0ed884d05caeaf2f

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 57 lines
---
 ...src-crun.c-fix-build-without-dlfcn.h.patch | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/crun/0001-src-crun.c-fix-build-without-dlfcn.h.patch
package/crun/0001-src-crun.c-fix-build-without-dlfcn.h.patch new file +39 -0
new file mode 100644
index 0000000000..3e8d3f4c4b
@@ -0,0 +1,39 @@
+From 278b9b447bec3fb81bf252eb2fe2c856892ec802 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Fri, 30 Dec 2022 18:40:15 +0100
+Subject: [PATCH] src/crun.c: fix build without dlfcn.h
+
+Fix the following build failure without dlfcn.h raised since version 1.7
+and
+https://github.com/containers/crun/commit/5837234e9840cd067edd9f6cd2ed9cae9a0e6570:
+
+src/crun.c:26:10: fatal error: dlfcn.h: No such file or directory
+   26 | #include <dlfcn.h>
+      |          ^~~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/a5f52a7ee757c92c9571261c0ed884d05caeaf2f
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/containers/crun/pull/1110]
+---
+ src/crun.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/crun.c b/src/crun.c
+index cbfe900..af0cc97 100644
+--- a/src/crun.c
++++ b/src/crun.c
+@@ -23,7 +23,9 @@
+ #include <string.h>
+ #include <libgen.h>
+ 
++#ifdef HAVE_DLOPEN
+ #include <dlfcn.h>
++#endif
+ 
+ #include "crun.h"
+ #include "libcrun/utils.h"
+-- 
+2.35.1
+
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot