From owner-freebsd-pkg@freebsd.org Wed Feb 24 10:52:36 2021 Return-Path: Delivered-To: freebsd-pkg@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 F33AB55887D for ; Wed, 24 Feb 2021 10:52:36 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Received: from mailgate2.uni-hannover.de (mailgate2.uni-hannover.de [130.75.2.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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dlt6X3KhJz4ph8; Wed, 24 Feb 2021 10:52:35 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Received: from intranet.aei.uni-hannover.de (ahin1.aei.uni-hannover.de [130.75.117.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgate2.uni-hannover.de (Postfix) with ESMTPS id C05E41D4D; Wed, 24 Feb 2021 11:47:14 +0100 (CET) Received: from comet2.terra.ger ([130.75.117.49]) by intranet.aei.uni-hannover.de (IBM Domino Release 9.0.1FP8) with ESMTP id 2021022411471395-104336 ; Wed, 24 Feb 2021 11:47:13 +0100 Date: Wed, 24 Feb 2021 11:47:13 +0100 From: Gerrit Kuehn To: Baptiste Daroussin Cc: freebsd-pkg@freebsd.org Subject: Re: config file installation/removal Message-ID: <20210224114713.591c5552@comet2.terra.ger> In-Reply-To: <20210218193417.lupbnayir4ji5nk3@aniel.nours.eu> References: <20210216122238.4057cde9@comet2.terra.ger> <20210218195136.6d3b6117@comet2.terra.ger> <20210218193417.lupbnayir4ji5nk3@aniel.nours.eu> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd12.1) MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 24/02/2021 11:47:14, Serialize by Router on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 24/02/2021 11:47:14, Serialize complete at 24/02/2021 11:47:14 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.102.4 at mailgate2 X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Dlt6X3KhJz4ph8 X-Spamd-Bar: ++++++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of gerrit.kuehn@aei.mpg.de has no SPF policy when checking 130.75.2.114) smtp.mailfrom=gerrit.kuehn@aei.mpg.de X-Spamd-Result: default: False [10.16 / 15.00]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[130.75.117.49:received]; RECEIVED_SPAMHAUS_CSS(4.00)[130.75.117.49:received]; GREYLIST(0.00)[pass,body]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.91)[0.913]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[mpg.de]; AUTH_NA(1.00)[]; RWL_MAILSPIKE_GOOD(0.00)[130.75.2.114:from]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_IN_DNSWL_MED(-0.20)[130.75.2.114:from]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.55)[0.551]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:680, ipnet:130.75.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-pkg] X-Spam: Yes X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 10:52:37 -0000 On Thu, 18 Feb 2021 20:34:17 +0100 Baptiste Daroussin wrote: Hello, Stefan just noted to me that relative and absolute links are treated differently here: I see the issue described when using an /absolute/ link like --- lrwxr-xr-x 1 root wheel 10 Feb 24 11:42 etc@ -> /etc/local --- but everything works as expected when using a /relative/ one like --- lrwxr-xr-x 1 root wheel 15 Feb 24 11:38 etc@ -> ../../etc/local --- Is this the desired behaviour? Absolute links worked just fine in this place until recently. Is there a reason for changing this? cu Gerrit > On Thu, Feb 18, 2021 at 07:51:36PM +0100, Gerrit Kuehn wrote: > > > > On Tue, 16 Feb 2021 12:22:38 +0100 > > Gerrit Kuehn wrote: > > > > > > Hello, > > > > I think I finally found the trigger for this: > > It happens on systems where I had moved /usr/local/etc to > > /etc/local and put a link in /usr/local instead: > > > > lrwxr-xr-x 1 root wheel 10 Aug 31 2018 etc@ -> /etc/local > > > > Moving the directory back to /usr/local/etc makes pkg behave as > > before. > > > > I've been using this for many years on many systems, but something > > in file handling must have changed in the pkg/ports recently > > causing this strange behaviour with sample files > > installation/removal. > > > > Any ideas why this changed? Is this a bug or a feature? > > > > > Hello, > > Can you try with pkg 1.16.3 which has just been committed to the tree > ? > > Best regards, > Bapt -- Dr. Gerrit Kuehn Max-Planck-Institut fuer Gravitationsphysik Albert-Einstein-Institut Callinstrasse 38 30167 Hannover