Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: zig
Upstream-Contact: Andrew Kelley <andrew@ziglang.org>
Source: https://ziglang.org/
Comment:
 This package is in non-free because it contains:
 .
 1. stage1/zig1.wasm - a precompiled WebAssembly binary used to bootstrap
    the compiler. While the source code that produced it is MIT-licensed and
    included in this tree, the binary itself is not the "preferred form of
    modification" per DFSG §2.
 .
 2. lib/std/compress/testdata/rfc8478.txt and rfc1951.txt - verbatim copies
    of IETF RFCs, copyrighted by the IETF Trust under BCP 78, which prohibits
    modification outside the IETF Standards Process (DFSG §3).

Files: *
Copyright: 2015-2026 Zig contributors
License: Expat

Files: debian/*
Copyright: 2026 Google LLC
License: Expat

Files: stage1/zig1.wasm
Copyright: 2015-2026 Zig contributors
License: Expat
Comment: Precompiled WebAssembly binary produced by compiling the Zig compiler
 (MIT-licensed source included in this tree) to WASM. Used to bootstrap the
 build. This binary is the reason the package is in non-free — it is not the
 "preferred form of modification" per DFSG §2.

Files: lib/*
Copyright: 2014-2025 Andrew Kelley
           2015-2025 Zig contributors
License: Expat

Files: lib/libunwind/*
Copyright: 2009-2024 LLVM contributors
License: Apache-2.0-LLVM

Files: lib/libcxx/*
Copyright: 2003-2024 LLVM contributors
           2003-2017 University of Illinois at Urbana-Champaign
License: Apache-2.0-LLVM

Files: lib/libtsan/*
Copyright: 2009-2024 LLVM contributors
License: Apache-2.0-LLVM
Comment: Vendored ThreadSanitizer runtime from LLVM compiler-rt. Required for
 Zig's -fsanitize=thread support. This code is DFSG-free (Apache-2.0 with
 LLVM exception) but was excluded from nick black's +dfsg package to reduce
 copyright audit burden. We include it for full functionality.

Files: lib/libc/musl/*
Copyright: 2005-2020 Rich Felker and musl contributors
           2012-2020 ARM Limited
           2009-2011 Bruce D. Evans, Steven G. Kargl, David Schultz
           2011-2012 Nicholas J. Kain
           2008 Steven G. Kargl, David Schultz, Bruce D. Evans
           1993-2004 Sun Microsystems, Inc.
License: Expat

Files: lib/libc/mingw/*
Copyright: 2005-2020 mingw-w64 contributors
           1984-1995 Stephen L. Moshier
           1993 Sun Microsystems, Inc.
License: ZPL-2.1

Files: lib/libc/glibc/*
Copyright: 1991-2024 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: lib/libc/wasi/*
Copyright: 2019-2024 WASI contributors
License: Apache-2.0-LLVM and Expat
Comment: Multi-licensed under Apache-2.0 with LLVM Exceptions, Apache-2.0,
 and MIT. Portions under CC0 (dlmalloc), MIT (emmalloc, musl), and
 BSD-2-Clause (cloudlibc).

Files: lib/libc/darwin/*
Copyright: 2015-2025 Zig contributors
License: Expat
Comment: Apple platform tbd (text-based definition) stubs and SDK settings.

Files: lib/libc/include/aarch64-linux-any/asm/*
       lib/libc/include/any-linux-any/*
       lib/libc/include/arc-linux-any/asm/*
       lib/libc/include/arm-linux-any/asm/*
       lib/libc/include/csky-linux-any/asm/*
       lib/libc/include/hexagon-linux-any/asm/*
       lib/libc/include/loongarch-linux-any/asm/*
       lib/libc/include/m68k-linux-any/asm/*
       lib/libc/include/mips-linux-any/asm/*
       lib/libc/include/powerpc-linux-any/asm/*
       lib/libc/include/riscv-linux-any/asm/*
       lib/libc/include/s390x-linux-any/asm/*
       lib/libc/include/sparc-linux-any/asm/*
       lib/libc/include/x86-linux-any/asm/*
       lib/libc/include/xtensa-linux-any/asm/*
Copyright: Linux kernel contributors
License: GPL-2.0-only

Files: lib/libc/include/generic-glibc/*
Copyright: 1991-2024 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: lib/libc/include/generic-musl/*
Copyright: 2005-2020 Rich Felker and musl contributors
License: Expat

Files: lib/include/*
Copyright: 2009-2024 LLVM contributors
           2002-2024 Intel Corporation
           2004-2024 ARM Limited
License: Apache-2.0-LLVM
Comment: Vendored clang/LLVM intrinsic headers. These need to match the
 exact LLVM version used to build Zig. Zig patches some of these files.

Files: lib/std/compress/testdata/rfc8478.txt
Copyright: 2018 IETF Trust and the persons identified as the document authors
License: BCP-78
Comment: Verbatim copy of IETF RFC 8478 (Zstandard compression format).
 Used as test data for std.compress. Licensed under BCP 78 which prohibits
 modifications outside the IETF Standards Process, violating DFSG §3.

Files: lib/std/compress/flate/testdata/rfc1951.txt
Copyright: 1996 IETF Trust and the persons identified as the document authors
License: BCP-78
Comment: Verbatim copy of IETF RFC 1951 (DEFLATE compression format).
 Used as test data for std.compress.flate.

Files: src/zig_llvm*.cpp src/zig_clang*.cpp
Copyright: 2015-2025 Andrew Kelley
License: Expat
Comment: These files interface with LLVM C++ APIs but are copyright
 Andrew Kelley and MIT-licensed, not LLVM-licensed.

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including
 without limitation the rights to use, copy, modify, merge, publish,
 distribute, sublicense, and/or sell copies of the Software, and to
 permit persons to whom the Software is furnished to do so, subject to
 the following conditions:
 .
 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

License: Apache-2.0-LLVM
 On Debian systems the full text of the Apache Software License 2.0 can be
 found in the `/usr/share/common-licenses/Apache-2.0' file.
 .
 ---- LLVM Exceptions to the Apache 2.0 License ----
 .
 As an exception, if, as a result of your compiling your source code, portions
 of this Software are embedded into an Object form of such source code, you
 may redistribute such embedded portions in such Object form without complying
 with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
 .
 In addition, if you combine or link compiled forms of this Software with
 software that is licensed under the GPLv2 ("Combined Software") and if a
 court of competent jurisdiction determines that the patent provision (Section
 3), the indemnity provision (Section 9) or other Section of the License
 conflicts with the conditions of the GPLv2, you may retroactively and
 prospectively choose to deem waived or otherwise exclude such Section(s) of
 the License, but only in their entirety and only with respect to the Combined
 Software.

License: BSD-2-Clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 1. Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

License: ZPL-2.1
 On Debian systems the full text of the Zope Public License 2.1 can be
 found in the `/usr/share/common-licenses/ZPL-2.1' file.

License: LGPL-2.1+
 On Debian systems the full text of the GNU Lesser General Public
 License version 2.1 can be found in the file
 `/usr/share/common-licenses/LGPL-2.1'.

License: GPL-2.0-only
 On Debian systems the full text of the GNU General Public License
 version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
 .
 NOTE! This copyright does *not* cover user programs that use kernel
 services by normal system calls - this is merely considered normal use
 of the kernel, and does *not* fall under the heading of "derived work".

License: BCP-78
 This document is subject to BCP 78 and the IETF Trust's Legal
 Provisions Relating to IETF Documents
 (https://trustee.ietf.org/license-info) in effect on the date of
 publication of this document. Please review these documents carefully,
 as they describe your rights and restrictions with respect to this
 document.
