[MacPorts] #51427: cpan2port: does not generate working Portfile even for own HOWTO example.
MacPorts
noreply at macports.org
Wed May 18 03:54:51 PDT 2016
#51427: cpan2port: does not generate working Portfile even for own HOWTO example.
------------------------+--------------------------------
Reporter: thevlad@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: contrib | Version: 2.3.4
Resolution: | Keywords:
Port: |
------------------------+--------------------------------
Changes (by ryandesign@…):
* keywords: perl =>
* component: ports => contrib
Old description:
> Hi,
>
> Trying to build Net::Curl perl port and started with cpan2port HOWTO
> example (https://trac.macports.org/wiki/howto/cpan2port).
> Even example fails.
> Why does it try to install p5.22-timedate for timedate example port?
>
> glagol:macports vsaf$ ./cpan2port -t Date::Parse
> Date::Parse is not perl porter
> Date::Parse (no description available)
> Date::Parse will show deps
> Is it OK to try to connect to the Internet? [yes]
> x TimeDate-2.30/
> x TimeDate-2.30/ChangeLog
> x TimeDate-2.30/lib/
> x TimeDate-2.30/Makefile.PL
> x TimeDate-2.30/MANIFEST
> x TimeDate-2.30/META.json
> x TimeDate-2.30/META.yml
> x TimeDate-2.30/README
> x TimeDate-2.30/SIGNATURE
> x TimeDate-2.30/t/
> x TimeDate-2.30/t/cpanrt.t
> x TimeDate-2.30/t/date.t
> x TimeDate-2.30/t/format.t
> x TimeDate-2.30/t/getdate.t
> x TimeDate-2.30/t/lang.t
> x TimeDate-2.30/lib/Date/
> x TimeDate-2.30/lib/Time/
> x TimeDate-2.30/lib/Time/Zone.pm
> x TimeDate-2.30/lib/Date/Format.pm
> x TimeDate-2.30/lib/Date/Language/
> x TimeDate-2.30/lib/Date/Language.pm
> x TimeDate-2.30/lib/Date/Parse.pm
> x TimeDate-2.30/lib/Date/Language/Afar.pm
> x TimeDate-2.30/lib/Date/Language/Amharic.pm
> x TimeDate-2.30/lib/Date/Language/Austrian.pm
> x TimeDate-2.30/lib/Date/Language/Brazilian.pm
> x TimeDate-2.30/lib/Date/Language/Bulgarian.pm
> x TimeDate-2.30/lib/Date/Language/Chinese.pm
> x TimeDate-2.30/lib/Date/Language/Chinese_GB.pm
> x TimeDate-2.30/lib/Date/Language/Czech.pm
> x TimeDate-2.30/lib/Date/Language/Danish.pm
> x TimeDate-2.30/lib/Date/Language/Dutch.pm
> x TimeDate-2.30/lib/Date/Language/English.pm
> x TimeDate-2.30/lib/Date/Language/Finnish.pm
> x TimeDate-2.30/lib/Date/Language/French.pm
> x TimeDate-2.30/lib/Date/Language/Gedeo.pm
> x TimeDate-2.30/lib/Date/Language/German.pm
> x TimeDate-2.30/lib/Date/Language/Greek.pm
> x TimeDate-2.30/lib/Date/Language/Hungarian.pm
> x TimeDate-2.30/lib/Date/Language/Icelandic.pm
> x TimeDate-2.30/lib/Date/Language/Italian.pm
> x TimeDate-2.30/lib/Date/Language/Norwegian.pm
> x TimeDate-2.30/lib/Date/Language/Oromo.pm
> x TimeDate-2.30/lib/Date/Language/Romanian.pm
> x TimeDate-2.30/lib/Date/Language/Russian.pm
> x TimeDate-2.30/lib/Date/Language/Russian_cp1251.pm
> x TimeDate-2.30/lib/Date/Language/Russian_koi8r.pm
> x TimeDate-2.30/lib/Date/Language/Sidama.pm
> x TimeDate-2.30/lib/Date/Language/Somali.pm
> x TimeDate-2.30/lib/Date/Language/Spanish.pm
> x TimeDate-2.30/lib/Date/Language/Swedish.pm
> x TimeDate-2.30/lib/Date/Language/Tigrinya.pm
> x TimeDate-2.30/lib/Date/Language/TigrinyaEritrean.pm
> x TimeDate-2.30/lib/Date/Language/TigrinyaEthiopian.pm
> x TimeDate-2.30/lib/Date/Language/Turkish.pm
> trying to find dist in /Users/vsafronov/.cpan/build/TimeDate-2.30*
> ---
> rmd160: 78eb4306d82635d15182e16044467f5e6ffeb39a
> sha256: 75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86
> creating perl/p5-timedate/Portfile
> candidate ExtUtils::MakeMaker
> end compute dependencies
> end compute dependencies
>
> glagol:macports vsaf$ ls
> cpan2port perl
>
> glagol:macports vsaf$ ls perl/
> p5-lwp-curl p5-net-curl p5-timedate
>
> glagol:macports vsaf$ cd perl/p5-timedate/
>
> glagol:p5-timedate vsaf$ port build
> Warning: MacPorts running without privileges. You may be unable to
> complete certain actions (e.g. install).
> ---> Computing dependencies for p5-timedate
> ---> Dependencies to be installed: p5.22-timedate
> ---> Fetching archive for p5.22-timedate
> Error: org.macports.archivefetch for port p5.22-timedate returned:
> /opt/local/var/macports/incoming/verified must be writable
> Error: Failed to install p5.22-timedate
> Error: The following dependencies were not installed: p5.22-timedate
> To report a bug, follow the instructions in the guide:
> http://guide.macports.org/#project.tickets
> Error: Processing of port p5-timedate failed
New description:
Hi,
Trying to build Net::Curl perl port and started with cpan2port HOWTO
example (wiki:howto/cpan2port).
Even example fails.
Why does it try to install p5.22-timedate for timedate example port?
{{{
glagol:macports vsaf$ ./cpan2port -t Date::Parse
Date::Parse is not perl porter
Date::Parse (no description available)
Date::Parse will show deps
Is it OK to try to connect to the Internet? [yes]
x TimeDate-2.30/
x TimeDate-2.30/ChangeLog
x TimeDate-2.30/lib/
x TimeDate-2.30/Makefile.PL
x TimeDate-2.30/MANIFEST
x TimeDate-2.30/META.json
x TimeDate-2.30/META.yml
x TimeDate-2.30/README
x TimeDate-2.30/SIGNATURE
x TimeDate-2.30/t/
x TimeDate-2.30/t/cpanrt.t
x TimeDate-2.30/t/date.t
x TimeDate-2.30/t/format.t
x TimeDate-2.30/t/getdate.t
x TimeDate-2.30/t/lang.t
x TimeDate-2.30/lib/Date/
x TimeDate-2.30/lib/Time/
x TimeDate-2.30/lib/Time/Zone.pm
x TimeDate-2.30/lib/Date/Format.pm
x TimeDate-2.30/lib/Date/Language/
x TimeDate-2.30/lib/Date/Language.pm
x TimeDate-2.30/lib/Date/Parse.pm
x TimeDate-2.30/lib/Date/Language/Afar.pm
x TimeDate-2.30/lib/Date/Language/Amharic.pm
x TimeDate-2.30/lib/Date/Language/Austrian.pm
x TimeDate-2.30/lib/Date/Language/Brazilian.pm
x TimeDate-2.30/lib/Date/Language/Bulgarian.pm
x TimeDate-2.30/lib/Date/Language/Chinese.pm
x TimeDate-2.30/lib/Date/Language/Chinese_GB.pm
x TimeDate-2.30/lib/Date/Language/Czech.pm
x TimeDate-2.30/lib/Date/Language/Danish.pm
x TimeDate-2.30/lib/Date/Language/Dutch.pm
x TimeDate-2.30/lib/Date/Language/English.pm
x TimeDate-2.30/lib/Date/Language/Finnish.pm
x TimeDate-2.30/lib/Date/Language/French.pm
x TimeDate-2.30/lib/Date/Language/Gedeo.pm
x TimeDate-2.30/lib/Date/Language/German.pm
x TimeDate-2.30/lib/Date/Language/Greek.pm
x TimeDate-2.30/lib/Date/Language/Hungarian.pm
x TimeDate-2.30/lib/Date/Language/Icelandic.pm
x TimeDate-2.30/lib/Date/Language/Italian.pm
x TimeDate-2.30/lib/Date/Language/Norwegian.pm
x TimeDate-2.30/lib/Date/Language/Oromo.pm
x TimeDate-2.30/lib/Date/Language/Romanian.pm
x TimeDate-2.30/lib/Date/Language/Russian.pm
x TimeDate-2.30/lib/Date/Language/Russian_cp1251.pm
x TimeDate-2.30/lib/Date/Language/Russian_koi8r.pm
x TimeDate-2.30/lib/Date/Language/Sidama.pm
x TimeDate-2.30/lib/Date/Language/Somali.pm
x TimeDate-2.30/lib/Date/Language/Spanish.pm
x TimeDate-2.30/lib/Date/Language/Swedish.pm
x TimeDate-2.30/lib/Date/Language/Tigrinya.pm
x TimeDate-2.30/lib/Date/Language/TigrinyaEritrean.pm
x TimeDate-2.30/lib/Date/Language/TigrinyaEthiopian.pm
x TimeDate-2.30/lib/Date/Language/Turkish.pm
trying to find dist in /Users/vsafronov/.cpan/build/TimeDate-2.30*
---
rmd160: 78eb4306d82635d15182e16044467f5e6ffeb39a
sha256: 75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86
creating perl/p5-timedate/Portfile
candidate ExtUtils::MakeMaker
end compute dependencies
end compute dependencies
glagol:macports vsaf$ ls
cpan2port perl
glagol:macports vsaf$ ls perl/
p5-lwp-curl p5-net-curl p5-timedate
glagol:macports vsaf$ cd perl/p5-timedate/
glagol:p5-timedate vsaf$ port build
Warning: MacPorts running without privileges. You may be unable to
complete certain actions (e.g. install).
---> Computing dependencies for p5-timedate
---> Dependencies to be installed: p5.22-timedate
---> Fetching archive for p5.22-timedate
Error: org.macports.archivefetch for port p5.22-timedate returned:
/opt/local/var/macports/incoming/verified must be writable
Error: Failed to install p5.22-timedate
Error: The following dependencies were not installed: p5.22-timedate
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port p5-timedate failed
}}}
--
Comment:
All ports named "p5-*" are "stub" ports: they don't install anything.
Their only purpose is to depend on one of the subports that actually
installs something. In the case of p5-timedate here, that subport is
p5.22-timedate, because perl5.22 is currently the default version of perl
in MacPorts.
The reason why `port build` failed is that you forgot to precede that
command with `sudo`.
--
Ticket URL: <https://trac.macports.org/ticket/51427#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list