avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

PKG_CONFIG_PATH environmental variable does not propogate to pkg-config in SCons script #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. successfully install libsunpinyin into /opt/ibus using scons install 
--prefix=/opt/ibus
2. PKG_CONFIG_PATH=/opt/ibus/lib/pkgconfig scons install --prefix=/opt/ibus

What is the expected output? 

- ibus-sunpinyin compiles

What do you see instead?

scons: Reading SConscript files ...
Checking for pkg-config... (cached) yes
Checking for ibus-1.0... (cached) yes
Checking for sunpinyin-2.0... (cached) yes
Package sunpinyin-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sunpinyin-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sunpinyin-2.0' found
OSError: 'pkg-config ibus-1.0 sunpinyin-2.0 --libs --cflags' exited 1:
  File "/media/stuff/dev/dev/sunpinyin/wrapper/ibus/SConstruct", line 71:
    DoConfigure()
  File "/media/stuff/dev/dev/sunpinyin/wrapper/ibus/SConstruct", line 69:
    env.ParseConfig('pkg-config ibus-1.0 sunpinyin-2.0 --libs --cflags')
  File "/usr/lib/scons/SCons/Environment.py", line 1477:
    return function(self, self.backtick(command))
  File "/usr/lib/scons/SCons/Environment.py", line 596:
    raise OSError("'%s' exited %d" % (command, status))

Please use labels and text to provide additional information.

debian sid, git sunpinyin

Original issue reported on code.google.com by tchai...@gmail.com on 3 Jul 2010 at 9:25

GoogleCodeExporter commented 9 years ago
fixed in the latest git version

Original comment by tchai...@gmail.com on 3 Jul 2010 at 9:32

GoogleCodeExporter commented 9 years ago
added the same fix to libsunpinyin and xim wrapper as well.

Original comment by mikeandm...@gmail.com on 3 Jul 2010 at 9:58