Discussion:
Cacti 1.2.17
Andrea Venturoli
2021-05-31 14:54:14 UTC
Permalink
Hello.

Sorry to bother...
Cacti was recently upgraded, fixing some security issues.

Are you working on updating the port?
Is this something trivial I could do myself? Or perhaps you already
tried and there's some showstopper?

bye & Thanks
av.
Li-Wen Hsu
2021-06-01 11:06:41 UTC
Permalink
Post by Andrea Venturoli
Hello.
Sorry to bother...
Cacti was recently upgraded, fixing some security issues.
Are you working on updating the port?
Is this something trivial I could do myself? Or perhaps you already
tried and there's some showstopper?
This seems like a minor version update, which *might* be easy, but
computers usually surprise humans.

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.

The full document is at https://docs.freebsd.org/en/books/porters-handbook/

Best,
Li-Wen
Rodrigo Osorio
2021-06-01 12:00:17 UTC
Permalink
Post by Li-Wen Hsu
Post by Andrea Venturoli
Hello.
Sorry to bother...
Cacti was recently upgraded, fixing some security issues.
Are you working on updating the port?
Is this something trivial I could do myself? Or perhaps you already
tried and there's some showstopper?
This seems like a minor version update, which *might* be easy, but
computers usually surprise humans.
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.
The full document is at
https://docs.freebsd.org/en/books/porters-handbook/
Best,
Li-Wen
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.

Andrea, I didn't test that much the resulting package so feel
free to grab the patch, test it, and give us your feedback on
the PR. BTW Let us know if you need some help building the
port.

This is the PR link for cacti:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256325

All the best,
-- rodrigo
Tatsuki Makino
2021-06-01 22:45:06 UTC
Permalink
These are the commands I use to update the port.
I will give you this email as a tip for speedy updates :)
Post by Rodrigo Osorio
Post by Li-Wen Hsu
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.
Post by Rodrigo Osorio
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 :)
Loading...