From 5ef9bb775276c32e3a98b4f268a29d020e514c77 Mon Sep 17 00:00:00 2001 From: stefanfechter <111737654+stefanfechter@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:07:57 +0100 Subject: Bugfix: fix build of xforms (#35391) This additional patch fixes the build of the now unmaintained library xforms. --- var/spack/repos/builtin/packages/xforms/package.py | 1 + .../builtin/packages/xforms/xformsPatch.patch | 66 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 var/spack/repos/builtin/packages/xforms/xformsPatch.patch (limited to 'var') diff --git a/var/spack/repos/builtin/packages/xforms/package.py b/var/spack/repos/builtin/packages/xforms/package.py index fcceb73bb5..003b57fef5 100644 --- a/var/spack/repos/builtin/packages/xforms/package.py +++ b/var/spack/repos/builtin/packages/xforms/package.py @@ -22,6 +22,7 @@ class Xforms(AutotoolsPackage): depends_on("libx11", type="link") depends_on("libxpm", type="link") depends_on("jpeg", type="link") + patch("xformsPatch.patch") def configure_args(self): args = ["--enable-static"] diff --git a/var/spack/repos/builtin/packages/xforms/xformsPatch.patch b/var/spack/repos/builtin/packages/xforms/xformsPatch.patch new file mode 100644 index 0000000000..f51b586752 --- /dev/null +++ b/var/spack/repos/builtin/packages/xforms/xformsPatch.patch @@ -0,0 +1,66 @@ +diff --git a/fdesign/sp_spinner.c b/fdesign/sp_spinner.c +index 04f2c19..6206daa 100644 +--- a/fdesign/sp_spinner.c ++++ b/fdesign/sp_spinner.c +@@ -29,7 +29,7 @@ + #include "spec/spinner_spec.h" + + static FD_spinnerattrib * spn_attrib; +-FL_OBJECT *curobj; ++static FL_OBJECT *curobj; + + + /*************************************** +diff --git a/fdesign/sp_twheel.c b/fdesign/sp_twheel.c +index 5cfda18..22537f6 100644 +--- a/fdesign/sp_twheel.c ++++ b/fdesign/sp_twheel.c +@@ -38,7 +38,7 @@ + #include "spec/twheel_spec.h" + + static FD_twheelattrib * twheel_attrib; +-FL_OBJECT * curobj; ++static FL_OBJECT * curobj; + + + /*************************************** + +diff --git a/lib/xpopup.c b/lib/xpopup.c +index e9629e6..84a74a2 100644 +--- a/lib/xpopup.c ++++ b/lib/xpopup.c +@@ -1973,6 +1973,7 @@ draw_popup( PopUP * m ) + void + fl_showpup( int n ) + { ++ const char empty_title[] = "\0"; + PopUP *m = menu_rec + n; + int req_y = exty; + unsigned int dummy; +@@ -2083,6 +2084,10 @@ fl_showpup( int n ) + fli_visual( fl_vmode ), vmask, &xswa ); + + XSetTransientForHint( flx->display, m->win, fl_root ); ++ if(!m->title) ++ { ++ m->title = fl_strdup(empty_title); ++ } + XStoreName( flx->display, m->win, m->title ); + + if ( ! m->gc_active && ! m->gc_inactive ) +-- + +diff --git a/lib/include/Basic.h b/lib/include/Basic.h +index 7544193..46da14e 100644 +--- a/lib/include/Basic.h ++++ b/lib/include/Basic.h +@@ -1441,7 +1441,7 @@ FL_EXPORT void fl_draw_text_cursor( int align, + FL_COLOR cc, + int pos ); + +-#define fl_draw_box fl_draw_box ++#define fl_drw_box fl_draw_box + FL_EXPORT void fl_draw_box( int style, + FL_Coord x, + FL_Coord y, +-- -- cgit v1.2.3-70-g09d2