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: beta   
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/