Bug 73528 - Package installs files into incorrect directory
Package installs files into incorrect directory
Product: Red Hat Linux
Classification: Retired
Component: foomatic (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2002-09-05 15:03 EDT by Herrick, Andrew
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-10-18 13:31:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
The patch in the comment has line breaks introduced by the browser. Hopefully this will work better. (1.28 KB, patch)
2002-09-05 15:09 EDT, Herrick, Andrew
no flags Details | Diff

  None (edit)
Description Herrick, Andrew 2002-09-05 15:03:04 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
foomatic is installing its vendor supplied files into the site_perl modules
directory. All other Redhat rpms for perl modules are installing their files
into the vendor_perl directory.

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

How reproducible:

Steps to Reproduce:
1. rpm -ivh foomatic-1.1-0.20020313.3.i386.rpm
2. Check /usr/lib/perl5/site_perl/5.6.1/
3. Be surprised to find files from an RPM there. <gasp> :)

Actual Results:  Files showed up in the wrong place.

Expected Results:  Files should show up in /usr/lib/perl5/vendor_perl/5.6.1/

Additional info:

The following patch to the Redhat provided .spec file should fix this problem.
Thanks for your time.

--- ./foomatic.spec	Thu Apr  4 02:27:29 2002
+++ ./foomatic.spec.vendordir	Thu Sep  5 11:50:07 2002
@@ -114,12 +114,13 @@
-eval `perl '-V:installsitelib'`
-mkdir -p $RPM_BUILD_ROOT/$installsitelib
-export INSTALLSITELIB=$RPM_BUILD_ROOT/$installsitelib
+eval `perl '-V:installvendorlib'`
+mkdir -p $RPM_BUILD_ROOT/$installvendorlib
+export INSTALLVENDORLIB=$RPM_BUILD_ROOT/$installvendorlib
 make	PREFIX=%{_prefix} \
 	INSTALLPREFIX=%buildroot \
 # Remove drivers with no command line.
@@ -145,7 +146,7 @@
 export FOOMATIC_LIBDIR="%{buildroot}/%{_datadir}/foomatic"
 export FOOMATIC_BINDIR="%{buildroot}/%{_bindir}"
 export FOOMATIC_SBINDIR="%{buildroot}/%{_sbindir}"
-export FOOMATIC_PERLINC="%{buildroot}/$installsitelib"
+export FOOMATIC_PERLINC="%{buildroot}/$installvendorlib"
 %{SOURCE3} "$RPM_BUILD_ROOT/%{_datadir}/cups/model/foomatic" \
 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
@@ -179,7 +180,7 @@
 %doc README USAGE ChangeLog
 %dir %{_libdir}/cups
 %dir /var/cache/foomatic
Comment 1 Herrick, Andrew 2002-09-05 15:09:23 EDT
Created attachment 75124 [details]
The patch in the comment has line breaks introduced by the browser. Hopefully this will work better.
Comment 2 Tim Waugh 2002-10-21 13:04:28 EDT
Fixed package is foomatic-2.0.2-1, which will appear in rawhide shortly.

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