[Bug 354424] New: enc2xs -C runs too long
https://bugzilla.novell.com/show_bug.cgi?id=354424 Summary: enc2xs -C runs too long Product: openSUSE 11.0 Version: Alpha 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mls@novell.com ReportedBy: mmarek@novell.com QAContact: qa@suse.de CC: mfabian@novell.com Found By: --- Installation of perl-Encode-JIS2K.rpm calls enc2xs -C which takes quite long: # date; ps -fww 26225 Thu Jan 17 15:11:13 CET 2008 UID PID PPID C STIME TTY STAT TIME CMD root 26225 26224 2 14:56 pts/2 S+ 0:21 /usr/bin/perl /usr/bin/enc2xs -C
From a 'strace -efile' it seems that the thing is clawling my whole filesystem (including nfs mounts).
1. Why it needs to be run at install time? 2. Why so long? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com AssignedTo|mls@novell.com |mfabian@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c1 Mike Fabian <mfabian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Mike Fabian <mfabian@novell.com> 2008-01-17 11:01:55 MST --- See ‘man enc2xs’: [...] 7. If you want to add your encoding to Encode's demand-loading list (so you don't have to "use Encode::YourEncoding"), run enc2xs -C to update Encode::ConfigLocal, a module that controls local set- tings. After that, "use Encode;" is enough to load your encodings on demand. [...] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c2 --- Comment #2 from Mike Fabian <mfabian@novell.com> 2008-01-17 11:04:02 MST ---
2. Why so long?
I don’t know, this is nothing I can fix in the package perl-Encode-JIS2K.rpm. But it is probably a good idea to do that at install time because some perl-scripts might use only "use Encode;" and expect that this encoding works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c3 --- Comment #3 from Michael Schröder <mls@novell.com> 2008-01-17 11:11:28 MST --- It shouldn't search through your file system, but just the perl include path. What does it output if you call it from the command line? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c4 --- Comment #4 from Mike Fabian <mfabian@novell.com> 2008-01-17 15:44:25 MST --- I don’t know. I don’t maintain enc2xs. I’ll try tomorrow though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c5 --- Comment #5 from Mike Fabian <mfabian@novell.com> 2008-01-17 17:06:32 MST --- The output on the command line is only: mfabian@magellan:~$ time enc2xs -C Checking /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Encode... require Encode/TW.pm; require Encode/Guess.pm; require Encode/CJKConstants.pm; require Encode/KR.pm; require Encode/JP.pm; require Encode/CN.pm; require Encode/Symbol.pm; require Encode/Encoder.pm; require Encode/Byte.pm; require Encode/EBCDIC.pm; Checking /usr/lib/perl5/5.8.8/Encode... Checking /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Encode.. require Encode/HanExtra.pm; require Encode/JIS2K.pm; $Encode::ExtModule{'ascii-ctrl'} = "Encode::TW"; $Encode::ExtModule{'big5-1984'} = "Encode::HanExtra"; $Encode::ExtModule{'big5-2003'} = "Encode::HanExtra"; $Encode::ExtModule{'big5ext'} = "Encode::HanExtra"; $Encode::ExtModule{'big5plus'} = "Encode::HanExtra"; $Encode::ExtModule{'cccii'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-1'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-2'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-3'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-4'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-5'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-6'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-7'} = "Encode::HanExtra"; $Encode::ExtModule{'cns11643-f'} = "Encode::HanExtra"; $Encode::ExtModule{'euc-jisx0213'} = "Encode::JIS2K"; $Encode::ExtModule{'euc-tw'} = "Encode::HanExtra"; $Encode::ExtModule{'gb18030'} = "Encode::HanExtra"; $Encode::ExtModule{'iso-2022-jp-3'} = "Encode::JIS2K"; $Encode::ExtModule{'jis0213-1-raw'} = "Encode::JIS2K"; $Encode::ExtModule{'jis0213-2-raw'} = "Encode::JIS2K"; $Encode::ExtModule{'null'} = "Encode::TW"; $Encode::ExtModule{'shiftjisx0213'} = "Encode::JIS2K"; $Encode::ExtModule{'unisys'} = "Encode::HanExtra"; $Encode::ExtModule{'utf-8-strict'} = "Encode::TW"; /usr/lib/perl5/5.8.8/Encode Generating /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Encode/ConfigLocal.pm... 許可がありません at /usr/bin/enc2xs line 1027. real 0m0.722s user 0m0.280s sys 0m0.120s mfabian@magellan:~$ Isn’t that slow, is it? When checking with strace I cannot see it scanning the whole file system either, only the perl directories. Apart from the perl directories it opens some files in /usr/share/locale, but that appears to be normal as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c6 --- Comment #6 from Michal Marek <mmarek@novell.com> 2008-01-18 00:55:06 MST --- (In reply to comment #1 from Mike Fabian)
See ‘man enc2xs’:
OK, missed that. From the first look at the manpage it seems like a build-time-only tool to me. (In reply to comment #5 from Mike Fabian)
The output on the command line is only:
mfabian@magellan:~$ time enc2xs -C Checking /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Encode...
That's either 10.3 or Factory before perl-5.10.0. On alpha1, It's: $ strace -echdir enc2xs -C chdir("/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi") = 0 require Encode; chdir("PerlIO") = 0 chdir("..") = 0 .. chdir("Encode") = 0 require Encode::Encoding; require Encode::TW; require Encode::Encoder; require Encode::Guess; require Encode::Symbol; require Encode::CN; require Encode::Alias; require Encode::Byte; require Encode::Unicode; require Encode::JP; require Encode::EBCDIC; require Encode::CJKConstants; require Encode::Config; require Encode::GSM0338; require Encode::KR; chdir("JP") = 0 require Encode::JP::H2Z; require Encode::JP::JIS7; chdir("..") = 0 chdir("KR") = 0 require Encode::KR::2022_KR; chdir("..") = 0 chdir("CN") = 0 require Encode::CN::HZ; chdir("..") = 0 chdir("Unicode") = 0 require Encode::Unicode::UTF7; chdir("..") = 0 chdir("MIME") = 0 require Encode::MIME::Name; require Encode::MIME::Header; chdir("Header") = 0 require Encode::MIME::Header::ISO_2022_JP; .. chdir("BigInt") = 0 chdir("../..") = 0 chdir("Encode") = 0 require Encode::Encoding; require Encode::TW; require Encode::Encoder; require Encode::Guess; require Encode::Symbol; require Encode::CN; require Encode::Alias; require Encode::Byte; require Encode::Unicode; require Encode::JP; require Encode::EBCDIC; require Encode::CJKConstants; require Encode::Config; require Encode::GSM0338; require Encode::KR; chdir("JP") = 0 require Encode::JP::H2Z; require Encode::JP::JIS7; chdir("..") = 0 chdir("KR") = 0 require Encode::KR::2022_KR; chdir("..") = 0 chdir("CN") = 0 require Encode::CN::HZ; chdir("..") = 0 chdir("Unicode") = 0 require Encode::Unicode::UTF7; chdir("..") = 0 chdir("MIME") = 0 require Encode::MIME::Name; require Encode::MIME::Header; chdir("Header") = 0 require Encode::MIME::Header::ISO_2022_JP; chdir("Tie") = 0 chdir("..") = 0 chdir("Tk") = 0 chdir("Menu") = 0 chdir("..") = 0 chdir("DragDrop") = 0 chdir("..") = 0 chdir("demos") = 0 chdir("widget_lib") = 0 chdir("..") = 0 chdir("widtrib") = 0 chdir("lib") = 0 chdir("npuz") = 0 chdir("../../..") = 0 chdir("images") = 0 chdir("../..") = 0 chdir("Event") = 0 chdir("..") = 0 chdir("Text") = 0 chdir("../..") = 0 chdir("linux") = 0 chdir("..") = 0 chdir("Bundle") = 0 chdir("/home/mmarek") = 0 chdir(".themes") = 0 <--- chdir("..") = 0 chdir("kernel-source-STABLE") = 0 chdir("patches.arch") = 0 chdir("CVS") = 0 .. starts searching my homedir now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c8 --- Comment #8 from Mike Fabian <mfabian@novell.com> 2008-01-18 03:25:47 MST --- Michal Marek> That's either 10.3 or Factory before perl-5.10.0. On Michal Marek> alpha1, It's: I tried on Factory before perl-5.10.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c9 Mike Fabian <mfabian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mfabian@novell.com |mls@novell.com Status|ASSIGNED |NEW --- Comment #9 from Mike Fabian <mfabian@novell.com> 2008-01-18 03:27:31 MST --- Then it looks like a bug in perl-5.10.0. Assigning to perl maintainer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354424 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354424#c10 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Michal Marek <mmarek@novell.com> 2008-01-21 06:24:52 MST --- Doesn't happen with latest perl package, thanks to Michael for a prompt fix :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com