Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1961116

Summary: perl-hivex package should be shipped to end users
Product: Red Hat Enterprise Linux 9 Reporter: Richard W.M. Jones <rjones>
Component: hivexAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: YongkuiGuo <yoguo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jwboyer, rjones, virt-maint, yoguo
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-17 10:54:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1960191    

Description Richard W.M. Jones 2021-05-17 09:52:42 UTC
Description of problem:

virt-win-reg is a supported program for editing Windows Registries
that we ship to end users.  However it currently depends on
perl-Win-Hivex (a subpackage of hivex) which is in buildroot only.
So this package should be moved somewhere (AppStream?) so
end users will be able to use it.

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

guestfs-tools-1.46.1-1.el9.x86_64
libguestfs-1.45.5-1.el9.x86_64

1. On rhel9.0 host with RHEL-9.0.0-20210511.3 compose
# virt-win-reg --version
Can't locate Sys/Guestfs.pm in @INC (you may need to install the Sys::Guestfs module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/virt-win-reg line 22.
BEGIN failed--compilation aborted at /usr/bin/virt-win-reg line 22.

# virt-win-reg --version
Can't locate Win/Hivex.pm in @INC (you may need to install the Win::Hivex module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/virt-win-reg line 23.
BEGIN failed--compilation aborted at /usr/bin/virt-win-reg line 23.

See also:

https://one.redhat.com/rhel-developer-guide/#_move_non_modular_content_between_baseosappstreamcodeready_builder
https://mailman-int.corp.redhat.com/archives/rhel-devel/2021-May/msg00279.html

Comment 1 YongkuiGuo 2021-05-17 10:48:40 UTC
The subpackage name should be perl-hivex not perl-Win-Hivex. perl-hivex subpackage has also been included in RHEL-9.0.0-20210516.2 compose.

Comment 2 Richard W.M. Jones 2021-05-17 10:54:27 UTC
Yes I see perl-hivex is included in AppStream now:
http://download-ipv4.eng.brq.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.0.0-20210516.2/compose/AppStream/x86_64/os/Packages/