View | Details | Raw Unified | Return to bug 232836 | Differences between
and this patch

Collapse All | Expand All

(-)i/lang/crystal/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=		crystal
3
PORTNAME=		crystal
4
DISTVERSION=		0.26.1
4
DISTVERSION=		0.26.1
5
PORTREVISION=		1
5
CATEGORIES=		lang
6
CATEGORIES=		lang
6
MASTER_SITES=		https://unrelentingtech.s3.dualstack.eu-west-1.amazonaws.com/crystal/:bootstrap
7
MASTER_SITES=		https://unrelentingtech.s3.dualstack.eu-west-1.amazonaws.com/crystal/:bootstrap
7
DISTFILES=		${BOOTSTRAP_PATH}:bootstrap
8
DISTFILES=		${BOOTSTRAP_PATH}:bootstrap
(-)i/lang/crystal/files/patch-freebsd13 (+116 lines)
Added Link Here
1
--- src/compiler/crystal/semantic/flags.cr.orig
2
+++ src/compiler/crystal/semantic/flags.cr
3
@@ -29,6 +29,7 @@ class Crystal::Program
4
     set = flags_name.map(&.downcase).to_set
5
     set.add "darwin" if set.any?(&.starts_with?("macosx")) || set.any?(&.starts_with?("darwin"))
6
     set.add "freebsd" if set.any?(&.starts_with?("freebsd"))
7
+    set.add "freebsd11" if set.any?(&.starts_with?("freebsd11"))
8
     set.add "openbsd" if set.any?(&.starts_with?("openbsd"))
9
     set.add "unix" if set.any? { |flag| %w(cygnus darwin freebsd linux openbsd).includes?(flag) }
10
     set.add "win32" if set.any?(&.starts_with?("windows")) && set.any? { |flag| %w(gnu msvc).includes?(flag) }
11
--- src/lib_c/x86_64-portbld-freebsd/c/dirent.cr.orig
12
+++ src/lib_c/x86_64-portbld-freebsd/c/dirent.cr
13
@@ -4,20 +4,20 @@ lib LibC
14
   type DIR = Void
15
 
16
   struct Dirent
17
-    {% if flag?(:"freebsd12.0") %}
18
+    {% if flag?(:freebsd11) %}
19
+      d_fileno : UInt
20
+    {% else %}
21
       d_fileno : ULong
22
       d_off : ULong
23
-    {% else %}
24
-      d_fileno : UInt
25
     {% end %}
26
     d_reclen : UShort
27
     d_type : UChar
28
-    {% if flag?(:"freebsd12.0") %}
29
+    {% if flag?(:freebsd11) %}
30
+      d_namlen : UChar
31
+    {% else %}
32
       d_pad0 : UChar
33
       d_namlen : UShort
34
       d_pad1 : UShort
35
-    {% else %}
36
-      d_namlen : UChar
37
     {% end %}
38
     d_name : StaticArray(Char, 256)
39
   end
40
--- src/lib_c/x86_64-portbld-freebsd/c/sys/stat.cr.orig
41
+++ src/lib_c/x86_64-portbld-freebsd/c/sys/stat.cr
42
@@ -31,39 +31,39 @@ lib LibC
43
   struct Stat
44
     st_dev : DevT
45
     st_ino : InoT
46
-    {% if flag?(:"freebsd12.0") %}
47
-      st_nlink : NlinkT
48
+    {% if flag?(:freebsd11) %}
49
       st_mode : ModeT
50
-      st_pad0 : UShort
51
+      st_nlink : NlinkT
52
     {% else %}
53
-      st_mode : ModeT
54
       st_nlink : NlinkT
55
+      st_mode : ModeT
56
+      st_pad0 : UShort
57
     {% end %}
58
     st_uid : UidT
59
     st_gid : GidT
60
-    {% if flag?(:"freebsd12.0") %}
61
+    {% if !flag?(:freebsd11) %}
62
       st_pad1 : UInt
63
     {% end %}
64
     st_rdev : DevT
65
     st_atim : Timespec
66
     st_mtim : Timespec
67
     st_ctim : Timespec
68
-    {% if flag?(:"freebsd12.0") %}
69
+    {% if !flag?(:freebsd11) %}
70
       st_birthtim : Timespec
71
     {% end %}
72
     st_size : OffT
73
     st_blocks : BlkcntT
74
     st_blksize : BlksizeT
75
     st_flags : FflagsT
76
-    {% if flag?("freebsd12.0") %}
77
-      st_gen : ULong
78
-      st_spare : StaticArray(ULong, 10)
79
-    {% else %}
80
+    {% if flag?(:freebsd11) %}
81
       st_gen : UInt
82
       st_lspare : Int
83
       st_birthtim : Timespec
84
       __reserved_17 : UInt
85
       __reserved_18 : UInt
86
+    {% else %}
87
+      st_gen : ULong
88
+      st_spare : StaticArray(ULong, 10)
89
     {% end %}
90
   end
91
 
92
--- src/lib_c/x86_64-portbld-freebsd/c/sys/types.cr.orig
93
+++ src/lib_c/x86_64-portbld-freebsd/c/sys/types.cr
94
@@ -9,16 +9,16 @@ lib LibC
95
   alias DevT = UInt
96
   alias GidT = UInt
97
   alias IdT = Long
98
-  {% if flag?(:"freebsd12.0") %}
99
-    alias InoT = ULong
100
-  {% else %}
101
+  {% if flag?(:freebsd11) %}
102
     alias InoT = UInt
103
+  {% else %}
104
+    alias InoT = ULong
105
   {% end %}
106
   alias ModeT = UShort
107
-  {% if flag?(:"freebsd12.0") %}
108
-    alias NlinkT = ULong
109
-  {% else %}
110
+  {% if flag?(:freebsd11) %}
111
     alias NlinkT = UShort
112
+  {% else %}
113
+    alias NlinkT = ULong
114
   {% end %}
115
   alias OffT = Long
116
   alias PidT = Int

Return to bug 232836