From patchwork Sun Feb 28 04:27:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: qblade X-Patchwork-Id: 27331 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3FE2227BC4D; Sun, 28 Feb 2021 04:29:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B9B1727BC4C for ; Sun, 28 Feb 2021 04:29:08 +0000 (GMT) Received: from localhost ([::1]:47804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGDhc-0006z3-18 for patchwork@mira.cbaines.net; Sat, 27 Feb 2021 23:29:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGDhW-0006yk-D0 for guix-patches@gnu.org; Sat, 27 Feb 2021 23:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGDhW-0006fl-5i for guix-patches@gnu.org; Sat, 27 Feb 2021 23:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGDhW-0003H3-16 for guix-patches@gnu.org; Sat, 27 Feb 2021 23:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46703] =?utf-8?b?5Zue5aSN77ya?= Re: [bug#46703] [PATCH] gnu: add bmake Resent-From: qblade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Feb 2021 04:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46703 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 46703@debbugs.gnu.org X-Debbugs-Original-Cc: "46703@debbugs.gnu.org" <46703@debbugs.gnu.org>, qblade via Guix-patches via Received: via spool by 46703-submit@debbugs.gnu.org id=B46703.161448648412509 (code B ref 46703); Sun, 28 Feb 2021 04:29:01 +0000 Received: (at 46703) by debbugs.gnu.org; 28 Feb 2021 04:28:04 +0000 Received: from localhost ([127.0.0.1]:45693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGDgV-0003FF-2E for submit@debbugs.gnu.org; Sat, 27 Feb 2021 23:28:03 -0500 Received: from mail-40138.protonmail.ch ([185.70.40.138]:50885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGDgS-0003F1-Pj for 46703@debbugs.gnu.org; Sat, 27 Feb 2021 23:27:57 -0500 Date: Sun, 28 Feb 2021 04:27:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614486468; bh=kAj4K4f7pKvQPBZOtejz+Te1Ii+6LsyKwilgik8OiLk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=iYSaDlhCmvFtThZe+jxIKABhyBYfCyvJ4gDe9sbb0ulUZNFBsIUx6WOkN7T1fndeq cyXitscQaWw5epBgaKnUVdsR0ssCiltybch12EwNupQT06sFYbY/yTkXNH1VA6sSl8 gyyVXVwtZf2kP0tTKTOifqoki6BQ0TVeC2oQMIqg= Message-ID: In-Reply-To: <87k0qt1ts2.fsf@nicolasgoaziou.fr> References: <87k0qt1ts2.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: qblade X-ACL-Warn: , qblade via Guix-patches X-Patchwork-Original-From: qblade via Guix-patches via From: qblade X-getmail-retrieved-from-mailbox: Patches OK From 3f04fd4d572ba8bf141324d60f3b0d3cc6fb2e4f Mon Sep 17 00:00:00 2001 From: qblade Date: Sun, 28 Feb 2021 02:48:39 +0000 Subject: [PATCH] gnu: Add bmake * gnu/packages/build-tools.scm (bmake): New variable. --- gnu/packages/build-tools.scm | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 63417e5b81..5cb2e5de5d 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Yuval Kogman ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2021 qblade ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,6 +38,8 @@ #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages adns) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) @@ -481,3 +484,52 @@ besides executing the make build command, updates the JSON compilation database file corresponding to that build, resulting in a command-line interface similar to Bear.") (license license:gpl3))) + +(define-public bmake + (package + (name "bmake") + (version "20210206") + (source + (origin + (method url-fetch) + (uri (string-append + "http://www.crufty.net/ftp/pub/sjg/bmake-" version ".tar.gz")) + (sha256 + (base32 + "07n9avzdg6gifrzyddnyzada5s5rzklvbqfpv5drljpxcgpqpvwg")))) + (build-system gnu-build-system) + (inputs + `(("bash" ,bash-minimal))) + (native-inputs + `(("coreutils" ,coreutils))) + (arguments + `(#:tests? #f ; test during build + #:phases + (modify-phases %standard-phases + (add-after 'configure 'fix-test ; fix from nixpkgs + (lambda _ + (substitute* "unit-tests/unexport-env.mk" + (("PATH=\t/bin:/usr/bin:/sbin:/usr/sbin") + "PATH := ${PATH}")))) + (add-after 'configure 'remove-fail-tests ;; need fix + (lambda _ + (substitute* "unit-tests/Makefile" + (("cmd-interrupt") + "")) + (substitute* "unit-tests/Makefile" + (("varmod-localtime") + ""))))) + #:configure-flags + (list + (string-append + "--with-defshell=" (assoc-ref %build-inputs "bash") "/bin/bash") + (string-append + "--with-default-sys-path=" (assoc-ref %outputs "out") "/share/mk")) + #:make-flags + (list "INSTALL=install"))) ;; use coreutils install + (home-page "http://www.crufty.net/help/sjg/bmake.htm") + (synopsis "BSD's make") + (description "bmake is a program designed to simplify the maintenance of + other programs. Its input is a list of specifications as to the files upon + which programs and other files depend.") + (license license:bsd-3))) -- 2.29.2