Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: fix "PLIST.orig already exists"
To:
ports@openbsd.org
Cc:
Peter Hessler <phessler@theapt.org>
Date:
Sun, 24 Mar 2024 10:04:21 +0100

Download raw body.

Thread
Le Sun, Mar 24, 2024 at 08:34:42AM +0000, Klemens Nanni a écrit :
> On Sat, Mar 23, 2024 at 04:11:04PM +0100, Peter Hessler wrote:
> > this error is worthless and a waste of time, stop generating it:
> >   /usr/ports/www/yt-dlp/pkg/PLIST changed but /usr/ports/www/yt-dlp/pkg/PLIST.orig exists
> 
> It says PLIST changed, but only internal plist info changed and not the
> actual file, so this is in fact an indicator to 'mv PLIST.new PLIST'.

fwiw, when doing port updates, i have this in my $SHELL history that i
frequently recall:
rm pkg/PLIST.orig ; mv pkg/PLIST.new  pkg/PLIST

PLIST.orig is usually from a previous update in the same port that i
never cleaned up. Iff we'd want to keep it, maybe we could move .orig to
.orig.$epoch, but other than that i'd silently (or verbosely ?) do:
mv pkg/PLIST pkg/PLIST.orig
mv pkg/PLIST.new pkg/PLIST

instead of manually having to act about a .orig i generally dont care
about.