From owner-freebsd-ports@freebsd.org Sat Aug 27 16:59:21 2016 Return-Path: Delivered-To: freebsd-ports@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 BA1D3B77F29 for ; Sat, 27 Aug 2016 16:59:21 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B90D253 for ; Sat, 27 Aug 2016 16:59:21 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-it0-x230.google.com with SMTP id e63so42557456ith.1 for ; Sat, 27 Aug 2016 09:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2nL0D+lRKwXXKFcMoCjiT7hA9XHsuq6scbGq56hk7cU=; b=XIa9jnk1gKeY6j9g44lxzm5KPfckb7EPvB6+xVqPO4pU7nkMido/0u+ghxa4TnPbhp RPKJZLcwN2kI39+CXNYA1XAAtyHqU1ziDN9b8uXrFZRmup3FOvwhlpyn89D5XOh9mUWV OTCwt/w/vO7S28ul0kB2/PXSc1oIOpLzcybUiTfldO3vXstAlNheGl4hEHLDb48rS9q/ 1nkqmgBIYp+52dfMfSG8mxhqR5fWSgwBKwI+1xu5E4yywsOH2WhH7+WdsZpWiAS199zK opb6MF3AZjFnvGDZPR11tKjbfQ22uCWqchKBuI6XoEb4aeVkOG5T7HLDkSK/UvvSMK7p Lv1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2nL0D+lRKwXXKFcMoCjiT7hA9XHsuq6scbGq56hk7cU=; b=Q06WICAFk/Z1JR0+smI7Imb6VZSF8cu7T/c4q6192ylbbs4BdWlzVvxocQIXTRF/ZT HGYqsOwpv9TlhLgQa4hKpxRii0ASHjIaQpS5xsDGzS7G5A8AzWXdcya0Z+OQKMX/YEtb pi70MooDijY9YqqcPcFEd6tfKpleF8IR2ZaU9wb9gU7Hswti3a34Z7fCKRs4jsj562XL slFqlATHaWYhAPpAKtU8bP2MkNfqdGt9rWpYBHItQhef39Vf8im1pxsX+xkkQc0BIkVe rgXyKrY3DzDYFdvedtj+e9kf3ZYpBTOK52UuS1EpxH4RV+vBDslxu8Yag5EX24jKW47Z sY0g== X-Gm-Message-State: AE9vXwMAzImbiLi1L3aN0m99s+wojN3BVpDI2iAn2KWWd8Mk/8iwRN2lN13nUNKbTItxlOyFLiNVoSBC0LKmNw== X-Received: by 10.107.129.152 with SMTP id l24mr10771635ioi.179.1472317160842; Sat, 27 Aug 2016 09:59:20 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.109.141 with HTTP; Sat, 27 Aug 2016 09:59:20 -0700 (PDT) In-Reply-To: References: <58f20db2-7d41-ee44-0ab3-0c57f638eee3@pinyon.org> <20160827134659.GT79735@over-yonder.net> From: Kevin Oberman Date: Sat, 27 Aug 2016 09:59:20 -0700 X-Google-Sender-Auth: W8fABvoQn7BtH01_8FElulKCGjc Message-ID: Subject: Re: Forcing poudriere to rebuild a package and all dependencies To: "Russell L. Carter" Cc: "Matthew D. Fuller" , FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2016 16:59:21 -0000 On Sat, Aug 27, 2016 at 9:10 AM, Russell L. Carter wrote: > On 08/27/16 06:46, Matthew D. Fuller wrote: > >> On Fri, Aug 26, 2016 at 03:21:16PM -0700 I heard the voice of >> Russell L. Carter, and lo! it spake thus: >> >>> >>> Here's my /usr/local/etc/poudriere.d/make.conf, [...] >>> [...] >>> # Set this to the list of ports you wish to rebuild every time the >>> # kernel is built. >>> PORTS_MODULES=nvidia-driver-340 nvidia-driver virtualbox-ose-kmod >>> sysutils/vm-bhyve sysutils/pefs-kmod >>> >> >> Incidentally, PORTS_MODULES is a var used by the _kernel_ build, not >> anything in the _ports_, so setting it in the poudriere environment >> doesn't do anything. >> >> >> > Hmm, ok. How would a kernel build know anything at all about building > a specific port? I'm apparently missing something... > > Thanks, > Russell > It doesn't, really. PORT_MODULES simply tells the kernel build to kick off a make for the specified ports. This is intended for ports which build kernel modules that should always be rebuilt for a new kernel. While there is an attempt made to keep the KBI stable within a major release, it isnot realy always possible and, since the KBI is only used by the kernel itself, changes to the KBI were always "safe". But with kernel modules from external sources (i.e. ports), this is no longer true. The result was the PORT_MODULES make variable which causes the kernel install to rebuild the modules listed whenever the kernel is rebuilt. This guarantees that the modules are in sync with the kernel on those occasions when the KBI is changed. It also is relevant to when ports go mucking around in the kernel such as with lsof. My src.conf contains "PORTS_MODULES=emulators/virtualbox-ose-kmod multimedia/cuse4bsd-kmod sysutils/lsof". I might also mention that this fuction is very tricky and gets broken too often. As of about three weeks ago cuse4bsd-kmod fails to build and I also see the PORTS_MODULES are getting built in the buildkernel which seems wrong to me. It used to only take place in installkernel. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683