Bug 261561 - databases/clickhouse: needs Perl on >= 14.0
Summary: databases/clickhouse: needs Perl on >= 14.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dave Cottlehuber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-29 20:51 UTC by Trond Endrestøl
Modified: 2022-07-09 20:12 UTC (History)
3 users (show)

See Also:
olevole: maintainer-feedback+


Attachments
Patch for databases/clickhouse/Makefile unconditionally pulling in Perl (488 bytes, patch)
2022-01-29 20:51 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2022-01-29 20:51:22 UTC
Created attachment 231434 [details]
Patch for databases/clickhouse/Makefile unconditionally pulling in Perl

On stable/13 and below this port depends on devel/llvm13 and gets Perl for free.
On current this port depends on the system compiler and no Perl gets pulled in.
The attached patch fixes this corner case.
Comment 1 Oleg Ginzburg 2022-01-30 09:43:22 UTC
I agree, LGTM!
Comment 2 Trond Endrestøl 2022-02-25 17:21:37 UTC
Comment on attachment 231434 [details]
Patch for databases/clickhouse/Makefile unconditionally pulling in Perl

diff --git a/databases/clickhouse/Makefile b/databases/clickhouse/Makefile
index a08b6081557b..4c5b4464d36c 100644
--- a/databases/clickhouse/Makefile
+++ b/databases/clickhouse/Makefile
@@ -17,7 +17,8 @@ ONLY_FOR_ARCHS_REASON=	only supported on aarch64 and amd64
 BUILD_DEPENDS=	bash:shells/bash
 RUN_DEPENDS=	bash:shells/bash
 
-USES=		cmake cpe localbase python shebangfix
+USES=		cmake cpe localbase perl5 python shebangfix
+USE_PERL5=	build
 
 CPE_VENDOR=	yandex
Comment 3 Neel Chauhan freebsd_committer freebsd_triage 2022-02-26 01:05:37 UTC
Committed!
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-02-26 01:06:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=387191eefa58cca914159ef850c063b237bc740c

commit 387191eefa58cca914159ef850c063b237bc740c
Author:     Trond Endrestøl <Trond.Endrestol@ximalas.info>
AuthorDate: 2022-02-26 01:04:06 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-02-26 01:04:06 +0000

    databases/clickhouse: Require Perl to fix build

    PR:             261561
    Approved by:    maintainer

 graphics/epix/Makefile | 2 +-
 graphics/epix/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 5 Trond Endrestøl 2022-02-26 16:19:21 UTC
(In reply to commit-hook from comment #4)
I'm sorry, but what exactly got committed?
Comment 6 Trond Endrestøl 2022-02-26 16:20:16 UTC
Misdirected commit?
Comment 7 Oleg Ginzburg 2022-02-26 19:12:39 UTC
I agree, there was some mistake. Still no changes in the port
Comment 8 Dave Cottlehuber freebsd_committer freebsd_triage 2022-07-08 08:48:45 UTC
just waiting for poudriere to OK this. LGTM.
Comment 9 commit-hook freebsd_committer freebsd_triage 2022-07-09 19:51:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b0eb02c2efed83a4207860142a34605621d0e42

commit 8b0eb02c2efed83a4207860142a34605621d0e42
Author:     Trond Endrestol <Trond.Endrestol@ximalas.info>
AuthorDate: 2022-07-09 19:48:19 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2022-07-09 19:50:04 +0000

    databases/clickhouse: fix build on CURRENT

    perl5 is pulled in via llvm13 during build, but llvm14 does not
    have this dependency. Leave PORTREVISION alone as no rebuilds
    are required.

    PR:             261561
    Approved by:    olevole@olevole.ru (maintainer)
    Sponsored by:   SkunkWerks, GmbH

 databases/clickhouse/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-07-09 20:10:47 UTC
A commit in branch 2022Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e616fc4f4cc4f48facd91097626b17b93bfb9d2

commit 6e616fc4f4cc4f48facd91097626b17b93bfb9d2
Author:     Trond Endrestol <Trond.Endrestol@ximalas.info>
AuthorDate: 2022-07-09 19:48:19 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2022-07-09 20:10:19 +0000

    databases/clickhouse: fix build on CURRENT

    perl5 is pulled in via llvm13 during build, but llvm14 does not
    have this dependency. Leave PORTREVISION alone as no rebuilds
    are required.

    PR:             261561
    Approved by:    olevole@olevole.ru (maintainer)
    Sponsored by:   SkunkWerks, GmbH

    (cherry picked from commit 8b0eb02c2efed83a4207860142a34605621d0e42)

 databases/clickhouse/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 11 Dave Cottlehuber freebsd_committer freebsd_triage 2022-07-09 20:12:29 UTC
Port appears broken on aarch64 but current release of CH should handle this,
so let's address that with a version update.