pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/octave



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed Mar 15 11:33:03 UTC 2017

Modified Files:
        pkgsrc/math/octave: distinfo
        pkgsrc/math/octave/patches: patch-liboctave_wrappers_strftime-wrapper.c
            patch-liboctave_wrappers_strftime-wrapper.h

Log Message:
octave: amend wrapper patches to be netbsd-specific. fix sunOS build

octave is using gnulib for portability, but has an additional wrapper
around it. unfortunately that means that this type signature is no longer
portable. netbsd doesn't have struct tm_zone, others do.

I failed to use gnulib to provide struct tm_zone, using an OS-specific macro
as an ugly hack.

reported by hans


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 pkgsrc/math/octave/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c \
    pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/octave/distinfo
diff -u pkgsrc/math/octave/distinfo:1.50 pkgsrc/math/octave/distinfo:1.51
--- pkgsrc/math/octave/distinfo:1.50    Sat Nov 19 21:53:12 2016
+++ pkgsrc/math/octave/distinfo Wed Mar 15 11:33:03 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.50 2016/11/19 21:53:12 maya Exp $
+$NetBSD: distinfo,v 1.51 2017/03/15 11:33:03 maya Exp $
 
 SHA1 (octave-4.2.0.tar.gz) = 9fac578c08a7efabd79ccc38bc196b9627e3212f
 RMD160 (octave-4.2.0.tar.gz) = 07ff9bae3a0128c93f9113ebf952dea129b58284
@@ -13,8 +13,8 @@ SHA1 (patch-libinterp_dldfcn_config-modu
 SHA1 (patch-libinterp_dldfcn_module.mk) = a38b2b70780d33ed7e5c0f586fc9521367be0e28
 SHA1 (patch-libinterp_module.mk) = 26889c064497eb2bcbd77199e96925f61359c128
 SHA1 (patch-liboctave_operators_mx-inlines.cc) = e74ea202f89c1a6a394f8fd3d86397dfa2121d7e
-SHA1 (patch-liboctave_wrappers_strftime-wrapper.c) = ca69583ec200f3bcbe02d9b7f8b6b7d001fae5a9
-SHA1 (patch-liboctave_wrappers_strftime-wrapper.h) = 54307cc5678f6654cde29530cb65902ab607550f
+SHA1 (patch-liboctave_wrappers_strftime-wrapper.c) = 1b8645c00e6db0d6d7045fa0bbef13661cd2aa84
+SHA1 (patch-liboctave_wrappers_strftime-wrapper.h) = f1453aa44ea5b3600c5ed13acc2d10800f538959
 SHA1 (patch-m4_acinclude.m4) = 194b8c3cf6f5e45a0251b229af9b3a47c12aa608
 SHA1 (patch-scripts_pkg_private_configure__make.m) = 7d4b620f889faa66c4c9c581ef8a7e7692b68c94
 SHA1 (patch-scripts_plot_util_____gnuplot__drawnow____.m) = 449b178aefd78c5c1b03ffd960f2e8be3874efc2

Index: pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c
diff -u pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c:1.1 pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c:1.2
--- pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c:1.1  Sat Nov 19 21:53:12 2016
+++ pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.c      Wed Mar 15 11:33:03 2017
@@ -1,15 +1,19 @@
-$NetBSD: patch-liboctave_wrappers_strftime-wrapper.c,v 1.1 2016/11/19 21:53:12 maya Exp $
+$NetBSD: patch-liboctave_wrappers_strftime-wrapper.c,v 1.2 2017/03/15 11:33:03 maya Exp $
 
-Don't have struct tm_zone (in netbsd), instead use timezone_t as libgnu does
+Octave's wrapper breaks gnulib portability, netbsd doesn't have struct tm_zone,
+use ifdefs to work around it
 
 --- liboctave/wrappers/strftime-wrapper.c.orig 2016-11-13 15:16:10.000000000 +0000
 +++ liboctave/wrappers/strftime-wrapper.c
-@@ -36,7 +36,7 @@ along with Octave; see the file COPYING.
+@@ -36,7 +36,11 @@ along with Octave; see the file COPYING.
  
  size_t
  octave_strftime_wrapper (char *buf, size_t len, const char *fmt,
--                         const struct tm *t, struct tm_zone *tz, int ns)
++#ifdef __NetBSD__
 +                         const struct tm *t, timezone_t *tz, int ns)
++#else
+                          const struct tm *t, struct tm_zone *tz, int ns)
++#endif
  {
    return nstrftime (buf, len, fmt, t, tz, ns);
  }
Index: pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h
diff -u pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h:1.1 pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h:1.2
--- pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h:1.1  Sat Nov 19 21:53:12 2016
+++ pkgsrc/math/octave/patches/patch-liboctave_wrappers_strftime-wrapper.h      Wed Mar 15 11:33:03 2017
@@ -1,15 +1,19 @@
-$NetBSD: patch-liboctave_wrappers_strftime-wrapper.h,v 1.1 2016/11/19 21:53:12 maya Exp $
+$NetBSD: patch-liboctave_wrappers_strftime-wrapper.h,v 1.2 2017/03/15 11:33:03 maya Exp $
 
-Don't have struct tm_zone (in netbsd), instead use timezone_t as libgnu does
+Octave's wrapper breaks gnulib portability, netbsd doesn't have struct tm_zone,
+use ifdefs to work around it
 
 --- liboctave/wrappers/strftime-wrapper.h.orig 2016-11-13 15:16:10.000000000 +0000
 +++ liboctave/wrappers/strftime-wrapper.h
-@@ -35,7 +35,7 @@ extern "C" {
+@@ -35,7 +35,11 @@ extern "C" {
  
  extern size_t
  octave_strftime_wrapper (char *buf, size_t len, const char *fmt,
--                         const struct tm *t, struct tm_zone *tz, int ns);
++#ifdef __NetBSD__
 +                         const struct tm *t, timezone_t *tz, int ns);
++#else
+                          const struct tm *t, struct tm_zone *tz, int ns);
++#endif
  
  #if defined __cplusplus
  }



Home | Main Index | Thread Index | Old Index