Bug 285079 - net/pwhois Unimplemented: POSIX::tmpnam(): use File::Temp
Summary: net/pwhois Unimplemented: POSIX::tmpnam(): use File::Temp
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-28 16:07 UTC by John R
Modified: 2025-02-28 17:51 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (zi)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John R 2025-02-28 16:07:13 UTC
POSIX::tmpnam is removed in perl 5.36

So executing /usr/local/sbin/pwhois-updatedb gives

Unimplemented: POSIX::tmpnam(): use File::Temp instead at /usr/local/lib/perl5/5.36/mach/POSIX.pm line 185.
Unimplemented: POSIX::tmpnam() at /usr/local/sbin/pwhois-updatedb line 12.
BEGIN failed--compilation aborted at /usr/local/sbin/pwhois-updatedb line 12.
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2025-02-28 16:10:12 UTC
Any chance you can build/test a patch to conver us to using File::Temp?

Thanks!
Comment 2 John R 2025-02-28 17:05:01 UTC
Unfortunately it's beyond me.
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2025-02-28 17:12:36 UTC
I'm looking at this now.
Comment 4 Ryan Steinmetz freebsd_committer freebsd_triage 2025-02-28 17:50:45 UTC
Fixed in 2.2.1.0_2.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-02-28 17:51:53 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68218d4c3dd27a83bd397f63c8a4392b4ee3dee3

commit 68218d4c3dd27a83bd397f63c8a4392b4ee3dee3
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2025-02-28 17:49:20 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2025-02-28 17:49:20 +0000

    net/pwhois: Fix perl5.36 issue, pet portlint, bump PORTREVISION

    PR:             285079
    Reported by:    John R <gamer@ryppn.com>

 net/pwhois/Makefile                    |  6 +++--
 net/pwhois/files/patch-pwhois-updatedb | 41 +++++++++++++++++++++++++++++-----
 2 files changed, 40 insertions(+), 7 deletions(-)