Skip Menu |

This queue is for tickets about the Unicode-Unihan CPAN distribution.

Report information
The Basics
Id: 75802
Status: open
Priority: 0/
Queue: Unicode-Unihan

People
Owner: Nobody in particular
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.04
Fixed in: (no value)



Subject: No rule to make target `db/AccountingNumeric.db', needed by `pm_to_blib'
Hi I got the msg in the Subject while installing Unicode::Tussle V 1.03 using cpanm, just after this line: Building and testing Unicode-Unihan-0.04. This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64- linux-thread-multi. I'm using perlbrew, so perl is installed on my Debian box in ~/perl5 when I'm logged in as ron. ~/ron/.cpan/build.log attached. Cheers Ron
Subject: build.log
cpanm (App::cpanminus) 1.5007 on perl 5.014002 built for x86_64-linux-thread-multi Work directory is /home/ron/.cpanm/work/1331851706.22802 You have make /usr/bin/make You have LWP 6.04 You have /bin/tar: tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching Unicode::Tussle on cpanmetadb ... --> Working on Unicode::Tussle Fetching http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Unicode-Tussle-1.03.tar.gz -> OK Unpacking Unicode-Tussle-1.03.tar.gz Entering Unicode-Tussle-1.03 Checking configure dependencies from META.yml Checking if you have Module::Build 0.38 ... Yes (0.40) Configuring Unicode-Tussle-1.03 Running Build.PL Checking prerequisites... requires: ! Lingua::JA::Romanize::Japanese is not installed ! Unicode::Unihan is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Unicode-Tussle' version '1.03' -> OK Checking dependencies from MYMETA.json ... Checking if you have Module::Build 0 ... Yes (0.40) Checking if you have Lingua::EN::Syllable 0 ... Yes (0.251) Checking if you have Lingua::JA::Romanize::Japanese 0 ... No Checking if you have Unicode::Unihan 0 ... No Checking if you have Unicode::GCString 0 ... Yes (2011.03) Checking if you have Lingua::KO::Romanize::Hangul 0 ... Yes (0.20) Checking if you have Lingua::KO::Hangul::Util 0 ... Yes (0.25) Checking if you have Lingua::ZH::Romanize::Pinyin 0 ... Yes (0.23) ==> Found dependencies: Lingua::JA::Romanize::Japanese, Unicode::Unihan Searching Lingua::JA::Romanize::Japanese on cpanmetadb ... --> Working on Lingua::JA::Romanize::Japanese Fetching http://search.cpan.org/CPAN/authors/id/K/KA/KAWASAKI/Lingua-JA-Romanize-Japanese-0.23.tar.gz -> OK Unpacking Lingua-JA-Romanize-Japanese-0.23.tar.gz Entering Lingua-JA-Romanize-Japanese-0.23 Checking configure dependencies from META.yml Configuring Lingua-JA-Romanize-Japanese-0.23 Running Makefile.PL Warning: prerequisite DB_File 0 not found. Checking if your kit is complete... Looks good Writing Makefile for Lingua::JA::Romanize::Japanese Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62) Checking if you have Test::More 0 ... Yes (0.98) Checking if you have LWP::UserAgent 0 ... Yes (6.04) Checking if you have DB_File 0 ... No ==> Found dependencies: DB_File Searching DB_File on cpanmetadb ... --> Working on DB_File Fetching http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/DB_File-1.826.tar.gz -> OK Unpacking DB_File-1.826.tar.gz Entering DB_File-1.826 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62) Configuring DB_File-1.826 Running Makefile.PL Parsing config.in... Looks Good. Checking if your kit is complete... Looks good Note (probably harmless): No library found for -ldb Writing Makefile for DB_File Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62) Building and testing DB_File-1.826 cp DB_File.pm blib/lib/DB_File.pm AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File) cc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.826\" -DXS_VERSION=\"1.826\" -fPIC "-I/home/ron/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c version.c:30:16: error: db.h: No such file or directory make: *** [version.o] Error 1 -> FAIL Installing DB_File failed. See /home/ron/.cpanm/build.log for details. -> FAIL Bailing out the installation for Lingua-JA-Romanize-Japanese-0.23. Retry with --prompt or --force. Searching Unicode::Unihan on cpanmetadb ... --> Working on Unicode::Unihan Fetching http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Unicode-Unihan-0.04.tar.gz -> OK Unpacking Unicode-Unihan-0.04.tar.gz Entering Unicode-Unihan-0.04 Checking configure dependencies from META.yml Configuring Unicode-Unihan-0.04 Running Makefile.PL ================================================================ Preprocessing source text Processing IICore.txt...9810 characters processed. Processing IBMJapan.txt...360 characters processed. Processing RSUnicode.txt...71234 characters processed. Processing IRG_GSource.txt...57628 characters processed. Processing Tang.txt...3811 characters processed. Processing KPS1.txt...19301 characters processed. Processing SimplifiedVariant.txt...2674 characters processed. Processing IRGHanyuDaZidian.txt...55813 characters processed. Processing GB1.txt...6866 characters processed. Processing GSR.txt...7403 characters processed. Processing SemanticVariant.txt...3205 characters processed. Processing HDZRadBreak.txt...200 characters processed. Processing FennIndex.txt...5937 characters processed. Processing AccountingNumeric.txt...26 characters processed. Processing CompatibilityVariant.txt...997 characters processed. Processing XHC1983.txt...10992 characters processed. Processing RSKorean.txt...20 characters processed. Processing CNS1986.txt...17258 characters processed. Processing IRG_TSource.txt...54989 characters processed. Processing KangXi.txt...20938 characters processed. Processing IRGKangXi.txt...70206 characters processed. Processing MeyerWempe.txt...7352 characters processed. Processing Karlgren.txt...2560 characters processed. Processing Cantonese.txt...20015 characters processed. Processing IRG_KSource.txt...17661 characters processed. Processing MainlandTelegraph.txt...7085 characters processed. Processing Vietnamese.txt...8300 characters processed. Processing KSC1.txt...2856 characters processed. Processing ZVariant.txt...2566 characters processed. Processing GradeLevel.txt...2632 characters processed. Processing Fenn.txt...5075 characters processed. Processing GB0.txt...6763 characters processed. Processing Jis0.txt...6356 characters processed. Processing HanYu.txt...55818 characters processed. Processing Cowles.txt...4821 characters processed. Processing CCCII.txt...19698 characters processed. Processing JapaneseKun.txt...11291 characters processed. Processing JapaneseOn.txt...13174 characters processed. Processing Mandarin.txt...25478 characters processed. Processing CheungBauer.txt...809 characters processed. Processing Korean.txt...9050 characters processed. Processing RSJapanese.txt...198 characters processed. Processing SpecializedSemanticVariant.txt...482 characters processed. Processing TotalStrokes.txt...27929 characters processed. Processing Frequency.txt...5089 characters processed. Processing FourCornerCode.txt...16256 characters processed. Processing IRG_KPSource.txt...24122 characters processed. Processing OtherNumeric.txt...30 characters processed. Processing GB5.txt...2842 characters processed. Processing Jis1.txt...5801 characters processed. Processing PrimaryNumeric.txt...17 characters processed. Processing GB3.txt...4836 characters processed. Processing Cangjie.txt...29148 characters processed. Processing Nelson.txt...5398 characters processed. Processing TaiwanTelegraph.txt...9041 characters processed. Processing Xerox.txt...9747 characters processed. Processing IRG_USource.txt...41 characters processed. Processing Phonetic.txt...11463 characters processed. Processing Definition.txt...20627 characters processed. Processing KSC0.txt...4888 characters processed. Processing IRGDaiKanwaZiten.txt...17864 characters processed. Processing RSAdobe_Japan1_6.txt...13411 characters processed. Processing RSKangXi.txt...63696 characters processed. Processing HKGlyph.txt...4825 characters processed. Processing TraditionalVariant.txt...2593 characters processed. Processing SBGY.txt...19583 characters processed. Processing GB8.txt...785 characters processed. Processing Lau.txt...3516 characters processed. Processing IRG_HSource.txt...4511 characters processed. Processing Morohashi.txt...21204 characters processed. Processing CihaiT.txt...13884 characters processed. Processing KPS0.txt...4653 characters processed. Processing RSKanWa.txt...157 characters processed. Processing EACC.txt...13244 characters processed. Processing Matthews.txt...8988 characters processed. Processing BigFive.txt...13063 characters processed. Processing HanyuPinlu.txt...3799 characters processed. Processing CheungBauerIndex.txt...809 characters processed. Processing CNS1992.txt...17258 characters processed. Processing IRGDaeJaweon.txt...16024 characters processed. Processing GB7.txt...42 characters processed. Processing Hangul.txt...7745 characters processed. Processing PseudoGB1.txt...153 characters processed. Processing HKSCS.txt...4512 characters processed. Processing JIS0213.txt...3695 characters processed. Processing DaeJaweon.txt...16026 characters processed. Processing IRG_JSource.txt...13684 characters processed. Processing IRG_VSource.txt...9298 characters processed. done. ================================================================ Checking if your kit is complete... Looks good Writing Makefile for Unicode::Unihan Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62) Building and testing Unicode-Unihan-0.04 make: *** No rule to make target `db/AccountingNumeric.db', needed by `pm_to_blib'. Stop. -> FAIL Installing Unicode::Unihan failed. See /home/ron/.cpanm/build.log for details. -> FAIL Bailing out the installation for Unicode-Tussle-1.03. Retry with --prompt or --force. Expiring 11 work directories.
From: fraserbn [...] gmail.com
On Thu Mar 15 18:55:10 2012, RSAVAGE wrote: Show quoted text
> Hi > > I got the msg in the Subject while installing Unicode::Tussle V 1.03 > using cpanm, just after this line: > Building and testing Unicode-Unihan-0.04. > > This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64- > linux-thread-multi. > > I'm using perlbrew, so perl is installed on my Debian box in ~/perl5 > when I'm logged in as ron. > > ~/ron/.cpan/build.log attached. > > Cheers > Ron
Ran into this when trying to install the module on Android. The problem happens when AnyDB_File ends up using SDBM_File as the backend. In that case, this: tie my %hash, "AnyDB_File", "foo.db", ...; does *not* create a foo.db, but instead creates two files: foo.db.dir and foo.db.pag. So Makefile.PL probably needs to be modified for that scenario.
From: fraserbn [...] gmail.com
On Sun Jul 27 01:05:50 2014, Hugmeir wrote: Show quoted text
> On Thu Mar 15 18:55:10 2012, RSAVAGE wrote:
> > Hi > > > > I got the msg in the Subject while installing Unicode::Tussle V 1.03 > > using cpanm, just after this line: > > Building and testing Unicode-Unihan-0.04. > > > > This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64- > > linux-thread-multi. > > > > I'm using perlbrew, so perl is installed on my Debian box in ~/perl5 > > when I'm logged in as ron. > > > > ~/ron/.cpan/build.log attached. > > > > Cheers > > Ron
> > Ran into this when trying to install the module on Android. The > problem happens when AnyDB_File ends up using SDBM_File as the > backend. In that case, this: > > tie my %hash, "AnyDB_File", "foo.db", ...; > > does *not* create a foo.db, but instead creates two files: foo.db.dir > and foo.db.pag. So Makefile.PL probably needs to be modified for that > scenario.
..and here's a patch to solve this.
Subject: 0001-Less-assumptions-about-the-names-of-the-.db-files.patch
From 3305f8a4b05f13ed8ab9bd10fafeb75d18af65c4 Mon Sep 17 00:00:00 2001 From: Brian Fraser <fraserbn@gmail.com> Date: Sun, 27 Jul 2014 14:29:58 +0200 Subject: [PATCH] Less assumptions about the names of the .db files --- Makefile.PL | 11 ++++++++--- Unihan.pm | 3 +-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 359fa9e..cdad715 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -38,9 +38,8 @@ sub mkdbm{ my %PM = (); for my $src (grep /\.txt$/io, readdir($dh)){ my $dst = $src; $dst =~ s/\.txt$/.db/o; - $PM{"$dstdir/$dst"} = "\$(INST_LIBDIR)/Unihan/$dst"; - if (-f "$dstdir/$dst"){ - print "$dstdir/$dst exists. skipping\n"; + if (tie my %exists, 'AnyDBM_File', "$dstdir/$dst", O_RDWR, 0644) { + print "$dstdir/$dst exists. skipping\n"; next; } print "Processing $src..."; @@ -59,5 +58,11 @@ sub mkdbm{ print "$n characters processed.\n"; } close $dh; + opendir $dh, $dstdir; + while (my $f = readdir($dh)) { + next if $f eq '.' || $f eq '..'; + $PM{"$dstdir/$f"} = "\$(INST_LIBDIR)/Unihan/$f"; + } + closedir $dh; return \%PM; } diff --git a/Unihan.pm b/Unihan.pm index 9ad11cc..5852fe3 100644 --- a/Unihan.pm +++ b/Unihan.pm @@ -29,9 +29,8 @@ sub load($$){ } unless ( $self->{$name} ){ my $file = $self->{_dir_} . "/$name.db"; - -f $file or croak "There is no DB for $name"; tie %{$self->{$name}}, 'AnyDBM_File', $file, O_RDONLY, 0444 - or die "$file: $!"; + or croak "There is no DB for $name"; } $self; } -- 1.7.12.4 (Apple Git-37)
Subject: Re: [rt.cpan.org #75802] No rule to make target `db/AccountingNumeric.db', needed by `pm_to_blib'
Date: Mon, 28 Jul 2014 08:27:10 +1000
To: bug-Unicode-Unihan [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Brian Thanx for tracking this down, and supplying a fix. Any response from the author yet? On 27/07/14 22:23, Brian Fraser via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75802 > > > On Sun Jul 27 01:05:50 2014, Hugmeir wrote:
>> On Thu Mar 15 18:55:10 2012, RSAVAGE wrote:
>>> Hi >>> >>> I got the msg in the Subject while installing Unicode::Tussle V 1.03 >>> using cpanm, just after this line: >>> Building and testing Unicode-Unihan-0.04. >>> >>> This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64- >>> linux-thread-multi. >>> >>> I'm using perlbrew, so perl is installed on my Debian box in ~/perl5 >>> when I'm logged in as ron. >>> >>> ~/ron/.cpan/build.log attached. >>> >>> Cheers >>> Ron
>> >> Ran into this when trying to install the module on Android. The >> problem happens when AnyDB_File ends up using SDBM_File as the >> backend. In that case, this: >> >> tie my %hash, "AnyDB_File", "foo.db", ...; >> >> does *not* create a foo.db, but instead creates two files: foo.db.dir >> and foo.db.pag. So Makefile.PL probably needs to be modified for that >> scenario.
> > ..and here's a patch to solve this. > >
-- Ron Savage savage.net.au
Thanks fraserbn, your patch works. @DANKOGAI: Please apply. This is a pesky issue that lead me down the road to a compleley bogus BBC: https://rt.perl.org/rt3/Ticket/Display.html?id=127713
On 2016-03-22 20:42:00, ANDK wrote: Show quoted text
> Thanks fraserbn, your patch works. > > @DANKOGAI: Please apply. > > This is a pesky issue that lead me down the road to a compleley bogus > BBC: https://rt.perl.org/rt3/Ticket/Display.html?id=127713
Dan Kogai, could this please be applied soon? We have started to experience it in one of our production environments. thank you!