Skip to content

Commit

Permalink
dateutils: fix SunOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedi committed Sep 29, 2018
1 parent b8865a5 commit 6178670
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion time/dateutils/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.10 2018/04/03 07:09:32 mef Exp $
# $NetBSD: Makefile,v 1.11 2018/09/29 17:18:19 wiedi Exp $

DISTNAME= dateutils-0.4.3
PKGREVISION= 1
CATEGORIES= time
#MASTER_SITES= ${MASTER_SITE_GITHUB:=hroptatyr/}
MASTER_SITES+= https://bitbucket.org/hroptatyr/dateutils/downloads/
Expand Down
3 changes: 2 additions & 1 deletion time/dateutils/distinfo
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
$NetBSD: distinfo,v 1.9 2018/04/03 07:09:32 mef Exp $
$NetBSD: distinfo,v 1.10 2018/09/29 17:18:19 wiedi Exp $

SHA1 (dateutils-0.4.3.tar.xz) = a4a4e36ad3042665c8af3222126551b5c6bbb61a
RMD160 (dateutils-0.4.3.tar.xz) = ab629abea195ca853534bffd18353800ef4a2591
SHA512 (dateutils-0.4.3.tar.xz) = 0210ad1f47aec77b8b87a520da9155430b52068e53733ef7bb26dfa10e8651f2190171537d4317adf888733e9377f961d5ed070efacd8ca18139225fa8c185ca
Size (dateutils-0.4.3.tar.xz) = 631216 bytes
SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f
SHA1 (patch-Makefile.in) = ff5aaffb2046f17189b9074090c68295df5fb57a
SHA1 (patch-build-aux_yuck.c) = cd0be0ed0d0165f253165bff3609d8bcfaf1e67c
SHA1 (patch-configure) = 09afa4f5237d8bc20a0585e97d616f0830f80d7c
SHA1 (patch-m4_sxe-compiler.m4) = 8df17f891ba18ff54555e302388f0fe184fa33bc
15 changes: 15 additions & 0 deletions time/dateutils/patches/patch-build-aux_yuck.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD: patch-build-aux_yuck.c,v 1.1 2018/09/29 17:18:20 wiedi Exp $

no need for sysctl on SunOS
--- build-aux/yuck.c.orig 2018-03-01 09:55:48.000000000 +0000
+++ build-aux/yuck.c
@@ -62,7 +62,9 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
+#if !defined(__sun)
#include <sys/sysctl.h>
+#endif
#include <time.h>
#if defined WITH_SCMVER
# include <yuck-scmver.h>

0 comments on commit 6178670

Please sign in to comment.