Bug 1248 - RPM_INSTALL_PREFIX broken under glint
Summary: RPM_INSTALL_PREFIX broken under glint
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 5.2
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-02-19 19:33 UTC by Michael K. Johnson
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-04-06 21:04:46 UTC

Attachments (Terms of Use)

Description Michael K. Johnson 1999-02-19 19:33:51 UTC
From: Diana King <diana>

One specific problem which our customers had when installing
the KAI C++
(KCC) rpm from the LACD was using glint (or other graphical
interfaces to
rpm).  Our rpm was relocatable, so our post-install script
(and others) made
use of RPM_INSTALL_PREFIX.  Apparently these graphical
interfaces to rpm do
not all set this environment variable like rpm does.  No one
had any problems
with using the command line version of rpm.

Specifically, customers who had problems reported using
"glint" and "the
Package Management program under Xwindows".  One person (who
freshly installed RedHat 5.2 and was) using glint reported
that "Glint locks up and the package never completes the
install.  Glint
works fine when I install rpms from RedHat."  He also
included the
following error output from trying to install KCC.

[root@socrates rpms]# glint &
[1] 3167
[root@socrates rpms]# Glint Graphical Package Manager --
version 2.6.2
Copyright (C) 1998 - Red Hat Software
This may be freely redistributed under the terms of the GNU
Exception in Tkinter callback
Traceback (innermost last):
752, in __call__
    return apply(self.func, args)
  File "./glint.py", line 159, in installButton
  File "./glint.py", line 182, in install
  File "./install.py", line 252, in DoInstall
    InstallPackages(packages, 0, root, test)
  File "./install.py", line 223, in InstallPackages
    (code, out, err) = rhrun("/bin/rpm", rpmargs,
  File "/usr/lib/rhs/python/rhutil.py", line 130, in rhrun
    callBack(cbArgs, line)
  File "./install.py", line 165, in installProgress
    if (line[0] != "%"): return
IndexError: string index out of range

If you could pass these problem reports on to the
appropriate person so that
they can be fixed for future releases, we would greatly
appreciate it.  We'll
be happy to provide any additional information that we have,
but I think that
the customers who had problems were just doing basic

Comment 1 Jeff Johnson 1999-04-06 21:04:59 UTC
There are two problems here:
1) glint doesn't invoke rpm correctly. was not
	Gnorpm replaces glint in Red Hat 6.0
2) RPM_INSTALL_PREFIX was not being set correctly.
	The old-style --prefix has been resurrected in rpm-2.94-3

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