From owner-freebsd-x11@freebsd.org Wed Aug 14 17:07:43 2019 Return-Path: Delivered-To: freebsd-x11@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 3F9CAB28C3 for ; Wed, 14 Aug 2019 17:07:43 +0000 (UTC) (envelope-from sghctoma@gmail.com) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467wxp38Hsz4ZYY for ; Wed, 14 Aug 2019 17:07:42 +0000 (UTC) (envelope-from sghctoma@gmail.com) Received: by mail-wm1-x32b.google.com with SMTP id 10so5208932wmp.3 for ; Wed, 14 Aug 2019 10:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5oLzmSU8ClHreh9u1FTY/RJU9FoCcUVleQuojIPZVYc=; b=uEIgRI89sXt4gX/bDZAdYXm+2dZpAh9/Os6Py7HCzyidc+C7CYkGsACTekLa+5JcE8 IZU2JZFnjdFzFLyNmPqgWSvw7rHNbFJ83+qZbtclV7MJO6KEPXM1RBcFMKSRONgUhGVP es+HP+6YQliMIHtW98pXzMZCebGm9SoxkCp8GEq7bqPmyCNCe9KLYsqylkf4zEyv70Va JdLzEdvMh/J4CkkqenlSbfSBxoKpsaYvusbFyCb6rPJPq/Sh/cdQoOZOZbCbQSU/84dV oVqDVWNj3vSOA7o0iEP/+hBRfXEaemIYbrhjINzmpW0GqoagBCEkDoJNOBo9xga2L1H8 o9yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5oLzmSU8ClHreh9u1FTY/RJU9FoCcUVleQuojIPZVYc=; b=i8u5vzxZa4PIKwS5QTRe742HOEL/jQ+tkSB6CX2NiOcJpCrv95PdGgNuYsKHKthtin ZKe3YPbg1QkI/ZLDy1ixi0aNY5ZKJbCsqTNsxBxmh8tK4D7HFONTPzFWVKk2WhW7ypJW CShPBCxa7Kg4rpN8Jic25dyjLOun/o8ay2irLK+r0tP2dbvpy8qoZxVtckFbQRz8zAUh hvxnR6Uc5HyxFEnm+oBREcsi7nkJYdn9sGf2vMcg0gpg0oLn0+hL0M+lgscXRkAt+n/C G5SCGompRxdcdNKzujkyIO+P+dzFJK8uOVsMUKzl7fYqUD3eq1+5wvj7Ih4x+SpZEksh dZjw== X-Gm-Message-State: APjAAAWy/bw4gaeQrLdcr5E5QRSlJyLhwO/EBMc4iAmdLYwiz3m9TRnx qrDuuNQjptbVe49fhVesuMLt0R3F X-Google-Smtp-Source: APXvYqwXyUpKvuySPjy30G86pmV+wuV5tGrmHlzmeF5LGs+9zRWQTayu0nKFvASxCFUOE4P9RNaNrA== X-Received: by 2002:a1c:610a:: with SMTP id v10mr117263wmb.151.1565802460349; Wed, 14 Aug 2019 10:07:40 -0700 (PDT) Received: from localhost (catv-176-63-27-71.catv.broadband.hu. [176.63.27.71]) by smtp.gmail.com with ESMTPSA id v12sm235685wrr.87.2019.08.14.10.07.39 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 10:07:39 -0700 (PDT) Date: Wed, 14 Aug 2019 19:07:38 +0200 From: Tamas Szakaly To: freebsd-x11@freebsd.org Subject: Re: HEADSUP: drm-current-kmod now installs sources Message-ID: <20190814170738.cqoaspmzmredxjyl@pamparam> Mail-Followup-To: freebsd-x11@freebsd.org References: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 467wxp38Hsz4ZYY X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uEIgRI89; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sghctoma@gmail.com designates 2a00:1450:4864:20::32b as permitted sender) smtp.mailfrom=sghctoma@gmail.com X-Spamd-Result: default: False [2.53 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(0.00)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.991,0]; RECEIVED_SPAMHAUS_PBL(0.00)[71.27.63.176.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[71.27.63.176.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.4]; R_DKIM_ALLOW(0.00)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.986,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; IP_SCORE(0.00)[ip: (-9.31), ipnet: 2a00:1450::/32(-3.03), asn: 15169(-2.39), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[b.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2019 17:07:43 -0000 On Tue, Aug 13, 2019 at 02:58:23PM -0700, John Baldwin wrote: > With help from zeising@ in particular, I've just committed a change > to the drm-current-kmod port that makes it install sources into > /usr/local/sys/modules by default. This will result in some behavior > changes on HEAD (and only head for now): > > 1) When you build a kernel after installing the updated package, > your buildkernel will now build DRM modules using the sources > from the package. For developers at least I suspect this to be > a win as if you have made changes to the kernel KBI you will > always end up with matching modules installed into /boot/kernel > alongside your kernel. > > 2) In order to use these modules, you need to update the 'kld_list' > lines in your rc.conf to just list the modules without a > path, e.g. "kld_list=i915kms" just as you would for other > modules. This will prefer the module built with your kernel if > one exists and fall back to the module in /boot/modules > otherwise. > > If a change in current breaks the build of DRM modules, you have a > couple of options: > > 1) Pass 'LOCAL_MODULES=' (empty string) on the command line of > 'make buildkernel' to disable building the DRM modules. > > 2) Hack on the sources in /usr/local/sys/modules/drm-current-kmod > to fix the compile breakage, perhaps using a patch from the > mailing lists if one exists. > > 3) Wait for a new package/port version and update to that before > doing a buildkernel. > > For developers this means even if you are doing testing on a box > that doesn't use DRM, you can install the package so that kernel > builds will try to compile it and hopefully spot KPI/KBI changes > before they land in the tree so that the port/package can be > patched in tandem with committing changes to HEAD. Note that even > builds of work trees in git checkouts, etc. will find the DRM > modules and try to build them if the package is installed. > > -- > John Baldwin Hi all, Am I correctly assuming that the only advantage of this approach over having "PORTS_MODULES+= graphics/drm-current-kmod" in /etc/src.conf is that you don't have to have the ports tree? And if I'm seeing things correctly, not building from the ports tree have a disatvantage: If I want to update both my kernel and the module, I have to install the updated module to get the latest sources, and than I can build the kernel, which rebuilds the module. If there is no package yet for the module, I have to build the module twice - or maybe put the updated sources to /usr/local/sys manually. When using PORTS_MODULES, I can just update the ports tree and build the kernel. Regards, Toma