summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorstefanfechter <111737654+stefanfechter@users.noreply.github.com>2024-02-01 22:07:57 +0100
committerGitHub <noreply@github.com>2024-02-01 13:07:57 -0800
commit5ef9bb775276c32e3a98b4f268a29d020e514c77 (patch)
tree5238e0ae046d9c31ed63822ebf5bc27158c43ab2 /var
parent5bd5a219a60596616ae2cead213f378dba4953be (diff)
downloadspack-5ef9bb775276c32e3a98b4f268a29d020e514c77.tar.gz
spack-5ef9bb775276c32e3a98b4f268a29d020e514c77.tar.bz2
spack-5ef9bb775276c32e3a98b4f268a29d020e514c77.tar.xz
spack-5ef9bb775276c32e3a98b4f268a29d020e514c77.zip
Bugfix: fix build of xforms (#35391)
This additional patch fixes the build of the now unmaintained library xforms.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xforms/package.py1
-rw-r--r--var/spack/repos/builtin/packages/xforms/xformsPatch.patch66
2 files changed, 67 insertions, 0 deletions
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,
+--