From owner-freebsd-pkgbase@freebsd.org Wed May 20 22:45:00 2020 Return-Path: Delivered-To: freebsd-pkgbase@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D3582F7437 for ; Wed, 20 May 2020 22:45:00 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49S79l6K2qz3gGW for ; Wed, 20 May 2020 22:44:59 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from [10.70.7.24] ([10.70.7.24]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 04KMiwRC048071 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 20 May 2020 22:44:58 GMT (envelope-from list1@gjunka.com) Subject: Re: The new graphics ports and pkg-base To: Pete Wright , freebsd-pkgbase@freebsd.org References: From: Grzegorz Junka Message-ID: Date: Wed, 20 May 2020 23:44:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 49S79l6K2qz3gGW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-2.68 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; NEURAL_HAM_LONG(-0.83)[-0.825]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gjunka.com]; NEURAL_HAM_MEDIUM(-0.92)[-0.922]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.63)[-0.631]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2020 22:45:00 -0000 On 20/05/2020 17:30, Pete Wright wrote: > > > On 5/20/20 12:45 AM, Grzegorz Junka wrote: >> I am trying to understand the impact of distributing ports with >> sources on building and packaging base with pkg. >> >> If I understand correctly, some ports, when installed with pkg, >> extract sources, which then supposed to be compiled with the kernel. >> >> For instance, drm-current-kmod extracts lots of files into >> /usr/local/sys/modules/ > > hrm I am not seeing that behavior on my end: > $ pkg list drm-devel-kmod > /boot/modules/amdgpu.ko > /boot/modules/drm.ko > /boot/modules/i915kms.ko > /boot/modules/linuxkpi_gplv2.ko > /boot/modules/radeonkms.ko > /boot/modules/ttm.ko > /boot/modules/vboxvideo.ko > /boot/modules/vmwgfx.ko > /usr/local/share/licenses/drm-devel-kmod-5.2.g20200515/BSD2CLAUSE > /usr/local/share/licenses/drm-devel-kmod-5.2.g20200515/GPLv2 > /usr/local/share/licenses/drm-devel-kmod-5.2.g20200515/LICENSE > /usr/local/share/licenses/drm-devel-kmod-5.2.g20200515/MIT > /usr/local/share/licenses/drm-devel-kmod-5.2.g20200515/catalog.mk > $ > > maybe i'm missing something though and this behavior only happens on > systems using pkg-base?  i believe there was some discussion about > bundling the required source to build drm-kmod locally in a similar > fashion as linux dkms, but i'm not sure if that's progressed. Have a look at this commit (comments and the pkg-plist): https://reviews.freebsd.org/D20990 Also here https://github.com/freebsd/freebsd-ports/blob/master/graphics/drm-current-kmod/pkg-plist There is also the following comment in an email titled "drm drivers project report (week of May 4th)" which "Emmanuel Vadot" posted to freebsd-current and freebsd-x11: > As the drm-kmod ports install the sources in the system a kernel > compilation will rebuild those modules and install them in /boot/kernel > whereas using https://github.com/freebsd/drm-kmod/ will install > everything in /boot/modules I am not sure about drm-devel-kmod but I can confirm that a binary drm-current-kmod does contain sources and installs them when the port is installed. You can see those files in the commit I posted above. GrzegorzJ