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.
In EL6.2, there are a handful of rpms that use lua for rpm %post/%postun scripts. When these rpms are upgraded manually using 'rpm -Uv', rpm complains that it cannot find the rest of the rpms after processing the first rpm that uses a lua script. Using yum works but it's not always an option.
I've attached 2 proof of concept rpm spec files which will show the problem. To reproduce, build the rpms and run:
cd /path/to/rpms && rpm -Uvh test{foo,bar}*.rpm
The output looks like this:
[root@optimus ~]# ls
anaconda-ks.cfg install.log.syslog testbar-1.0-1.sc00.x86_64.rpm
install.log ks-post.log testfoo-1.0-1.sc00.x86_64.rpm
[root@optimus ~]# rpm -Uvh test*.rpm
Preparing... ########################################### [100%]
1:testfoo ########################################### [ 50%]
Tue 10 Apr 2012 11:52:46 AM PDT
error: open of testbar-1.0-1.sc00.x86_64.rpm failed: No such file or directory
runLuaScript() doesn't properly reset the current working directory after running the lua script. The attached patch fixes the problem for me.
[root@optimus ~]# rpm -e testfoo
[root@optimus ~]# rpm -Uvh test*.rpm
Preparing... ########################################### [100%]
1:testfoo ########################################### [ 50%]
Tue 10 Apr 2012 12:33:55 PM PDT
2:testbar ########################################### [100%]
Created attachment 577219[details]
lua script chroot v1.1
The previous patch broke mock. Apparently, the result of rpmtsCurrDir() cannot be trusted and I had to use getcwd() instead.
This is a dupe of bug 746190 (which is a closed bug, for whatever reason). In any case, its being addressed.
Comment 7RHEL Program Management
2012-05-03 05:17:18 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
In EL6.2, there are a handful of rpms that use lua for rpm %post/%postun scripts. When these rpms are upgraded manually using 'rpm -Uv', rpm complains that it cannot find the rest of the rpms after processing the first rpm that uses a lua script. Using yum works but it's not always an option. I've attached 2 proof of concept rpm spec files which will show the problem. To reproduce, build the rpms and run: cd /path/to/rpms && rpm -Uvh test{foo,bar}*.rpm The output looks like this: [root@optimus ~]# ls anaconda-ks.cfg install.log.syslog testbar-1.0-1.sc00.x86_64.rpm install.log ks-post.log testfoo-1.0-1.sc00.x86_64.rpm [root@optimus ~]# rpm -Uvh test*.rpm Preparing... ########################################### [100%] 1:testfoo ########################################### [ 50%] Tue 10 Apr 2012 11:52:46 AM PDT error: open of testbar-1.0-1.sc00.x86_64.rpm failed: No such file or directory runLuaScript() doesn't properly reset the current working directory after running the lua script. The attached patch fixes the problem for me. [root@optimus ~]# rpm -e testfoo [root@optimus ~]# rpm -Uvh test*.rpm Preparing... ########################################### [100%] 1:testfoo ########################################### [ 50%] Tue 10 Apr 2012 12:33:55 PM PDT 2:testbar ########################################### [100%]