🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.ports
3 messages
3 total messages Started by Jason Bacon Sun, 25 Oct 2026 12:48
PORTNAME changes
#70
Author: Jason Bacon
Date: Sun, 25 Oct 2026 12:48
22 lines
6206 bytes
Do we have a way to change PORTNAME without breaking pkg-upgrade?

Pkgssrc has the SUPERSEDES variable:

https://www.netbsd.org/docs/pkgsrc/submit.html#renaming-package

I'm not seeing anything equivalent in the FreeBSD ports docs, though.

So, if a PORTNAME doesn't follow all the rules (e.g. regarding 
upper/lower case), I'm thinking it's better to leave it alone rather 
than bring it up to code and cause pkg-upgrade to fail for everyone who 
has the port installed.

-- 
Life is a game.  Play hard.  Play fair.  Have fun.



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: PORTNAME changes
#71
Author: Piotr Smyrak
Date: Sun, 25 Oct 2026 13:15
27 lines
4798 bytes
On Sun, 25 Oct 2026 07:48:31 -0500
Jason Bacon <bacon4000@gmail.com> wrote:

> Do we have a way to change PORTNAME without breaking pkg-upgrade?
> 
> Pkgssrc has the SUPERSEDES variable:
> 
> https://www.netbsd.org/docs/pkgsrc/submit.html#renaming-package
> 
> I'm not seeing anything equivalent in the FreeBSD ports docs, though.
> 
> So, if a PORTNAME doesn't follow all the rules (e.g. regarding 
> upper/lower case), I'm thinking it's better to leave it alone rather 
> than bring it up to code and cause pkg-upgrade to fail for everyone
> who has the port installed.
> 

That shall be helpful:
https://docs.freebsd.org/en/books/porters-handbook/book/#moved-and-updating-moved

-- 
 Piotr Smyrak


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: PORTNAME changes
#76
Author: Jason Bacon
Date: Sun, 25 Oct 2026 21:44
43 lines
7489 bytes
On 10/25/26 08:15, Piotr Smyrak wrote:
> On Sun, 25 Oct 2026 07:48:31 -0500
> Jason Bacon <bacon4000@gmail.com> wrote:
> 
>> Do we have a way to change PORTNAME without breaking pkg-upgrade?
>>
>> Pkgssrc has the SUPERSEDES variable:
>>
>> https://www.netbsd.org/docs/pkgsrc/submit.html#renaming-package
>>
>> I'm not seeing anything equivalent in the FreeBSD ports docs, though.
>>
>> So, if a PORTNAME doesn't follow all the rules (e.g. regarding
>> upper/lower case), I'm thinking it's better to leave it alone rather
>> than bring it up to code and cause pkg-upgrade to fail for everyone
>> who has the port installed.
>>
> 
> That shall be helpful:
> https://docs.freebsd.org/en/books/porters-handbook/book/#moved-and-updating-moved

Thanks, I was aware of those, but I don't believe they have any effect 
on pkg-upgrade.

MOVED just documents changes to the port's pathname under $PORTSDIR.

UPDATING just documents extra steps to manually take when updating a port.

What I'm looking for, and what SUPERSEDES provides in pkgsrc, is a way 
to make pkg-upgrade(8) aware of a change to the PORTNAME variable.  If 
PORTNAME is changes from xzy to Xyz, pkg-upgrade will fail to upgrade 
xzy unless the user explicitly uses --case-insensitive.  If PORTNAME is 
changed from xyz to xyz2, there appears to be no way at all to make 
pkg-upgrade recognize that they are the same port and an upgrade should 
occur.

-- 
Life is a game.  Play hard.  Play fair.  Have fun.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads