Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39575 - app-text/sablotron-1.0 creates bogus sablot-config
Summary: app-text/sablotron-1.0 creates bogus sablot-config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 09:37 UTC by Josh Grebe (RETIRED)
Modified: 2004-01-31 02:21 UTC (History)
0 users

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 Josh Grebe (RETIRED) gentoo-dev 2004-01-27 09:37:15 UTC
sablot-config is a script that is created at build time that spits out various paths for the sablotron library.  However, it spits out the path from when it was built, which isn't very useful:
# sablot-config --libs
-L/var/tmp/portage/sablotron-1.0/image//lib -lexpat
# sablot-config --help
Usage: sablot-config [OPTION]

Known values for OPTION are:

  --prefix=DIR          change sablot prefix [default /var/tmp/portage/sablotron-1.0/image/]
  --libs                print library linking information
  --cflags              print pre-processor and compiler flags
  --help                display this help and exit
  --version             output version information


Reproducible: Always
Steps to Reproduce:
1. emerge sablotron
2. sablot-config --libs
3. marvel at it not giving the correct path	
Actual Results:  
sablot-config spits out a patch in /var/tmp/portage/sablotron-1.0/image 

Expected Results:  
sablot-config should spit out something like: -L/usr/lib -lsablot 

This might not break a normal system, as it will already be including /usr/lib, 
but it will definately cause problems when trying to do things like 32/64 bit 
systems etc, and its wrong so it should be fixed.
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2004-01-28 01:33:21 UTC
Agreed, I can confirm the behaviour. Will look into it.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2004-01-31 02:21:00 UTC
Okay, problem was econf --prefix=${D} which generates sablot-config from sablot-config.in. Using ${D} there means we have /var/tmp etc, because that's the full path to the image directory. Now only pass prefix= to einstall, which is the better way of doing it.