Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make build script portable on Mac OS #3493

Merged
merged 1 commit into from
May 8, 2020
Merged

make build script portable on Mac OS #3493

merged 1 commit into from
May 8, 2020

Conversation

sduzh
Copy link
Contributor

@sduzh sduzh commented May 6, 2020

  1. options of command mkdir and cp must be put before arguments on Mac OS.
  2. directory name build is conflict with file BUILD on Mac OS.

@kangkaisen
Copy link
Contributor

@sduzh Please add a issue.

directory name build is conflict with file BUILD on Mac OS.
What's the BUILD file on Mac OS?

@imay imay added kind/chore Issues or PRs related to compile and install kind/feature Categorizes issue or PR as related to a new feature. labels May 7, 2020
@@ -295,7 +295,7 @@ build_gtest() {
check_if_source_exist $GTEST_SOURCE

cd $TP_SOURCE_DIR/$GTEST_SOURCE
mkdir build -p && cd build
mkdir -p bld && cd bld
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think build is easier to understand than bld

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projects that support build by bazel will contain a file named BUILD. Since the filesystem of Mac OS is not case sensitive, you cannot create a directory named build for those projects.

double-conversion-3.1.1/BUILD
re2-2017-05-01/BUILD
protobuf-3.5.1/BUILD
gflags-2.2.0/BUILD
incubator-brpc-0.9.5/BUILD
brotli-1.0.7/BUILD
flatbuffers-1.10.0/BUILD
mysql-server-mysql-5.7.18/BUILD
cctz-2.3/BUILD
glog-0.4.0/BUILD

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,I see.
Better to add comments about this reason. And is doris_build better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

1. options of command `mkdir` and `cp` must be put before arguments on Mac OS.
2. directory name `build` is conflict with file `BUILD` on Mac OS.
Copy link
Contributor

@kangkaisen kangkaisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label May 8, 2020
@morningman morningman merged commit 8015d8c into apache:master May 8, 2020
@sduzh sduzh deleted the script branch May 8, 2020 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. kind/chore Issues or PRs related to compile and install kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants