Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15880 - qpkg hangs on UTF-8 locale
Summary: qpkg hangs on UTF-8 locale
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18375
  Show dependency tree
 
Reported: 2003-02-17 19:13 UTC by Vlad Berditchevskiy
Modified: 2004-08-22 04:53 UTC (History)
7 users (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 Vlad Berditchevskiy 2003-02-17 19:13:59 UTC
Steps to reproduce:

1. If UTF-8 locale isn't yet defined, run this as root:

localedef -i en_US -f UTF-8 en_US.UTF-8

2. Set the locale and run qpkg:

export LC_ALL=en_US.UTF-8
qpkg -i -v someebuild
Comment 1 Roman Majer 2003-02-18 08:32:19 UTC
confirmed...

qpkg hangs on EVERY locale other then "POSIX"..

BUT it not hangs only the time is TOOO long...

after some inspecting it is 
on sed command in section 
# not installed packages (yet :-) 
starting at line 306

and exactly the section

if [ ${arg} ]; then ... on line 312

on command sed -e "s: :\n:g

in locale affected console
a) this command works for 1-100000 caracters without problems
 tested by command echo ... | cut -b1-100000| sed -e ...
 after this the time of execution time is too long...
I have no idea why 100000 characters is the limit...

my test program for experimenting...

#!/bin/sh

upak=`find /usr/portage/ -iname "*.ebuild" 2>/dev/null|grep -v --regex="/usr/portage/[^/]*\.ebuild"`
#upak=`echo ${upak}|sed -e "s: :\n:g"|grep jboss`
#upak=`echo ${upak}|cut -b1-100000 |sed -e "s: :\n:g"`
upak=`echo ${upak}|sed -e "s: :\n:g"`

echo ${upak}


Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-02 10:08:38 UTC
this is still valid, any idea?
Comment 3 Vlad Berditchevskiy 2004-04-03 18:08:33 UTC
Yes, this is still valid, just checked with the latest stable version of qpkg.
Comment 4 Sergey Kuleshov (RETIRED) gentoo-dev 2004-06-27 10:03:32 UTC
> qpkg hangs on EVERY locale other then "POSIX"..

Not really. It does hang on ru_RU.UTF-8 for me but works just fine on ru_RU.KOI8-R...

Comment 5 John S. Skogtvedt 2004-08-07 03:53:43 UTC
How about just setting LC_ALL to POSIX in qpkg?
Either that, or changing LC_ALL temporarily when running sed.
Afaik, there are no ebuilds in portage that
contain locale specific information. Or are there?
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:51 UTC
this tool is deprecated
Comment 7 Sascha Silbe 2004-08-22 04:53:32 UTC
If this tool is deprecated, please print a warning to stderr saying exactly that and which tool to use instead.