From owner-svn-ports-head@freebsd.org Tue Aug 29 20:51:06 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA24DDE54E4; Tue, 29 Aug 2017 20:51:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2849709A2; Tue, 29 Aug 2017 20:51:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id E62CB14C22; Tue, 29 Aug 2017 20:51:05 +0000 (UTC) From: Jan Beich To: Jung-uk Kim Cc: Johannes M Dieterich , svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org Subject: Re: svn commit: r448928 - in head/graphics: . drm-next-kmod References: <201708291632.v7TGWJq0022465@repo.freebsd.org> <60d6-1emr-wny@FreeBSD.org> Date: Tue, 29 Aug 2017 22:50:59 +0200 In-Reply-To: (Jung-uk Kim's message of "Tue, 29 Aug 2017 16:46:04 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 20:51:07 -0000 Jung-uk Kim writes: > On 08/29/2017 13:13, Jan Beich wrote: > >> Johannes M Dieterich writes: >> >>> Author: jmd >>> Date: Tue Aug 29 16:32:19 2017 >>> New Revision: 448928 >>> URL: https://svnweb.freebsd.org/changeset/ports/448928 >>> >>> Log: >>> New port: graphics/drm-next-kmod. >> [...] >>> +USES= kmod uidfix >> >> Fails to build if SRC_BASE != /usr/src. With SRCTOP undefined the port >> relies on /sys symlink existing and pointing to a real location. The >> latter conflicts with $SRC_BASE/etc/Makefile hardcoding "usr/src/sys". >> >> Maybe add MAKE_ENV = SRCTOP="${SRC_BASE}" to fix the following. >> >> $ make DISABLE_MAKE_JOBS= >> ===> Building for drm-next-kmod-g20170825 >> ===> drm (all) >> Warning: Object directory not changed from original /usr/ports/graphics/drm-next-kmod/work/kms-drm-4ee5acb/drm >> ===> amd (all) >> make[3]: >> "/usr/ports/graphics/drm-next-kmod/work/kms-drm-4ee5acb/amd/Makefile" >> line 3: Cannot open /sys/conf/kern.opts.mk >> make[3]: Fatal errors encountered -- cannot continue >> make[3]: stopped in /usr/ports/graphics/drm-next-kmod/work/kms-drm-4ee5acb/amd >> *** Error code 1 > > Also, please fix non-root build while you're at it. Please see the > attached patch. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221915 ;) > +MAKE_ENV+= KMODOWN=${UID} KMODGRP=${GID} According to bsd.own.mk when USES=uidfix is set KMOD(OWN|GRP) inherit uid/group from BIN(OWN|GRP). Have you tried to omit the line?