From owner-freebsd-pkgbase@freebsd.org Wed May 20 23:46:23 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 BE0462F8305 for ; Wed, 20 May 2020 23:46:23 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49S8XY6ZYlz40gY for ; Wed, 20 May 2020 23:46:21 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.159] (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id eac5b61c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 20 May 2020 23:46:19 +0000 (UTC) Subject: Re: The new graphics ports and pkg-base To: Grzegorz Junka , freebsd-pkgbase@freebsd.org References: From: Pete Wright Message-ID: Date: Wed, 20 May 2020 16:46:19 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; 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-US X-Rspamd-Queue-Id: 49S8XY6ZYlz40gY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-2.61 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.82)[-0.816]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_MEDIUM(-0.78)[-0.777]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.71)[-0.712]; 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:25795, ipnet:174.136.96.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[23.243.161.111:received] 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 23:46:23 -0000 On 5/20/20 3:44 PM, Grzegorz Junka wrote: > 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. > i am sorry, i had misread which version of the kmod you were referring to.  i am not sure why this is not implemented on the drm-devel-kmod port.  for this specific port it may be worth pinging the freebsd-x11@ mailing list as they would be able to provide more insight into this change. -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA