#633515 sed: attempts to open //lib/charset.alias

Package:
sed
Source:
sed
Description:
GNU stream editor for filtering/transforming text
Submitter:
Raphael Geissert
Date:
2011-12-29 00:09:07 UTC
Severity:
minor
#633515#5
Date:
2011-07-11 02:39:39 UTC
From:
To:
Package: sed
Version: 4.2.1-9
Severity: minor

Hi,

sed tries to open //lib/charset.alias, which obviously doesn't exist:

$ echo hi clint | strace -e open sed 'p'
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libselinux.so.1", O_RDONLY)  = 3
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY) = 3
open("/lib/i386-linux-gnu/i686/cmov/libdl.so.2", O_RDONLY) = 3
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
open("//lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
hi clint
hi clint

Cheers,

#633515#10
Date:
2011-12-29 00:01:17 UTC
From:
To:
Hi,

Le dimanche 10 juillet 2011 à 09:39:39, Raphael Geissert a écrit :

After verifying that this bug is not due to upstream I have found that the
default value of exec_prefix variable defined in the configure file generates a
file configmake.h with several variables (bindir, sbindir, libexecdir, libdir)
that have a path with two slash.

If this can help, I propose a small patch with the little knowledge I have.

Regards,