Bug 235098 - databases/p5-DBD-Pg build failure
Summary: databases/p5-DBD-Pg build failure
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-21 07:30 UTC by oz42
Modified: 2019-01-22 13:27 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oz42 2019-01-21 07:30:27 UTC
--->  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
Comment 1 wen 2019-01-22 07:39:03 UTC
I can not reproduce this problem.
Maybe you can try with re-install p5-DBI.
Comment 2 oz42 2019-01-22 10:58:39 UTC
I have found the reason. The dependency to databases/p5-DBI is missing.
Comment 3 wen 2019-01-22 11:46:52 UTC
(In reply to oz42 from comment #2)
Then would you close this PR ?
Thanks !
Comment 4 oz42 2019-01-22 12:11:10 UTC
I cannot close it, the maintainer has to change dependency settings for this port.
Comment 5 Tobias Kortkamp freebsd_committer freebsd_triage 2019-01-22 12:55:25 UTC
(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?
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-01-22 13:05:14 UTC
(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.
Comment 7 oz42 2019-01-22 13:14:15 UTC
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.
Comment 8 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-01-22 13:27:27 UTC
"===>   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.