Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1366 - ${prefix} is embedded in sgmltools executable
Summary: ${prefix} is embedded in sgmltools executable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 17:03 UTC by Tod M. Neidt (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod M. Neidt (RETIRED) gentoo-dev 2002-03-27 17:03:59 UTC
Hi!

The sgmltools executable (python script) located in /usr/bin after merging
app-text/sgmltools-lite-3.0.3-r1.ebuild contains embedded '${prefix}' variables
in the path initialization code that cause it to bomb.

Haven't found the exact source of the problem yet, however if I edit /usr/bin
sgmltools and substitute '/usr' for all the '${prefix}' it then works.

------Example snip-------------

#
#  Setup: check version, and add our modules directory to the
#  search path. 
#
import sys
if sys.version < '1.5':
    print '%s: need python 1.5 or better' % sys.argv[0]
    raise SystemExit,1
	     
sys.path.append('${prefix}/share/sgml/misc/sgmltools/python')

#
#  Autoconf edits most of these.
#
autoconf = {
    'prefix': '/usr',
    'shrdir': '${prefix}/share/sgml/misc/sgmltools',
    'bindir': '/usr/bin',
    'etcdir': '/etc/sgml',
    'progs' : {
	'jade': '/usr/bin/openjade',
	'lynx': '/usr/bin/lynx',
	'iSilo': 'N/A',
        'w3m': 'N/A'
    },
    #
    #  Editable: places where backends can be found.
    #
    'backends' : [
	'${prefix}/share/sgml/misc/sgmltools/python/backends',
	'${prefix}/share/sgml/misc/sgmltools/site-backends'
    ],
}
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-03-31 06:06:57 UTC
This has been fixed in the -r3.ebuild.  Please test and let me know whether it
performs as expected.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-03-31 06:07:06 UTC
This has been fixed in the -r3.ebuild.  Please test and let me know whether it
performs as expected.