[Fedora-i18n-bugs] [Bug 156477] RFE: option to reduce disk usage of /usr/lib/locale/locale-archive by only installing required language
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=156477
--- Comment #52 from Mike FABIAN <mfabian(a)redhat.com> ---
(In reply to Carlos O'Donell from comment #50)
> (In reply to Mike FABIAN from comment #49)
> > I can try whether rpm.expand does the job.
>
> Mike, Would you give it a try and see? That way we can unblock the copr
> rawhide builds by removing the dependency on this apparently new feature.
> Otherwise we'll have broken rawhide builds for a month or more before the
> copr upgrade completes (to using F21 build hosts).
Yes, this change works:
diff --git a/glibc.spec b/glibc.spec
index a845182..2c166ad 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1579,22 +1579,22 @@ end
%postun -p /sbin/ldconfig
-%triggerin common -e -p <lua> -- glibc
+%triggerin common -p <lua> -- glibc
if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0 then
pid = posix.fork()
if pid == 0 then
- posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
"%%{_install_langs}")
+ posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
rpm.expand("%%{_install_langs}"))
elseif pid > 0 then
posix.wait(pid)
end
end
-%post common -e -p <lua>
+%post common -p <lua>
if posix.access("/etc/ld.so.cache") then
if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0 then
pid = posix.fork()
if pid == 0 then
- posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
"%%{_install_langs}")
+ posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
rpm.expand("%%{_install_langs}"))
elseif pid > 0 then
posix.wait(pid)
end
lines 1-37/37 (END)
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=PlcWtCDVHS&a=cc_unsubscribe
9 years, 2 months
[Fedora-i18n-bugs] [Bug 1200215] New: [abrt] ibus-table: factory.py:89:do_create_engine:Exception: Cannot create engine cantonhk
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1200215
Bug ID: 1200215
Summary: [abrt] ibus-table:
factory.py:89:do_create_engine:Exception: Cannot
create engine cantonhk
Product: Fedora
Version: 20
Component: ibus-table
Assignee: mfabian(a)redhat.com
Reporter: sklsolar(a)yahoo.com
QA Contact: extras-qa(a)fedoraproject.org
CC: dchen(a)redhat.com, i18n-bugs(a)lists.fedoraproject.org,
kent.neo(a)gmail.com, me(a)kaio.net, mfabian(a)redhat.com,
pwu(a)redhat.com, shawn.p.huang(a)gmail.com
Version-Release number of selected component:
ibus-table-1.9.2-1.fc20
Additional info:
reporter: libreport-2.2.3
cmdline: /usr/bin/python3 /usr/share/ibus-table/engine/main.py --ibus
executable: /usr/share/ibus-table/engine/main.py
kernel: 3.18.7-100.fc20.i686+PAE
runlevel: N 5
type: Python3
uid: 1000
Truncated backtrace:
factory.py:89:do_create_engine:Exception: Cannot create engine cantonhk
Traceback (most recent call last):
File "/usr/share/ibus-table/engine/factory.py", line 74, in do_create_engine
_sq_db = tabsqlitedb.tabsqlitedb(filename = db, user_db = udb)
File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 250, in __init__
os.unlink(os.path.join(old_tables_path, 'debug.log'))
FileNotFoundError: [Errno 2] No such file or directory:
'/home/skl/.ibus/tables/debug.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/ibus-table/engine/factory.py", line 89, in do_create_engine
raise Exception("Cannot create engine %s" %engine_name)
Exception: Cannot create engine cantonhk
Local variables in innermost frame:
udb: 'cantonhk-user.db'
engine_name: 'cantonhk'
self: <EngineFactory object at 0xb6a7998c (factory+EngineFactory at 0x8d33548)>
db_dir: '/usr/share/ibus-table/tables'
engine_base_path: '/com/redhat/IBus/engines/table/%s/engine/'
path_patt: <_sre.SRE_Pattern object at 0xb6baf020>
traceback: <module 'traceback' from '/usr/lib/python3.3/traceback.py'>
db: '/usr/share/ibus-table/tables/cantonhk.db'
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=lFAReewmBs&a=cc_unsubscribe
9 years, 2 months
[Fedora-i18n-bugs] [Bug 1200218] New: [abrt] ibus-table: factory.py:89:do_create_engine:Exception: Cannot create engine cantonhk
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1200218
Bug ID: 1200218
Summary: [abrt] ibus-table:
factory.py:89:do_create_engine:Exception: Cannot
create engine cantonhk
Product: Fedora
Version: 21
Component: ibus-table
Assignee: mfabian(a)redhat.com
Reporter: sklsolar(a)yahoo.com
QA Contact: extras-qa(a)fedoraproject.org
CC: dchen(a)redhat.com, i18n-bugs(a)lists.fedoraproject.org,
kent.neo(a)gmail.com, me(a)kaio.net, mfabian(a)redhat.com,
pwu(a)redhat.com, shawn.p.huang(a)gmail.com
Version-Release number of selected component:
ibus-table-1.9.2-1.fc21
Additional info:
reporter: libreport-2.3.0
cmdline: /usr/bin/python3 /usr/share/ibus-table/engine/main.py --ibus
executable: /usr/share/ibus-table/engine/main.py
kernel: 3.18.8-201.fc21.x86_64
runlevel: N 5
type: Python3
uid: 1000
Truncated backtrace:
factory.py:89:do_create_engine:Exception: Cannot create engine cantonhk
Traceback (most recent call last):
File "/usr/share/ibus-table/engine/factory.py", line 74, in do_create_engine
_sq_db = tabsqlitedb.tabsqlitedb(filename = db, user_db = udb)
File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 250, in __init__
os.unlink(os.path.join(old_tables_path, 'debug.log'))
FileNotFoundError: [Errno 2] No such file or directory:
'/home/skl/.ibus/tables/debug.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/ibus-table/engine/factory.py", line 89, in do_create_engine
raise Exception("Cannot create engine %s" %engine_name)
Exception: Cannot create engine cantonhk
Local variables in innermost frame:
traceback: <module 'traceback' from '/usr/lib64/python3.4/traceback.py'>
path_patt: re.compile('[^a-zA-Z0-9_/]')
engine_base_path: '/com/redhat/IBus/engines/table/%s/engine/'
engine_name: 'cantonhk'
db_dir: '/usr/share/ibus-table/tables'
self: <EngineFactory object at 0x7f257de5db40 (factory+EngineFactory at
0xf148c0)>
udb: 'cantonhk-user.db'
db: '/usr/share/ibus-table/tables/cantonhk.db'
Potential duplicate: bug 1200215
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=QUvdf6gz9r&a=cc_unsubscribe
9 years, 2 months
[Fedora-i18n-bugs] [Bug 156477] RFE: option to reduce disk usage of /usr/lib/locale/locale-archive by only installing required language
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=156477
Mike FABIAN <mfabian(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(mfabian(a)redhat.co |
|m) |
--- Comment #49 from Mike FABIAN <mfabian(a)redhat.com> ---
(In reply to Carlos O'Donell from comment #45)
> (In reply to Panu Matilainen from comment #44)
> > -%post common -e -p <lua>
> > +%post common -p <lua>
> > if posix.access("/etc/ld.so.cache") then
> > if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0
> > then
> > pid = posix.fork()
> > if pid == 0 then
> > - posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
> > "%%{_install_langs}")
> > + posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs",
> > rpm.expand("%%{_install_langs}"))
> > elseif pid > 0 then
> > posix.wait(pid)
> > end
>
> I believe we tried this before but it had some negative consequences. I'm
> going to ask Fabian to comment and test it out.
>
> Mike,
>
> Do you remember if we talked about using rpm.expand and then didn't?
We didn’t talk about rpm.expand.
Florian Weimer mentioned rpm.getconf:
<fweimer> mfabian: I think you need to add something like:
[15年02月09日 14:11:35]
<fweimer> posix.exec("/usr/sbin/build-locale-archive",
rpm.getconf("_install_langs")) [15年02月09日 14:12:05]
But later said:
<fweimer> mfabian: Use -e if it works. I was mistaken, there is no way to
expand RPM macros from the current transaction using Lua.
[15年02月09日 15:48:02]
* fweimer sighs. [15年02月09日 15:48:12]
I can try whether rpm.expand does the job.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=ZY7A5WMZds&a=cc_unsubscribe
9 years, 2 months