Bug 250707 - xpdf hides surprises in /etc/xpdf/add* config files
xpdf hides surprises in /etc/xpdf/add* config files
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: xpdf (Show other bugs)
7
All Linux
low Severity low
: ---
: ---
Assigned To: Tom "spot" Callaway
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-02 23:11 EDT by Michal Jaegermann
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 3.02-2.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-17 12:15:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michal Jaegermann 2007-08-02 23:11:41 EDT
Description of problem:

A person who would like to include in /etc/xpdfrc some of files
in /etc/xpdfrc/ may find that those files refer to things which
do not exist; like /usr/local/share/xpdf/latin2/Latin2.unicodeMap.

'grep -l local /etc/xpdf/add-to-xpdfrc.*' results in

/etc/xpdf/add-to-xpdfrc.arabic
/etc/xpdf/add-to-xpdfrc.greek
/etc/xpdf/add-to-xpdfrc.hebrew
/etc/xpdf/add-to-xpdfrc.latin2
/etc/xpdf/add-to-xpdfrc.turkish

A trivial way to fix it would be 

sed -i 's,local/,,' $RPM_BUILD_ROOT%{_sysconfdir}/xpdf/add*  || :

at the bottom of "%install" section of a spec file.

A more careful way would look, say, like that:

sed -i 's,.*\(/%{name}/.*Map\),%{_datadir}\1/' \
        $RPM_BUILD_ROOT%{_sysconfdir}/xpdf/add*  || :

The second method not tested.

BTW - it is not clear why in a default /etc/xpdfrc there are
'include' statements only for CJK files from /etc/xpdf/.
One would expect to see all other ones too - even if commented out.

Version-Release number of selected component (if applicable):
xpdf-3.02-1.fc7
Comment 1 Fedora Update System 2007-08-08 11:27:54 EDT
xpdf-3.02-2.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
Comment 2 Fedora Update System 2007-08-17 12:14:57 EDT
xpdf-3.02-2.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

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