gilbertchen / duplicacy

A new generation cloud backup tool
https://duplicacy.com
Other
5.26k stars 340 forks source link

Add Solaris/Illumos Support #374

Open dave-fl opened 6 years ago

dave-fl commented 6 years ago

Consider adding support for Solaris/Illumos

I am using OmniOS

https://www.omniosce.org/

Rclone and restic supports this, maybe not so bad to add.

dave-fl commented 6 years ago

The build is failing at:

go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:52:19: undefined: xattr.Listxattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:56:22: undefined: xattr.Getxattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:65:14: undefined: xattr.Listxattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:71:23: undefined: xattr.Getxattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:73:5: undefined: xattr.Setxattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:77:4: undefined: xattr.Removexattr go/src/github.com/gilbertchen/duplicacy/src/duplicacy_utils_others.go:82:3: undefined: xattr.Setxattr

Would a quick fix be to add an exlclude solaris build tag for duplicacy_utils_others.go and add empty bodies for methods ReadAttributes, SetAttributes and leave Readlink, GetOwner and SetOwner intact?

dave-fl commented 6 years ago

I've done the above and it has built and is running. Is there a unit test suite that can be run? Will wait for some feedback before submitting PR.

ksalman commented 6 years ago

@dave-fl would you mind sharing steps to build this on Solaris?