Bug 219838 - devel/bazel: Add CLANG38 option and make this port as a master port
Summary: devel/bazel: Add CLANG38 option and make this port as a master port
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: Li-Wen Hsu
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks: 219840
  Show dependency treegraph
 
Reported: 2017-06-07 11:42 UTC by Jov
Modified: 2017-07-29 07:18 UTC (History)
3 users (show)

See Also:
aehlig: maintainer-feedback+
lwhsu: maintainer-feedback+


Attachments
bazel.diff (577 bytes, patch)
2017-06-07 11:42 UTC, Jov
no flags Details | Diff
bazel.diff (577 bytes, patch)
2017-06-07 11:45 UTC, Jov
no flags Details | Diff
bazel_no_bump_version (345 bytes, patch)
2017-06-08 01:16 UTC, Jov
no flags Details | Diff
bazel_v3.diff (345 bytes, patch)
2017-06-08 04:03 UTC, Jov
no flags Details | Diff
bazel-clang38-options.diff (2.70 KB, patch)
2017-07-19 10:27 UTC, Jov
no flags Details | Diff
patch to devel/bazel to add CLANG38 option and update to 0.5.3 (4.14 KB, patch)
2017-07-28 19:38 UTC, Klaus Aehlig
aehlig: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jov 2017-06-07 11:42:09 UTC
Created attachment 183287 [details]
bazel.diff

I am working on a slave port for bazel,it needs to add more dependence.Or I will copy and modify the whole Makefile of devel/bazel,It is ugly.
Comment 1 Jov 2017-06-07 11:45:04 UTC
Created attachment 183288 [details]
bazel.diff

correct patch
Comment 2 Klaus Aehlig 2017-06-07 11:54:54 UTC
I wasn't aware of the need of a slave port for devel/bazel (I only expected bazel to be added as a build dependency for other ports). But if there is the such a need, I'm happy to changing BUILD_DEPENDS= to BUILD_DEPENDS+=.

I don't think, we need to bump the PORTREVISION though, as this port will still produce an identical bazel.
Comment 3 Jov 2017-06-07 12:19:23 UTC
(In reply to Klaus Aehlig from comment #2)
Thanks for your reply!

Yes,the PORTREVERSION need not bump.

This is the slave port:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219840
Comment 4 Jov 2017-06-08 01:16:02 UTC
Created attachment 183316 [details]
bazel_no_bump_version

patch without bump version
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2017-06-08 01:35:02 UTC
I believe ?= might be better in (this) the parent port, allowing complete (=) or partial (+=) override in the slave port.

@Jov, please also obsolete old/outdated versions of any patches. You can do this by Attachment -> Details -> Edit Details -> [x] Obsolete. You can also obsolete older patches during the attachment of a new patch.
Comment 6 Jov 2017-06-08 04:03:07 UTC
(In reply to Kubilay Kocak from comment #5)
Thanks Kubilay, Thank you for your remind, usually I do obsolete the old patch.

V3 patch use '?=' instead of '+='
Comment 7 Jov 2017-06-08 04:03:55 UTC
Created attachment 183320 [details]
bazel_v3.diff
Comment 8 Jov 2017-06-15 10:01:24 UTC
Is this can be committed?
Comment 9 Jov 2017-06-25 10:07:48 UTC
Per this :https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219840#c4, this PR is not needed.Thanks everyone!
Comment 10 Jov 2017-07-19 10:23:59 UTC
After discussing with Klaus and Lwshu, reopen this to make clang38 as a option.
Comment 11 Jov 2017-07-19 10:27:22 UTC
Created attachment 184497 [details]
bazel-clang38-options.diff

1.add clang38 option,default off
2.add patch to get rid of /proc fs when build cpp. this already accepted by upstream, can be removed next version.
3.add conflict_install with slave port bazel-clang38.
Comment 12 Li-Wen Hsu freebsd_committer freebsd_triage 2017-07-20 22:56:44 UTC
Ask maintainer approval for the latest patch.
Comment 13 Klaus Aehlig 2017-07-28 19:38:56 UTC
Created attachment 184809 [details]
patch to devel/bazel to add CLANG38 option and update to 0.5.3

In the mean time, bazel 0.5.3 has been released which upstream already contains the patch to src/main/cpp/blaze_util_freebsd.cc. So I suggest to update to this version while adding the CLANG38 option.
Comment 14 Li-Wen Hsu freebsd_committer freebsd_triage 2017-07-28 20:38:30 UTC
(In reply to Klaus Aehlig from comment #13)
Klaus, are you working on it right now?  I'm about to process this patch next week.  It's ok for me to wait your patch, but updating it twice is also fine.
Comment 15 Klaus Aehlig 2017-07-28 22:25:02 UTC
(In reply to Li-Wen Hsu from comment #14)

The patch I uploaded (Attachment #184809 [details]) contains both to, adding the CLANG38 option, as well as the update to 0.5.3. Feel free to use it directly.
Comment 16 commit-hook freebsd_committer freebsd_triage 2017-07-29 06:38:59 UTC
A commit references this bug:

Author: lwhsu
Date: Sat Jul 29 06:38:32 UTC 2017
New revision: 446868
URL: https://svnweb.freebsd.org/changeset/ports/446868

Log:
  - Update to 0.5.3 [1]
  - Add CLANG38 option [2]

  PR:		219838
  Submitted by:	Jov <amutu@amutu.com> [2]
  Approved by:	Klaus Aehlig <aehlig@linta.de> (maintainer) [1]

Changes:
  head/devel/bazel/Makefile
  head/devel/bazel/distinfo
  head/devel/bazel/files/patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_python__stub__template.txt
  head/devel/bazel/files/patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_stub__template.txt
Comment 17 Jov 2017-07-29 07:18:06 UTC
Thanks Li Wen and Klaus!