Bug 1192870
Summary: | [ALL_LANG] No output of Installed languages for yum langlist and No langpacks to install for yum langinstall | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Lijun Li <lijli> | ||||
Component: | yum-langpacks | Assignee: | Parag Nemade <pnemade> | ||||
Status: | CLOSED ERRATA | QA Contact: | QE Internationalization Bugs <qe-i18n-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.1 | CC: | lijli, qe-i18n-bugs, smaitra, sshedmak, wchadwic | ||||
Target Milestone: | rc | Keywords: | i18n | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | yum-langpacks-0.4.2-7.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-11-04 03:31:12 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Lijun Li
2015-02-16 02:42:40 UTC
Provide information. 1) What RHEL7.1 tree used for this testing? 2) The machine on which this bug is produced, What was base language used in anaconda for installation? (In reply to Parag from comment #2) > Provide information. > 1) What RHEL7.1 tree used for this testing? With latest client rc build : .../pub/rhel/rel-eng/latest-RHEL-7/compose/Client/x86_64/os/ > 2) The machine on which this bug is produced, What was base language used in > anaconda for installation? On virtual machine and with ja_JP language for the anaconda installation. Thanks, Robert I think we are assuming that the languages in which you have installed desktop are the base languages and we don't need to store information about it in /var/lib/yum/plugins/langpacks/installed_langpacks file. We even will not need to remove those langpacks is the assumption yum-langpacks is following. Based on above information, all things reported in bug description are expected. So apparently installed_langpacks is not populated by anaconda. This seems slightly inconistent. (Naively I would have expected langlist to list the langs that have langpacks installed, or default lang used by yum-langpacks.) Lijun: if this is not a regression, I think we can move this to 7.2. (In reply to Jens Petersen from comment #5) > So apparently installed_langpacks is not populated by anaconda. > This seems slightly inconistent. > > (Naively I would have expected langlist to list the langs that have > langpacks installed, or default lang used by yum-langpacks.) > > Lijun: if this is not a regression, I think we can move this to 7.2. I think yes we can move it to 7.2. Created attachment 994712 [details]
Fix to add informative message when installed_langpacks file not available
I am still not convinced for adding base languages in installed_langpacks but maybe I will visit this again sometime later when we start next development cycle. For now proposing langlist command fix that will make sure installed_langpacks file exist on the system else print "No langpacks installed". Set PM Ack to + Fixed in yum-langpacks-0.4.2-5.el7 [root@node1 test]# cat /etc/yum/pluginconf.d/langpacks.conf [main] enabled=1 # What langpacks to install is all of: # - any previously installed langpacks (stored in /var/lib/yum/plugins/langpacks) # - any languages specified by $LANGUAGE # - any langpacks listed in langpack_locales below # -- if this variable is empty, the value of $LANG #langpack_locales = ja_JP, zh_CN, mr_IN # Added by Anaconda langpack_locales=zh_CN.UTF-8, de_DE.UTF-8, es_ES.UTF-8, fr_FR.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, ko_KR.UTF-8, mr_IN.UTF-8, pt_BR.UTF-8 [root@node1 test]# yum langinfo ml 已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Language-Id=ml hunspell-ml hyphen-ml libreoffice-langpack-ml Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN [root@node1 test]# yum langinstall ml 已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. --> 正在检查事务 ---> 软件包 Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN.noarch.0.3-1.el7 将被 安装 ---> 软件包 hunspell-ml.noarch.0.0.1-10.el7 将被 安装 ---> 软件包 hyphen-ml.noarch.1.0.7.0-4.el7 将被 安装 ---> 软件包 libreoffice-langpack-ml.x86_64.1.5.0.6.2-2.el7 将被 安装 --> 解决依赖关系完成 ================================================================================ Package 架构 版本 源 大小 ================================================================================ 正在安装: Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN noarch 3-1.el7 Client 118 k hunspell-ml noarch 0.1-10.el7 Client 724 k hyphen-ml noarch 1:0.7.0-4.el7 Client 9.4 k libreoffice-langpack-ml x86_64 1:5.0.6.2-2.el7 Client 491 k 事务概要 ================================================================================ 安装 4 软件包 总下载量:1.3 M 安装大小:8.4 M Is this ok [y/d/N]: y Downloading packages: (1/4): Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1. | 118 kB 00:01 (2/4): hunspell-ml-0.1-10.el7.noarch.rpm | 724 kB 00:02 (3/4): hyphen-ml-0.7.0-4.el7.noarch.rpm | 9.4 kB 00:00 (4/4): libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64.rpm | 491 kB 00:02 -------------------------------------------------------------------------------- 总计 275 kB/s | 1.3 MB 00:04 Running transaction check Running transaction test Transaction test succeeded Running transaction 正在安装 : 1:hyphen-ml-0.7.0-4.el7.noarch 1/4 正在安装 : hunspell-ml-0.1-10.el7.noarch 2/4 正在安装 : 1:libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64 3/4 正在安装 : Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1.el7.no 4/4 Client/productid | 1.6 kB 00:00 Server/productid | 1.6 kB 00:00 Workstation/productid | 1.6 kB 00:00 验证中 : hunspell-ml-0.1-10.el7.noarch 1/4 验证中 : 1:libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64 2/4 验证中 : 1:hyphen-ml-0.7.0-4.el7.noarch 3/4 验证中 : Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1.el7.no 4/4 已安装: Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN.noarch 0:3-1.el7 hunspell-ml.noarch 0:0.1-10.el7 hyphen-ml.noarch 1:0.7.0-4.el7 libreoffice-langpack-ml.x86_64 1:5.0.6.2-2.el7 Language packs installed for: ml [root@node1 test]# ls -l /var/lib/yum/plugins/langpacks/installed_langpacks -rw-r--r--. 1 root root 3 7月 19 12:23 /var/lib/yum/plugins/langpacks/installed_langpacks [root@node1 test]# cat /var/lib/yum/plugins/langpacks/installed_langpacks ml [root@node1 test]# cat /etc/yum/pluginconf.d/langpacks.conf [main] enabled=1 # What langpacks to install is all of: # - any previously installed langpacks (stored in /var/lib/yum/plugins/langpacks) # - any languages specified by $LANGUAGE # - any langpacks listed in langpack_locales below # -- if this variable is empty, the value of $LANG #langpack_locales = ja_JP, zh_CN, mr_IN # Added by Anaconda langpack_locales=zh_CN.UTF-8, de_DE.UTF-8, es_ES.UTF-8, fr_FR.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, ko_KR.UTF-8, mr_IN.UTF-8, pt_BR.UTF-8 [root@node1 test]# rpm -qf /var/lib/yum/plugins/langpacks/installed_langpacks 文件 /var/lib/yum/plugins/langpacks/installed_langpacks 不属于任何软件包 [root@node1 test]# yum langlist 已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Installed languages: Malayalam [root@node1 test]# [root@node1 test]# rpm -q yum-langpacks yum-langpacks-0.4.2-7.el7.noarch [root@node1 test]# As per Comment 4, with yum-langpacks-0.4.2-7.el7.noarch: - 'yum langinstall <LANG>' works as expected - 'yum langlist' would only work if '/var/lib/yum/plugins/langpacks/installed_langpacks' file exist, else 'No langpacks installed' would be visible on the console as notified in Comment 7 and Comment 8 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2313.html |