
This patch adds license information for about 5,300 packages from automated sources. The license information was obtained from Alpine Linux and PyPI and processed using tooling available in https://github.com/boomanaiden154/spack-license-utils. The license field was added in after all other directives in an automated fashion. Note that while this license information is probably fairly accurate, it is not guaranteed to be accurate. In addition some of the license strings from Alpine Linux might not be valid SPDX license strings. Invalid SPDX identifiers can be picked up and fixed once we have validation/parsing infrastructure in place for the solver, and issues can be fixed as they come up.
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Dtc(MakefilePackage):
|
|
"""Device Tree Compiler (dtc) toolchain for working with device tree
|
|
source and binary files and also libfdt, a utility library for reading
|
|
and manipulating the binary format."""
|
|
|
|
homepage = "https://github.com/dgibson/dtc"
|
|
url = "https://github.com/dgibson/dtc/archive/refs/tags/v1.6.1.tar.gz"
|
|
|
|
license("GPL-2.0-or-later")
|
|
|
|
version("1.6.1", sha256="6401c9a0f577a270df4632bf0f3e5454ccc7a5ca3caefa67a3e1c29c9c6b8c60")
|
|
|
|
depends_on("bison", type="build")
|
|
# Build error with flex 2.6.3
|
|
# (convert-dtsv0-lexer.lex.c:398: error: "yywrap" redefined)
|
|
depends_on("flex@2.6.4:", type="build")
|
|
depends_on("libyaml", type="build")
|
|
depends_on("pkgconfig", type="build")
|
|
depends_on("python", type="build")
|
|
|
|
def edit(self, spec, prefix):
|
|
makefile = FileFilter("Makefile")
|
|
makefile.filter("PREFIX =.*", "PREFIX = %s" % prefix)
|
|
if self.spec.satisfies("%clang") or self.spec.satisfies("%fj"):
|
|
makefile.filter(
|
|
r"WARNINGS = -Wall", "WARNINGS = -Wall -Wno-unused-command-line-argument"
|
|
)
|