That does sound like a bug. if invoked w/o a path it should not assume a
path.

please file a bug upstream  http://bugs.icu-project.org/trac/newticket

Also, the 'configure' i was referring to was configure when ICU was built.
but, it's moot.

-s

On Sun, Jul 15, 2012 at 10:33 AM, Massimo Dal Zotto <[email protected]>
wrote:

> I found this interesting behaviour:
>
>  $ pkgdata -v -p bin_mkltfs -m static -q packagelist.txt
> # Calling icu-config: ./icu-config --incpkgdatafile
> sh: 1: ./icu-config: not found
> pkgdata: icu-config: Could not read from icu-config. (fix PATH or use -O
> option)
>  required parameter is missing: -O is required for static and shared
> builds.
> Run 'pkgdata --help' for help.
>
> $ /usr/bin/pkgdata -v -p bin_mkltfs -m static -q packagelist.txt
> # Calling icu-config: /usr/bin/icu-config --incpkgdatafile
> # icu-config said: /usr/lib/icu/4.8.1.1/pkgdata.inc
> # pkgdata: Reading packagelist.txt..
> # Reading options file /usr/lib/icu/4.8.1.1/pkgdata.inc
> # pkgDataFlags=  "-a gcc", "so", "so", "a", "lib", ".48.1.1", "gcc
> -D_REENTRANT -DU_ATTRIBUTE_DEPRECATED= -g -Wall -O2 -Wall -ansi -pedantic
> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long  -c", "-I/usr/include -DPIC -fPIC", "gcc -g -Wall -O2 -Wall
> -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long   -shared -Wl,-Bsymbolic"
> # Writing package file ./bin_mkltfs.dat ..
> # libFileName[LIB_FILE] = libbin_mkltfs
> # libFileName[LIB_FILE_VERSION] = libbin_mkltfs.a  (static)
> # Generating assembly code  of type -a gcc ..
> pkgdata: gcc -D_REENTRANT -DU_ATTRIBUTE_DEPRECATED= -g -Wall -O2 -Wall
> -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long  -c -I/usr/include -DPIC -fPIC -o
> ./bin_mkltfs_dat.o ./bin_mkltfs_dat.s
> pkgdata: ar r ./libbin_mkltfs.a ./bin_mkltfs_dat.o
> pkgdata: ranlib ./libbin_mkltfs.a
>
> In other words pkgdata works if invoked with the full path of the
> executable and fails if called only by program name, even if it is in
> the PATH:
>
> $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> So it is definitely a pkgdata bug.
>
> --
> You received this bug notification because you are subscribed to icu in
> Ubuntu.
> https://bugs.launchpad.net/bugs/1024009
>
> Title:
>   pkgdata calls "./icu-config"
>
> Status in “icu” package in Ubuntu:
>   New
>
> Bug description:
>   Running pkgdata it complains that "./icu-config" is not found. However
>   /usr/bin/icu-config is installed and if i create a symlink ./icu-
>   config the program works as expected:
>
>   $ pkgdata -v -p bin_mkltfs -m static -q packagelist.txt
>   # Calling icu-config: ./icu-config --incpkgdatafile
>   sh: 1: ./icu-config: not found
>   pkgdata: icu-config: Could not read from icu-config. (fix PATH or use -O
> option)
>    required parameter is missing: -O is required for static and shared
> builds.
>   Run 'pkgdata --help' for help.
>
>   $ ln -s /usr/bin/icu-config ./
>   $ pkgdata -v -p bin_mkltfs -m static -q packagelist.txt
>   # Calling icu-config: ./icu-config --incpkgdatafile
>   # icu-config said: /usr/lib/icu/4.8.1.1/pkgdata.inc
>   # pkgdata: Reading packagelist.txt..
>   # Reading options file /usr/lib/icu/4.8.1.1/pkgdata.inc
>   # pkgDataFlags=  "-a gcc", "so", "so", "a", "lib", ".48.1.1", "gcc
> -D_REENTRANT -DU_ATTRIBUTE_DEPRECATED= -g -Wall -O2 -Wall -ansi -pedantic
> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long  -c", "-I/usr/include -DPIC -fPIC", "gcc -g -Wall -O2 -Wall
> -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long   -shared -Wl,-Bsymbolic"
>   # Writing package file ./bin_mkltfs.dat ..
>   # libFileName[LIB_FILE] = libbin_mkltfs
>   # libFileName[LIB_FILE_VERSION] = libbin_mkltfs.a  (static)
>   # Generating assembly code  of type -a gcc ..
>   pkgdata: gcc -D_REENTRANT -DU_ATTRIBUTE_DEPRECATED= -g -Wall -O2 -Wall
> -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long  -c -I/usr/include -DPIC -fPIC -o
> ./bin_mkltfs_dat.o ./bin_mkltfs_dat.s
>   pkgdata: ar r ./libbin_mkltfs.a ./bin_mkltfs_dat.o
>   ar: creating ./libbin_mkltfs.a
>   pkgdata: ranlib ./libbin_mkltfs.a
>
>   Pkgdata should call "icu-config" without any path prefix and let the
>   shell find automatically the program in the directories listed in the
>   PATH variable.
>
>   The bug is not present in version 2.4.1-3 of the package.
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 12.04
>   Package: libicu-dev 4.8.1.1-3
>   ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
>   Uname: Linux 3.2.0-26-generic i686
>   ApportVersion: 2.0.1-0ubuntu8
>   Architecture: i386
>   Date: Thu Jul 12 20:02:00 2012
>   InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386
> (20110427.1)
>   ProcEnviron:
>    TERM=xterm
>    LC_COLLATE=C
>    PATH=(custom, user)
>    LANG=en_US.UTF-8
>    SHELL=/bin/bash
>   SourcePackage: icu
>   UpgradeStatus: Upgraded to precise on 2012-04-26 (77 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/icu/+bug/1024009/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1024009

Title:
  pkgdata calls "./icu-config"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/icu/+bug/1024009/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to