Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2021 15:40:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 259259] Mk/Uses/emacs.mk: Remove Emacs major version from EMACS_PKGNAMESUFFIX
Message-ID:  <bug-259259-7788-aETqJZov9p@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259259-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259259-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259259

--- Comment #6 from Yasuhiro Kimura <yasu@freebsd.org> ---
(In reply to Joseph Mingrone from comment #3)

> 2. It looks like the transition won't be smooth.  This doesn't happen wit=
hout the patch.  Maybe we just need to bump PORTVERSION?

Certainly it is the hurdle that need to be overcome.

At first PORTVERSION of all dependent ports need to be bump to rebuild pack=
ages
with new EMACS_PKGNAMESUFFIX. Based on it, for portmaster user it is proper=
ly
handled with `portmaster -a`.  But for binary packages user it isn't so eas=
y to
handle it. Since package name of dependent ports change, `pkg` command rega=
rds
them as orphaned. And unfortunately I can't find the way to upgrading orpha=
ned
package without once removing and reinstalling them. So following steps are
probably easiest and most reliable.

1. Execute `pkg query -a '%a %o' | awk '$1=3D=3D0 {print $2}' | sort >
/tmp/package-origin-list.txt`. This command creates the list of origin of
packages manually installed by user.
2. Remove Emacs and dependent packages with `pkg remove -g 'emacs*'`.
3. Execute `pkg query -a '%a %o' | awk '$1=3D=3D0 {print $2}' | sort | diff
/tmp/package-origin-list.txt -`. This command shows manually installed pack=
ages
removed by step 2.
4. Install each package showed by step 3 with `pkg install`.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259259-7788-aETqJZov9p>