Bug 581804

Summary: abrt don't support localized installations
Product: [Fedora] Fedora Reporter: Giandomenico De Tullio <ghisha>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 13CC: anton, dfediuck, dvlasenk, iprikryl, jmoskovc, kklic, mnowak, npajkovs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: abrt-1.0.9-1.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-23 06:02:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giandomenico De Tullio 2010-04-13 09:41:37 UTC
Description of problem:

After a crash, when abrt scans repos for -debuginfo ones,
IT FAILS TO ENABLE ALL NEEDED REPOs TO RESOLVE BUILD-IDs


root      6916  0.0  0.1   5260  1464 ?        S    11:11   0:00 /bin/sh /usr/bi
root      6927  0.0  0.0   5260   656 ?        S    11:11   0:00 /bin/sh /usr/bi
root      6928  6.5  2.0  37196 20812 ?        T    11:11   0:02 /usr/bin/python
root      6929  0.0  0.0   4364   736 ?        S    11:11   0:00 grep enabled:
root      6930  0.0  0.0   4116   572 ?        S    11:11   0:00 cut -f1 -d
root      6931  0.0  0.0   4364   740 ?        S    11:11   0:00 grep -v -- -deb

# cat /proc/6928/environ  | tr "\0" "\n"
TERM=dumb
PATH=/sbin:/usr/sbin:/bin:/usr/bin
RUNLEVEL=3
runlevel=3
PWD=/var/run/abrt/tmp-6916-1271149887
LANGSH_SOURCED=1
LANG=it_IT.UTF-8
PREVLEVEL=N
previous=N
CONSOLETYPE=vt
SHLVL=4
UPSTART_INSTANCE=
UPSTART_EVENTS=runlevel
UPSTART_JOB=rc
_=/usr/bin/yum
OLDPWD=/

Matching an english string "enabled: ", when is used localized it_IT output  is a BadThing™ :|

 /usr/bin/abrt-debuginfo-install:
    305 yum_repo_opts="'--disablerepo=*'"
--> 306 for enabled_repo in `yum repolist all | grep 'enabled:' | cut -f1 -d' ' | grep -v -- '-debuginfo'`; do
    307     yum_repo_opts="$yum_repo_opts '--enablerepo=${enabled_repo}-debuginfo*'"
    308 done

Extract from # yum repolist all :
Lettura dei metadati dei repository dai file locali
Checking for new repos for mirrors
id repo                                                                             nome repo                                                                                                     stato
fedora                                                                              Fedora 13 - i386                                                                                              abilitato: 16586
fedora-debuginfo                                                                    Fedora 13 - i386 - Debug                                                                                      abilitato:  5097
fedora-source                                                                       Fedora 13 - Source                                                                                            disabilitato



Version-Release number of selected component (if applicable):
abrt-1.0.9-1.fc13.i686


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:



Expected results:


Additional info:

Comment 1 Giandomenico De Tullio 2010-04-13 14:24:25 UTC
What about changing line 306 of /usr/bin/abrt-debuginfo-install into one like this:

for enabled_repo in `LANG=C  yum repolist all | grep 'enabled:' | cut -f1 -d' '
| grep -v -- '-debuginfo'`; do


???

What do you think ?

Comment 2 Giandomenico De Tullio 2010-04-13 14:32:58 UTC
ok ... with this little hack, abrt has downloading missing debuginfo rpms ... for seamonkey crash parade ..

Comment 3 Jiri Moskovcak 2010-04-13 14:52:33 UTC
Good catch, fixed in git.

Thank you for the report,
Jirka

Comment 4 Fedora Update System 2010-04-14 14:09:22 UTC
abrt-1.0.9-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/abrt-1.0.9-2.fc13

Comment 5 Fedora Update System 2010-04-15 13:33:44 UTC
abrt-1.0.9-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/abrt-1.0.9-1.fc12

Comment 6 Fedora Update System 2010-04-16 23:31:13 UTC
abrt-1.0.9-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update abrt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/abrt-1.0.9-2.fc13

Comment 7 Fedora Update System 2010-04-16 23:43:24 UTC
abrt-1.0.9-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update abrt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/abrt-1.0.9-1.fc12

Comment 8 Fedora Update System 2010-04-23 06:02:49 UTC
abrt-1.0.9-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-04-23 22:52:30 UTC
abrt-1.0.9-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.