Bug 113350 - Relocation doesn't work on hpux
Summary: Relocation doesn't work on hpux
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: parisc11
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-12 23:23 UTC by Dano Carroll
Modified: 2007-04-18 17:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-04-19 18:43:15 UTC
Embargoed:


Attachments (Terms of Use)
Relocation error results (4.23 KB, text/plain)
2004-01-12 23:24 UTC, Dano Carroll
no flags Details
Relocation was done successfully (13.84 KB, text/plain)
2004-01-12 23:25 UTC, Dano Carroll
no flags Details
patch to fix relocation problem (1.14 KB, patch)
2004-01-12 23:26 UTC, Dano Carroll
no flags Details | Diff

Description Dano Carroll 2004-01-12 23:23:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1)
Gecko/20021130

Description of problem:
On HP-UX (possibly others), relocation doesn't work. There's a place
in rpmfiNew that tests if ts is null and if fi is null before checking
to see the transaction element type:

if(ts != NULL)
if(fi != NULL)
if(fi->te != NULL && rpmteType(fi->te) == TR_ADDED) {
...

The problem is that the transactional element part of fi isn't
initialized in the code leading up to this. The patch included adds
these lines after the fi != NULL test:

fi->te = rpmtsElement(ts, 0);
if ( fi->h != NULL ) {
   fi->te->h = headerLink(fi->h);
}

I'm not sure if I needed to provide the header link, but that was the
way it was done in psm.c.


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

How reproducible:
Always

Steps to Reproduce:
Steps to Reproduce:
1. Extract source from tar file
2. Apply patches from bugs 97662, 97887, 97907, 101717 113340 113348
3. ./configure --prefix=/usr/local --without-python (I don't think the
options
matter, thought)
4. make
5. make install
6. rpm -ivvvh --prefix /tmp/relocate <somerelocatablerpm>


Actual Results:  See attachment

Expected Results:  See attachment


Additional info:

Comment 1 Dano Carroll 2004-01-12 23:24:32 UTC
Created attachment 96910 [details]
Relocation error results

Comment 2 Dano Carroll 2004-01-12 23:25:19 UTC
Created attachment 96911 [details]
Relocation was done successfully

Comment 3 Dano Carroll 2004-01-12 23:26:09 UTC
Created attachment 96912 [details]
patch to fix relocation problem

Comment 4 Jeff Johnson 2004-01-16 18:19:27 UTC
relocation doesn't work everywhere, not just hpux, in several
recent versions of rpm.

Problem has been fixed in rpm-4.2.1, possibly in rpm-4.2-1 final,
I fergit.

Could you try that fix please?

Comment 5 Jeremy Katz 2005-04-19 18:43:15 UTC
Closing due to inactivity.  If this issue still occurs with current releases,
please reopen and set the release in which you've encountered the problem.


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