RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 953066 - 'tempfile' can't be called as a method at /usr/share/perl5/vendor_perl/Locale/Po4a/Po.pm line 539.
Summary: 'tempfile' can't be called as a method at /usr/share/perl5/vendor_perl/Locale...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: po4a
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-17 09:37 UTC by Richard W.M. Jones
Modified: 2014-01-24 12:14 UTC (History)
1 user (show)

Fixed In Version: po4a-0.44-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 12:14:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-04-17 09:37:36 UTC
Description of problem:

In RHEL 7, libguestfs build invokes po4a using these parameters:

po4a \
  -M utf-8 -L utf-8 -A utf-8 \
  -v \
  -k 0 \
  --package-name libguestfs \
  --package-version 1.21.31 \
  --msgid-bugs-address libguestfs \
  --copyright-holder "Red Hat Inc." \
  po4a.conf

This gives an error:

Updating ./libguestfs-docs.pot:
'tempfile' can't be called as a method at /usr/share/perl5/vendor_perl/Locale/Po4a/Po.pm line 539.

(It does the same thing in Fedora and RHEL 6, but we've
not hit this problem before)

Version-Release number of selected component (if applicable):

po4a-0.42-3.el7.noarch

How reproducible:

100%

Steps to Reproduce:
1. See above.

Comment 1 Richard W.M. Jones 2013-04-17 09:41:31 UTC
Actually I suspect this is a bug in File::Temp since:

$ perl -MFile::Temp -e 'File::Temp->tempfile("/tmp/fooXXXXXX")'
'tempfile' can't be called as a method at -e line 1.

whereas on Fedora 18:

$ perl -MFile::Temp -e 'File::Temp->tempfile("/tmp/fooXXXXXX")'
[no error]

RHEL 7 (error): perl-File-Temp-0.23-1.el7.noarch
Fedora 18 (OK): perl-5.16.2-240.fc18.x86_64

Comment 2 Richard W.M. Jones 2013-04-17 09:51:29 UTC
Apparently according to the unfriendly people in #perl,
it's a bug in po4a.  po4a should not use File::Temp->tempfile,
but should use File::Temp::tempfile.

Setting component back.

Comment 4 Richard W.M. Jones 2013-04-17 10:36:57 UTC
I sent a patch upstream (to po4a) to fix this, also
included the patch in Rawhide.

Comment 5 Richard W.M. Jones 2013-04-17 11:13:02 UTC
https://brewweb.devel.redhat.com/taskinfo?taskID=5656654


Note You need to log in before you can comment on or make changes to this bug.