---> Upgrading 'p5-DBD-Pg-3.7.4' to 'p5-DBD-Pg-3.7.4_1' (databases/p5-DBD-Pg) ---> Building '/usr/ports/databases/p5-DBD-Pg' ===> Cleaning for p5-DBD-Pg-3.7.4_1 ===> License ART10 GPLv1+ accepted by the user ===> p5-DBD-Pg-3.7.4_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by p5-DBD-Pg-3.7.4_1 for building ===> Extracting for p5-DBD-Pg-3.7.4_1 => SHA256 Checksum OK for DBD-Pg-3.7.4.tar.gz. ===> Patching for p5-DBD-Pg-3.7.4_1 ===> Applying FreeBSD patches for p5-DBD-Pg-3.7.4_1 ===> p5-DBD-Pg-3.7.4_1 depends on package: p5-DBI>=1.614 - found ===> p5-DBD-Pg-3.7.4_1 depends on package: perl5>=5.28.r1<5.29 - found ===> p5-DBD-Pg-3.7.4_1 depends on package: perl5>=5.28.r1<5.29 - found ===> p5-DBD-Pg-3.7.4_1 depends on shared library: libpq.so.5 - found (/usr/local/lib/libpq.so.5) ===> Configuring for p5-DBD-Pg-3.7.4_1 Useless use of concatenation (.) or string in void context at ./Makefile.PL line 274. Configuring DBD::Pg 3.7.4 PostgreSQL version: 90515 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /usr/local/include POSTGRES_LIB: /usr/local/lib OS: freebsd Could not load DBI::DBD - is the DBI module installed? Can't open Makefile: No such file or directory. ===> Building for p5-DBD-Pg-3.7.4_1 make[1]: cannot open Makefile. make[1]: stopped in /usr/ports/databases/p5-DBD-Pg/work/DBD-Pg-3.7.4 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/databases/p5-DBD-Pg
I can not reproduce this problem. Maybe you can try with re-install p5-DBI.
I have found the reason. The dependency to databases/p5-DBI is missing.
(In reply to oz42 from comment #2) Then would you close this PR ? Thanks !
I cannot close it, the maintainer has to change dependency settings for this port.
(In reply to oz42 from comment #4) > I cannot close it, the maintainer has to change dependency settings for this > port. The port has BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-DBI>=1.614:databases/p5-DBI So the p5-DBI dependency is not missing. What needs to be changed?
(In reply to oz42 from comment #4) I see nothing wrong with the setting. - DBI::DBD is part of DBI. - DBI is the build/runtime dependency of DBD-Pg. % grep DBI/DBD.pm /usr/ports/databases/p5-DBI/pkg-plist %%SITE_ARCH%%/DBI/DBD.pm % grep DBI::DBD.3 /usr/ports/databases/p5-DBI/pkg-plist %%PERL5_MAN3%%/DBI::DBD.3.gz from your log: ===> p5-DBD-Pg-3.7.4_1 depends on package: p5-DBI>=1.614 - found ... Could not load DBI::DBD - is the DBI module installed? It seems you have a corrupt DBI installation.
I had to install P5-DBI manually, before building p5-DBD-Pg failed. After that, I had no problems. So I thought a dependency was missing. I did a 'rm -rf /usr/ports && portsnap fetch && portsnap extract' recently, so I cannot tell why the sources could be corrupted.
"===> p5-DBD-Pg-3.7.4_1 depends on package: p5-DBI>=1.614 - found" It means you have p5-DBI installed (according to pkg db). But here, it does not check if the content of p5-DBI is OK, e.g. the existence of DBI/DBD.pm. "Could not load DBI::DBD - is the DBI module installed?" Then, it failed when p5-DBD-Pg tried to require DBI::DBD. That's why I said you have a corrupt installation. I'm going to close this PR.