From 6100697685a609b430361872822cbfb03c4c1fbc Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Mon, 28 Aug 2023 16:53:24 -0700 Subject: [PATCH] TOOL-22968 Integrate mold into linux-pkg repository --- package-lists/build/main.pkgs | 1 + packages/mold/config.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 packages/mold/config.sh diff --git a/package-lists/build/main.pkgs b/package-lists/build/main.pkgs index 697fa1d7..d96c1fb9 100644 --- a/package-lists/build/main.pkgs +++ b/package-lists/build/main.pkgs @@ -26,6 +26,7 @@ make-jpkg makedumpfile masking misc-debs +mold nfs-utils performance-diagnostics ptools diff --git a/packages/mold/config.sh b/packages/mold/config.sh new file mode 100644 index 00000000..2aee5848 --- /dev/null +++ b/packages/mold/config.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# +# Copyright 2019, 2020 Delphix +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# shellcheck disable=SC2034 + +DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/mold.git" + +UPSTREAM_GIT_URL=https://salsa.debian.org/pkg-llvm-team/mold.git +UPSTREAM_GIT_BRANCH=master + +function prepare() { + logmust install_build_deps_from_control_file +} + +function build() { + logmust dpkg_buildpackage_default +} + +function update_upstream() { + logmust update_upstream_from_git +}