From owner-freebsd-ports@freebsd.org Tue Oct 4 12:03:31 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 6F3EBAF4687 for ; Tue, 4 Oct 2016 12:03:31 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay108.isp.belgacom.be (mailrelay108.isp.belgacom.be [195.238.20.135]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C438E1C9 for ; Tue, 4 Oct 2016 12:03:30 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C+BAASmvNX/9SdgG1dGgEBAQECAQEBA?= =?us-ascii?q?QgBAQEBgz0BAQEBAR5JgQqkMZYthh4CgXU9EAECAQEBAQEBAV4nhGIBAQQ6HCM?= =?us-ascii?q?QCxgJJQ8qHgYTiFG+LwEBAQEBAQEDAQEBASOLEYQjhgIBBJl5j2pxjwuMcIN+N?= =?us-ascii?q?R9MhFU8NIUqgi8BAQE?= Received: from 212.157-128-109.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([109.128.157.212]) by relay.skynet.be with ESMTP; 04 Oct 2016 14:03:27 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id u94C3Qwi065636; Tue, 4 Oct 2016 14:03:26 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Tue, 4 Oct 2016 14:03:26 +0200 From: Tijl Coosemans To: Gerhard Schmidt Cc: freebsd-ports@freebsd.org Subject: Re: make clean failes to cleanup everything Message-ID: <20161004140326.5d699d2c@kalimero.tijl.coosemans.org> In-Reply-To: <51668ef0-38fa-277c-8a70-6746418db703@ze.tum.de> References: <20161004124833.07053231@kalimero.tijl.coosemans.org> <51668ef0-38fa-277c-8a70-6746418db703@ze.tum.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2016 12:03:31 -0000 On Tue, 4 Oct 2016 13:36:29 +0200 Gerhard Schmidt wrote: > Am 04.10.2016 um 12:48 schrieb Tijl Coosemans: >> On Tue, 4 Oct 2016 09:52:23 +0200 Gerhard Schmidt wrote: >>> make clean fails to clean autoconf and automake. >>> >>> If a port uses autoconf and autoconf isn't installed on the system, it >>> will be build and installed. >>> >>> if you run make clean after installing the port, every dependency is >>> cleaned as well but not autoconf. >> >> Can you give an example of such a port, because we have two mechanisms >> that can pull in autoconf. > > It's seams to be quite a complex problem. > > To find out which ports causes this problem tried to build lang/php56 > which uses autoconf. But when I do a make clean autoconf is cleaned as > well. > > [root@etustar /usr/ports/lang/php56]# make clean > ===> Cleaning for autoconf-2.69_1 > ===> Cleaning for php56-5.6.25_1 > > But it also installs help2man, gmake, p5-Locale-gettext-1.06 and > autoconf-wrapper-20131203 and these are not cleaned. > > The transcript is attached as typescript_clean > > now do a pkg autoremove which removes autoconf and the missed ports form > the system. > > now try again to compile php56 and it fails > > the transcript is attached as typescript_unclean > > It seams that dependencies of dependencies are not clean. It seams that > autoconf was only the most memorable one. This seems to be intended. Make clean runs make limited-clean-depends which cleans direct dependencies only. If you want to do full recursive clean you have to run make clean-depends.