Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2021 03:33:23 GMT
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 939745d4c390 - main - Uses/kmod: Only IGNORE when src is not available in build target
Message-ID:  <202105270333.14R3XNvU013392@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=939745d4c3901027f4f2eb6ed327eaed4def9e45

commit 939745d4c3901027f4f2eb6ed327eaed4def9e45
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2021-05-27 03:33:13 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-05-27 03:33:13 +0000

    Uses/kmod: Only IGNORE when src is not available in build target
    
    This enables to fetch and checksum on a host without src, for example, a
    distfile mirroring service.
    
    Reviewed by:    rene
    Differential Revision:  https://reviews.freebsd.org/D30345
---
 Mk/Uses/kmod.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index 0e786d96ee7e..26400765b6b6 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -19,7 +19,7 @@ _DEBUG_KMOD=	yes
 IGNORE=	USES=kmod takes either no arguments or 'debug'
 .endif
 
-.if !exists(${SRC_BASE}/sys/Makefile)
+.if !exists(${SRC_BASE}/sys/Makefile) && target(build)
 IGNORE=	requires kernel source files in SRC_BASE=${SRC_BASE}
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105270333.14R3XNvU013392>