Last active
May 3, 2021 12:36
-
-
Save jfqd/9174950ddfba485c6a5b8f50652e87ba to your computer and use it in GitHub Desktop.
Build minio version 2021-04-22T15-44-28Z on SmartOS with pkgsrc:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go get -d github.com/minio/mc | |
GOOS=solaris GOARCH=amd64 GO111MODULE=on go get github.com/minio/mc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgin -y in git go gcc7 gmake | |
MINIO_VERSION="20210503015340-6c8fddb70f27" | |
go get -d github.com/minio/minio | |
chmod 0644 go/pkg/mod/github.com/ncw/[email protected]/direct_io_unix.go | |
sed -i \ | |
"s/return os.OpenFile(name, syscall.O_DIRECT|flag, perm)/return os.OpenFile(name, flag, perm)/" \ | |
go/pkg/mod/github.com/ncw/[email protected]/direct_io_unix.go | |
chmod 0444 go/pkg/mod/github.com/ncw/[email protected]/direct_io_unix.go | |
chmod 0644 go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/Makefile | |
sed -i \ | |
-e "s#buildscripts/gen-ldflags.go#buildscripts/gen-ldflags.go \$(VERS)#" \ | |
-e "s/@GO111MODULE=on CGO_ENABLED=0/@GO111MODULE=on CGO_ENABLED=1/" \ | |
go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/Makefile | |
chmod 0444 go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/Makefile | |
chmod 0644 go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/go.mod | |
sed -i \ | |
-e "s#github.com/rjeczalik/notify v0.9.2#github.com/rjeczalik/notify master#" \ | |
go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/go.mod | |
chmod 0444 go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION}/go.mod | |
(cd go/pkg/mod/github.com/minio/[email protected]${MINIO_VERSION} ; go mod download github.com/rjeczalik/notify) | |
GOOS=solaris GOARCH=amd64 GO111MODULE=on go get github.com/minio/minio | |
cp ./go/bin/minio /opt/local/bin/minio | |
minio server /data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment