Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2021 07:45:06 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   Re: Cacti 1.2.17
Message-ID:  <PSAPR03MB56397EC33A316426AEF1038AFA3E9@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <8c19f9a9-e85f-60cb-c44f-87f4fcfbd321@bebik.net>
References:  <890d29ec-4b9c-3c39-353f-0196e1e5743f@netfence.it> <CAKBkRUxKTdmEfrRcLTOmfcRWAh%2Bgp3NtZMPfWRh6ZXoY=sWw2A@mail.gmail.com> <8c19f9a9-e85f-60cb-c44f-87f4fcfbd321@bebik.net>

next in thread | previous in thread | raw e-mail | index | archive | help
These are the commands I use to update the port.
I will give you this email as a tip for speedy updates :)


Rodrigo Osorio wrote on 2021/06/01 21:00:
> On 6/1/21 11:06 AM, Li-Wen Hsu wrote:
>> I would suggest you start with trying to update the version number in
>> Makefile, and distinfo file (`make makesum`), then checking if the
>> patches are still valid. Then build, install and test.
>>
>> Best,
>> Li-Wen

Command to check if the patch is still valid

make -C /usr/ports/net-mgmt/cacti/ -D PATCH_DEBUG patch

PATCH_DEBUG is explained in Mk/bsd.port.mk, but not in detail.

> Hi,
> 
> I open an issue this morning with a patch to upgrade cacti,
> and I can confirm that as expected the update wasn't that
> easy at least for a first try.
> 
> This is the PR link for cacti: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256325
> 

Most of the updates seem to be in pkg-plist, but I use sdiff to update pkg-plist.
textproc/meld, for example, is probably rather famous.
# Generate a new pkg-plist.
make -C /usr/ports/net-mgmt/cacti/ stage
make -C /usr/ports/net-mgmt/cacti/ makeplist > /tmp/pkg-plist
# Merge with sdiff.
sdiff -o /usr/ports/net-mgmt/cacti/pkg-plist.new -a -w 80 -s -d /usr/ports/net-mgmt/cacti/pkg-plist /tmp/pkg-plist
# After merging by l, r, or eb, replace it with a new pkg-plist.
mv /usr/ports/net-mgmt/cacti/pkg-plist.new /usr/ports/net-mgmt/cacti/pkg-plist

Maybe there is a more convenient way, but maybe some people need one example first :)




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