From owner-freebsd-ports@FreeBSD.ORG Mon Jan 12 16:59:45 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF5F7695 for ; Mon, 12 Jan 2015 16:59:45 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59A478D6 for ; Mon, 12 Jan 2015 16:59:45 +0000 (UTC) Received: from walrus.pepperland ([81.217.76.60]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MVN0w-1YHjSI44Eg-00YeIf; Mon, 12 Jan 2015 17:59:37 +0100 Message-ID: <54B3FD78.5060404@gmx.net> Date: Mon, 12 Jan 2015 17:59:36 +0100 From: Stefan Ehmann User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Mathieu Arnold , freebsd-ports@freebsd.org Subject: Re: poudriere: reduce the number of rebuilt packages? References: <54A67B1A.5060007@gmx.net> <54A97748.9000401@gmx.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xeakJZMBpA48CF+E8Zy7LVHsGmCLRxw+pEoX4XVQYHgPxUUIgwb z9mR3lpx09gSqbdxqJRg0Crcpl4goqOz8Jj+fGkFwW0xdQgOIC8FjUB31kvqzrfGOnDxE2d QY5tqI6B9OJIn7HMYG6aqq5C+5YhQLXz7SPtnSgLpKiG3245AY9gTr7S0LhuTDFLQoF+318 MBJDRJ+ADp40pj3cHRv7A== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 16:59:46 -0000 On 12.01.2015 01:27, Mathieu Arnold wrote: > +--On 4 janvier 2015 18:24:24 +0100 Stefan Ehmann wrote: > | On 02.01.2015 12:03, Stefan Ehmann wrote: > |> I've recently switched from portmaster to poudriere/'pkg upgrade' to > |> manage my port updates. Basically it works fine, but incremental builds > |> don't quite work as I expected. > |> > |> poudriere rebuilds all packages if any dependency has changed. If there > |> are only some ports with new versions, possibly hundreds of packages are > |> rebuilt. So far it looks like I'll end up rebuilding packages like > |> libreoffice/KDE/chromium several times a week. The rebuilt packages > |> won't even be installed by 'pkg upgrade' because their version number > |> has not changed. > | > | Here's an actual example from today. > | > | There are new versions for three ports. poudriere will rebuild 70 ports, > | 67 of them will never be installed on the host. > > You can't know that. > > Say there is a shlib change in one of the updated packages, its version is > bumped, or there is a new dependency, you need to rebuild the 67 ports, and > pkg will detect and reinstall them. I remember one instance where a library change was detected (Can't remember which package was affected). The package was re-installed although the version number did not change. But like 99% of the time packages without version bump will not be installed. One could argue that the version number should have been bumped in the other case. I understand that conservative rebuilding is important for the official pkg repo. But it would be nice to have a poudriere option to avoid rebuilds of ports without version bumps. If something should go horribly wrong every now and then, you can still fall back to the default rebuild behavior. I think it should be possibly provided that port versions are bumped correctly. But maybe I'm wrong.