pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/zig zig: update to today's (2019-02-27) snapshot ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5db9d251cbde
branches:  trunk
changeset: 392298:5db9d251cbde
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Feb 27 10:46:16 2019 +0000

description:
zig: update to today's (2019-02-27) snapshot of master.

Allows us to drop all the local patches that were merged upstream.
lld is not a dependency, zig by default bundles lld and doesn't use
an external one. comment it.

Andrew Kelley (62):
      Merge pull request #1975 from BenoitJGirard/master
      Merge pull request #1963 from matthew-mcallister/dedup-compile-log-warning
      Merge pull request #1972 from coypoop/netbsd
      README: add NetBSD to support table
      pull request fixups
      Merge branch 'emekoi-fix-1711'
      export _mh_execute_header with weak linkage
      docs: note top level declarations are order-independent
      docs: shadowing
      zig fmt: fix infix operator before multiline string literal
      add test for 74bdc1d1f898705
      Merge branch 'kristate-zig-backport-issue1944'
      remove --no-rosegment workaround now that valgrind bug is fixed
      valgrind client requests for undefined values
      Merge branch 'slice-deref-failure' of https://github.com/matthew-mcallister/zig into matthew-mcallister-slice-deref-failure
      pull request fixups
      Merge branch 'matthew-mcallister-slice-deref-failure'
      deduplicate compile errors for undeclared identifiers
      packed structs support comptime bitcasting
      extern structs support comptime bitcasting
      `@sliceToBytes` works at comptime
      better handling of arrays in packed structs
      better field access of types which have one possible value
      fix `@bitCast` when src/dest types have mismatched handle_is_ptr
      docs for packed structs
      add regression test for bitcast to array
      implement vector negation
      better libc detection (#1996)
      introduce std.debug.captureStackTrace
      fix `zig fmt` arg0 handled incorrectly
      add `zig cc` command to act like a C compiler
      zig cc: remove "polly" which was an undefined symbol on macos
      zig cc: work around clang calling GetCommandLine on Windows
      Merge pull request #2003 from ziglang/zig-cc
      first class support for compiling C code
      building DLLs on Windows works better
      `@cImport` works with `--cache on`
      Merge pull request #2005 from ziglang/c-source
      zig build: 2 improvements
      fix infinite recursion in type_has_one_possible_value
      delete incorrect TODO comment
      add docs for zero bit types and pointers to zero bit types
      fix not finding libgcc_s when looking for native libc
      add a compile error note when C import fails and not linking libc
      better error message when forgetting to link against libc
      add a regression test for #704
      fix incorrectly trying to memset at comptime
      fix the libc compile error tests to only run on linux
      use -nobuiltininc when compiling c code
      use -nostdinc++ when compiling C code
      use -nostdinc and sometimes -nolibc when compiling C code
      breaking changes to the way targets work in zig
      fix regressions on Windows
      introduce sys_include_dir for when sys/* files are not with stdlib.h
      add builder.addFmt API and use it to test stage1 zig fmt
      fix .gitignore file and add commit missing std lib file
      add test coverage for binary OR on error sets
      add test coverage for type used as switch case
      fix handling when there are multiple externs and
      fix stage1 zig fmt on macos
      improve docs for unions and switching on tagged unions
      windows returns EINVAL for fopen when there is an asterisk in the name

Benoit Jauvin-Girard (1):
      Fix std.math.powi so powi(x, +-0) = 1 for any x.

BenoitJGirard (2):
      Merge pull request #1 from ziglang/master
      Merge pull request #2 from ziglang/master

Jimmi HC (1):
      Fixed std.testing.expectEqual

John Schmidt (2):
      Some function doc tweaks (#1961)
      Add priority queue

LemonBoy (4):
      Silence gcc8 class-memaccess warnings
      Add align attribute for params pointers
      Translate parameterless C functions (#1978)
      Prevent crash in tagged enums rendering (#1986)

Matthew McAllister (3):
      Fix lvalue dereference type checking
      Deduplicate compile log statement warnings
      Check for duped error messages in compile tests

Maya Rashish (3):
      Add NetBSD support
      Undo local, unneeded patch
      Don't provide a bogus definition of EVFILT_USER

Quetzal Bradley (1):
      fix openWriteNoClobber and add test

emekoi (1):
      make @enumToInt work on union(enum)

kristopher tate (1):
      src/analyze.cpp: default to using `param_node` upon callconv error;

diffstat:

 lang/zig/Makefile                                             |   15 +-
 lang/zig/PLIST                                                |    4 +-
 lang/zig/distinfo                                             |   29 +-
 lang/zig/files/std_c_netbsd.zig                               |  116 -
 lang/zig/files/std_os_netbsd_errno.zig                        |  134 -
 lang/zig/files/std_os_netbsd_index.zig                        |  728 ----------
 lang/zig/patches/patch-CMakeLists.txt                         |   21 -
 lang/zig/patches/patch-src-self-hosted_libc__installation.zig |   13 -
 lang/zig/patches/patch-src_analyze.cpp                        |   43 -
 lang/zig/patches/patch-src_codegen.cpp                        |   14 -
 lang/zig/patches/patch-src_link.cpp                           |   30 -
 lang/zig/patches/patch-src_os.cpp                             |   61 -
 lang/zig/patches/patch-src_os.hpp                             |   13 -
 lang/zig/patches/patch-src_target.cpp                         |   20 -
 lang/zig/patches/patch-std_c_index.zig                        |   12 -
 lang/zig/patches/patch-std_debug_index.zig                    |   31 -
 lang/zig/patches/patch-std_event_fs.zig                       |  147 --
 lang/zig/patches/patch-std_event_loop.zig                     |  102 -
 lang/zig/patches/patch-std_heap.zig                           |   31 -
 lang/zig/patches/patch-std_os_file.zig                        |   31 -
 lang/zig/patches/patch-std_os_get__app__data__dir.zig         |   13 -
 lang/zig/patches/patch-std_os_get__user__id.zig               |   13 -
 lang/zig/patches/patch-std_os_index.zig                       |  192 --
 lang/zig/patches/patch-std_os_path.zig                        |   22 -
 lang/zig/patches/patch-std_os_time.zig                        |   49 -
 25 files changed, 13 insertions(+), 1871 deletions(-)

diffs (truncated from 2013 to 300 lines):

diff -r 0063f92050ec -r 5db9d251cbde lang/zig/Makefile
--- a/lang/zig/Makefile Wed Feb 27 06:25:46 2019 +0000
+++ b/lang/zig/Makefile Wed Feb 27 10:46:16 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2019/02/17 12:33:40 maya Exp $
+# $NetBSD: Makefile,v 1.2 2019/02/27 10:46:16 maya Exp $
 
-DISTNAME=      zig-0.3.0+8d2a9029
-PKGNAME=       zig-0.3.0.20190217
+DISTNAME=      zig-0.3.0+c59ce046
+PKGNAME=       zig-0.3.0.20190227
 CATEGORIES=    lang
 MASTER_SITES=  https://ziglang.org/builds/
 EXTRACT_SUFX=  .tar.xz
@@ -17,13 +17,8 @@
 CHECK_PORTABILITY_SKIP+=       ci/azure/macos_script
 BUILDLINK_TRANSFORM+=          rm:-Werror
 
-post-patch:
-       ${CP} ${FILESDIR}/std_c_netbsd.zig ${WRKSRC}/std/c/netbsd.zig
-       ${MKDIR} ${WRKSRC}/std/os/netbsd
-       ${CP} ${FILESDIR}/std_os_netbsd_index.zig ${WRKSRC}/std/os/netbsd/index.zig
-       ${CP} ${FILESDIR}/std_os_netbsd_errno.zig ${WRKSRC}/std/os/netbsd/errno.zig
-
 .include "../../lang/clang/buildlink3.mk"
 .include "../../lang/llvm/buildlink3.mk"
-.include "../../devel/lld/buildlink3.mk"
+# Using builtin lld
+#.include "../../devel/lld/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0063f92050ec -r 5db9d251cbde lang/zig/PLIST
--- a/lang/zig/PLIST    Wed Feb 27 06:25:46 2019 +0000
+++ b/lang/zig/PLIST    Wed Feb 27 10:46:16 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2019/02/17 12:33:40 maya Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/02/27 10:46:16 maya Exp $
 bin/zig
 lib/zig/include/__clang_cuda_builtin_vars.h
 lib/zig/include/__clang_cuda_cmath.h
@@ -130,6 +130,7 @@
 lib/zig/std/buf_set.zig
 lib/zig/std/buffer.zig
 lib/zig/std/build.zig
+lib/zig/std/build/fmt.zig
 lib/zig/std/c/darwin.zig
 lib/zig/std/c/freebsd.zig
 lib/zig/std/c/index.zig
@@ -291,6 +292,7 @@
 lib/zig/std/os/windows/util.zig
 lib/zig/std/os/zen.zig
 lib/zig/std/pdb.zig
+lib/zig/std/priority_queue.zig
 lib/zig/std/rand/index.zig
 lib/zig/std/rand/ziggurat.zig
 lib/zig/std/segmented_list.zig
diff -r 0063f92050ec -r 5db9d251cbde lang/zig/distinfo
--- a/lang/zig/distinfo Wed Feb 27 06:25:46 2019 +0000
+++ b/lang/zig/distinfo Wed Feb 27 10:46:16 2019 +0000
@@ -1,25 +1,6 @@
-$NetBSD: distinfo,v 1.1 2019/02/17 12:33:40 maya Exp $
+$NetBSD: distinfo,v 1.2 2019/02/27 10:46:16 maya Exp $
 
-SHA1 (zig-0.3.0+8d2a9029.tar.xz) = feb0fa613fe2618f3821c6da34a22f922eab320e
-RMD160 (zig-0.3.0+8d2a9029.tar.xz) = 7389eba74fc0d4e22c62e6bb66d94124e96539f4
-SHA512 (zig-0.3.0+8d2a9029.tar.xz) = 036f0499bbff5f0e55c27c151a1b0e028f895cd52683c664e227ff9875cf5989dbb6d0ea754744a47715a601cb9a9b06912bca911dc02e4195944f386e331995
-Size (zig-0.3.0+8d2a9029.tar.xz) = 2407768 bytes
-SHA1 (patch-CMakeLists.txt) = 550474426ed0db48da88331aab746b2c445010b9
-SHA1 (patch-src-self-hosted_libc__installation.zig) = c38b2b0f5dfe879c660f1f148a0a9f765f0faa3f
-SHA1 (patch-src_analyze.cpp) = 217f0f97e8f87cbc82800926b333bdd8b464a037
-SHA1 (patch-src_codegen.cpp) = a931d048856fdd88bc874d488d06546d8c0b9ed5
-SHA1 (patch-src_link.cpp) = 86c03aa8b51c3d2e3db2e894819ad9be063d57bc
-SHA1 (patch-src_os.cpp) = 6cf8da29be026f2f27284366e22861a87e26941e
-SHA1 (patch-src_os.hpp) = 0b79d1ec64b3d7c38a9b2a11ec109c0221e59871
-SHA1 (patch-src_target.cpp) = ff482758b378e0be8060d3b61e94420609de41ac
-SHA1 (patch-std_c_index.zig) = f9de821e37c0e8ae0393c6ac1570c74c4ac6faac
-SHA1 (patch-std_debug_index.zig) = 0abd1b5c7cc6bdfed7afc2cf6b30fa45856af566
-SHA1 (patch-std_event_fs.zig) = 2e00bc3091414620813ef980ce0e4ffd15fd19c3
-SHA1 (patch-std_event_loop.zig) = 93cb9faddf3235d1a521e6691231bbca0d9a9c47
-SHA1 (patch-std_heap.zig) = 3fc05b17612b7d54e1bdfdfcaecff87756bde74d
-SHA1 (patch-std_os_file.zig) = e24a5bc859dfe570ee1113670877384eb2826225
-SHA1 (patch-std_os_get__app__data__dir.zig) = 0da532e6d1d6d8c832c3b7e5f996df7923079f28
-SHA1 (patch-std_os_get__user__id.zig) = 432dc624afca19932138bf4a2c9234749dd48423
-SHA1 (patch-std_os_index.zig) = 84eb9d8ec5c85865a8ad86c0e1891866bfbe4173
-SHA1 (patch-std_os_path.zig) = 63616b927b611f0e26e157e4c51630e7155977ba
-SHA1 (patch-std_os_time.zig) = c13daf2e8e0f5a6c1a68a9cabe098de673df21a3
+SHA1 (zig-0.3.0+c59ce046.tar.xz) = c1a5a262fef10ed12fec379ef209f55bfbd8bde7
+RMD160 (zig-0.3.0+c59ce046.tar.xz) = cc2dbc20e860484eab291a722715db017c49a8be
+SHA512 (zig-0.3.0+c59ce046.tar.xz) = 285d14ac073b9b054170b9e58cd532d4e56741c3bf25e86615bacf333e5050b3f9f46b967e7742c61e79fe867ef2e7466445450acd8da78f522c1c59b1966607
+Size (zig-0.3.0+c59ce046.tar.xz) = 2433064 bytes
diff -r 0063f92050ec -r 5db9d251cbde lang/zig/files/std_c_netbsd.zig
--- a/lang/zig/files/std_c_netbsd.zig   Wed Feb 27 06:25:46 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,116 +0,0 @@
-extern "c" fn __errno() *c_int;
-pub const _errno = __errno;
-
-pub extern "c" fn kqueue() c_int;
-pub extern "c" fn kevent(
-    kq: c_int,
-    changelist: [*]const Kevent,
-    nchanges: c_int,
-    eventlist: [*]Kevent,
-    nevents: c_int,
-    timeout: ?*const timespec,
-) c_int;
-pub extern "c" fn sysctl(name: [*]c_int, namelen: c_uint, oldp: ?*c_void, oldlenp: ?*usize, newp: ?*c_void, newlen: usize) c_int;
-pub extern "c" fn sysctlbyname(name: [*]const u8, oldp: ?*c_void, oldlenp: ?*usize, newp: ?*c_void, newlen: usize) c_int;
-pub extern "c" fn sysctlnametomib(name: [*]const u8, mibp: ?*c_int, sizep: ?*usize) c_int;
-pub extern "c" fn getdirentries(fd: c_int, buf_ptr: [*]u8, nbytes: usize, basep: *i64) usize;
-pub extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) usize;
-pub extern "c" fn pipe2(arg0: *[2]c_int, arg1: u32) c_int;
-pub extern "c" fn preadv(fd: c_int, iov: *const c_void, iovcnt: c_int, offset: usize) isize;
-pub extern "c" fn pwritev(fd: c_int, iov: *const c_void, iovcnt: c_int, offset: usize) isize;
-pub extern "c" fn openat(fd: c_int, path: ?[*]const u8, flags: c_int) c_int;
-pub extern "c" fn setgid(ruid: c_uint, euid: c_uint) c_int;
-pub extern "c" fn setuid(uid: c_uint) c_int;
-pub extern "c" fn kill(pid: c_int, sig: c_int) c_int;
-pub extern "c" fn clock_gettime(clk_id: c_int, tp: *timespec) c_int;
-pub extern "c" fn clock_getres(clk_id: c_int, tp: *timespec) c_int;
-
-/// Renamed from `kevent` to `Kevent` to avoid conflict with function name.
-pub const Kevent = extern struct {
-    ident: usize,
-    filter: i32,
-    flags: u32,
-    fflags: u32,
-    data: i64,
-    udata: usize,
-};
-
-pub const pthread_attr_t = extern struct {
-    pta_magic: u32,
-    pta_flags: c_int,
-    pta_private: *c_void,
-};
-
-pub const msghdr = extern struct {
-    msg_name: *u8,
-    msg_namelen: socklen_t,
-    msg_iov: *iovec,
-    msg_iovlen: i32,
-    __pad1: i32,
-    msg_control: *u8,
-    msg_controllen: socklen_t,
-    __pad2: socklen_t,
-    msg_flags: i32,
-};
-
-pub const Stat = extern struct {
-    dev: u64,
-    mode: u32,
-    ino: u64,
-    nlink: usize,
-
-    uid: u32,
-    gid: u32,
-    rdev: u64,
-
-    atim: timespec,
-    mtim: timespec,
-    ctim: timespec,
-    birthtim: timespec,
-
-    size: i64,
-    blocks: i64,
-    blksize: isize,
-    flags: u32,
-    gen: u32,
-    __spare: [2]u32,
-};
-
-pub const timespec = extern struct {
-    tv_sec: i64,
-    tv_nsec: isize,
-};
-
-pub const dirent = extern struct {
-    d_fileno: u64,
-    d_reclen: u16,
-    d_namlen: u16,
-    d_type: u8,
-    d_off: i64,
-    d_name: [512]u8,
-};
-
-pub const in_port_t = u16;
-pub const sa_family_t = u8;
-
-pub const sockaddr = extern union {
-    in: sockaddr_in,
-    in6: sockaddr_in6,
-};
-
-pub const sockaddr_in = extern struct {
-    len: u8,
-    family: sa_family_t,
-    port: in_port_t,
-    addr: u32,
-    zero: [8]u8,
-};
-
-pub const sockaddr_in6 = extern struct {
-    len: u8,
-    family: sa_family_t,
-    port: in_port_t,
-    flowinfo: u32,
-    addr: [16]u8,
-    scope_id: u32,
-};
diff -r 0063f92050ec -r 5db9d251cbde lang/zig/files/std_os_netbsd_errno.zig
--- a/lang/zig/files/std_os_netbsd_errno.zig    Wed Feb 27 06:25:46 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-pub const EPERM = 1; // Operation not permitted
-pub const ENOENT = 2; // No such file or directory
-pub const ESRCH = 3; // No such process
-pub const EINTR = 4; // Interrupted system call
-pub const EIO = 5; // Input/output error
-pub const ENXIO = 6; // Device not configured
-pub const E2BIG = 7; // Argument list too long
-pub const ENOEXEC = 8; // Exec format error
-pub const EBADF = 9; // Bad file descriptor
-pub const ECHILD = 10; // No child processes
-pub const EDEADLK = 11; // Resource deadlock avoided
-// 11 was EAGAIN
-pub const ENOMEM = 12; // Cannot allocate memory
-pub const EACCES = 13; // Permission denied
-pub const EFAULT = 14; // Bad address
-pub const ENOTBLK = 15; // Block device required
-pub const EBUSY = 16; // Device busy
-pub const EEXIST = 17; // File exists
-pub const EXDEV = 18; // Cross-device link
-pub const ENODEV = 19; // Operation not supported by device
-pub const ENOTDIR = 20; // Not a directory
-pub const EISDIR = 21; // Is a directory
-pub const EINVAL = 22; // Invalid argument
-pub const ENFILE = 23; // Too many open files in system
-pub const EMFILE = 24; // Too many open files
-pub const ENOTTY = 25; // Inappropriate ioctl for device
-pub const ETXTBSY = 26; // Text file busy
-pub const EFBIG = 27; // File too large
-pub const ENOSPC = 28; // No space left on device
-pub const ESPIPE = 29; // Illegal seek
-pub const EROFS = 30; // Read-only file system
-pub const EMLINK = 31; // Too many links
-pub const EPIPE = 32; // Broken pipe
-
-// math software
-pub const EDOM = 33; // Numerical argument out of domain
-pub const ERANGE = 34; // Result too large or too small
-
-// non-blocking and interrupt i/o
-pub const EAGAIN = 35; // Resource temporarily unavailable
-pub const EWOULDBLOCK = EAGAIN; // Operation would block
-pub const EINPROGRESS = 36; // Operation now in progress
-pub const EALREADY = 37; // Operation already in progress
-
-// ipc/network software -- argument errors
-pub const ENOTSOCK = 38; // Socket operation on non-socket
-pub const EDESTADDRREQ = 39; // Destination address required
-pub const EMSGSIZE = 40; // Message too long
-pub const EPROTOTYPE = 41; // Protocol wrong type for socket
-pub const ENOPROTOOPT = 42; // Protocol option not available
-pub const EPROTONOSUPPORT = 43; // Protocol not supported
-pub const ESOCKTNOSUPPORT = 44; // Socket type not supported
-pub const EOPNOTSUPP = 45; // Operation not supported
-pub const EPFNOSUPPORT = 46; // Protocol family not supported
-pub const EAFNOSUPPORT = 47; // Address family not supported by protocol family
-pub const EADDRINUSE = 48; // Address already in use
-pub const EADDRNOTAVAIL = 49; // Can't assign requested address
-
-// ipc/network software -- operational errors
-pub const ENETDOWN = 50; // Network is down
-pub const ENETUNREACH = 51; // Network is unreachable
-pub const ENETRESET = 52; // Network dropped connection on reset
-pub const ECONNABORTED = 53; // Software caused connection abort
-pub const ECONNRESET = 54; // Connection reset by peer
-pub const ENOBUFS = 55; // No buffer space available
-pub const EISCONN = 56; // Socket is already connected
-pub const ENOTCONN = 57; // Socket is not connected
-pub const ESHUTDOWN = 58; // Can't send after socket shutdown
-pub const ETOOMANYREFS = 59; // Too many references: can't splice
-pub const ETIMEDOUT = 60; // Operation timed out
-pub const ECONNREFUSED = 61; // Connection refused
-
-pub const ELOOP = 62; // Too many levels of symbolic links
-pub const ENAMETOOLONG = 63; // File name too long
-
-// should be rearranged
-pub const EHOSTDOWN = 64; // Host is down
-pub const EHOSTUNREACH = 65; // No route to host
-pub const ENOTEMPTY = 66; // Directory not empty
-
-// quotas & mush
-pub const EPROCLIM = 67; // Too many processes
-pub const EUSERS = 68; // Too many users
-pub const EDQUOT = 69; // Disc quota exceeded
-
-// Network File System
-pub const ESTALE = 70; // Stale NFS file handle



Home | Main Index | Thread Index | Old Index