motif: patch to ensure main function (fixes #29594) (#42174)

This commit is contained in:
Wouter Deconinck 2024-01-20 17:36:20 -06:00 committed by GitHub
parent 4c1fbc9fdb
commit 10b4481ba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
diff -Naur motif-2.3.8/tools/wml/wmluiltok.l motif-2.3.8_patched/tools/wml/wmluiltok.l
--- motif-2.3.8/tools/wml/wmluiltok.l 2024-01-18 17:19:43.997764906 -0600
+++ motif-2.3.8_patched/tools/wml/wmluiltok.l 2024-01-18 17:19:13.998702374 -0600
@@ -1,3 +1,4 @@
+%option main
%{
/*
* Motif

View File

@ -39,6 +39,8 @@ class Motif(AutotoolsPackage):
depends_on("pkgconfig", type="build") depends_on("pkgconfig", type="build")
patch("add_xbitmaps_dependency.patch") patch("add_xbitmaps_dependency.patch")
# ensure tools/wml/wmluiltok.c has a main function
patch("add_wmluiltok_option_main.patch")
def patch(self): def patch(self):
# fix linking the simple_app demo program # fix linking the simple_app demo program