cyphertite 2.0.2 #30969

Closed
wants to merge 1 commit into
from

Projects

None yet

6 participants

@dholm
Contributor
dholm commented Jul 20, 2014

No description provided.

@dholm
Contributor
dholm commented Jul 20, 2014

This is the official client for the Cyphertite online backup service. Since you need an account to use the service I couldn't come up with a reasonable test case for the formula.

@adamv adamv added the new formula label Jul 20, 2014
@adamv
Contributor
adamv commented Jul 20, 2014

Failing to build on Lion:

Undefined symbols for architecture x86_64:
  "___progname", referenced from:
      _clog_opensyslog in clog.os
      _clog_initialize in clog.os
      _clog_set_flags in clog.os
      _clog_print in clog.os
      _clog_init in clog.os
@MikeMcQuaid
Member

@dholm I'd like to see some sort of test, even if it's a --version or --help that's better than nothing.

@MikeMcQuaid MikeMcQuaid commented on the diff Jul 20, 2014
Library/Formula/cyphertite.rb
@@ -0,0 +1,23 @@
+require "formula"
+
+class Cyphertite < Formula
+ homepage "https://www.cyphertite.com/"
+ url "https://www.cyphertite.com/snapshots/source/2.0.2/cyphertite-full-2.0.2.tar.gz"
+ sha1 "87289e27bc82d1ed573328131bb78c8f6c54bb61"
+
+ depends_on "gcc" if MacOS.version < :mountain_lion
+ depends_on "libevent"
+ depends_on "lzo"
+ depends_on "xz"
+
+ def install
+ ENV.deparallelize
@MikeMcQuaid
MikeMcQuaid Jul 20, 2014 Member

Would be good to report this upstream.

@MikeMcQuaid MikeMcQuaid commented on the diff Jul 20, 2014
Library/Formula/cyphertite.rb
@@ -0,0 +1,23 @@
+require "formula"
+
+class Cyphertite < Formula
+ homepage "https://www.cyphertite.com/"
+ url "https://www.cyphertite.com/snapshots/source/2.0.2/cyphertite-full-2.0.2.tar.gz"
+ sha1 "87289e27bc82d1ed573328131bb78c8f6c54bb61"
+
+ depends_on "gcc" if MacOS.version < :mountain_lion
@MikeMcQuaid
MikeMcQuaid Jul 20, 2014 Member

This should use fails_with instead.

@dholm
dholm Jul 20, 2014 Contributor

Hmm, where do I find the build number for Clang in Lion? I cannot find it here: http://bot.brew.sh/job/Homebrew%20Pull%20Requests/13088/version=lion/console

@MikeMcQuaid MikeMcQuaid commented on the diff Jul 20, 2014
Library/Formula/cyphertite.rb
+ url "https://www.cyphertite.com/snapshots/source/2.0.2/cyphertite-full-2.0.2.tar.gz"
+ sha1 "87289e27bc82d1ed573328131bb78c8f6c54bb61"
+
+ depends_on "gcc" if MacOS.version < :mountain_lion
+ depends_on "libevent"
+ depends_on "lzo"
+ depends_on "xz"
+
+ def install
+ ENV.deparallelize
+ make_args = ["LOCALBASE=#{prefix}",
+ "INCFLAGS=-I#{buildpath}/" + %w(assl clens/include/clens clog cyphertite/libcyphertite cyphertite/ctutil exude shrink/libshrink xmlsd).join(" -I#{buildpath}/"),
+ "LDFLAGS=-L#{buildpath}/" + %w(clens clog assl xmlsd shrink/libshrink exude).join(" -L#{buildpath}/")]
+ %w(clens clog assl xmlsd shrink exude cyphertite).each {
+ |f| system "make", "-C", "#{buildpath}/#{f}", *make_args
+ }
@MikeMcQuaid
MikeMcQuaid Jul 20, 2014 Member

Does ./ct_install.sh not work? I find the few lines above here really hard to follow, honestly, and it would be good if upstream provided a make that worked properly.

@dholm
dholm Jul 20, 2014 Contributor

I've been struggling with this recipe for a while and I took a break from it for a while until trying again today. If I remember correctly ct_install.sh will attempt to install directly into /usr/local and I think it also attempts to install clang.

The application was originally developed on OpenBSD so the GNU makefiles appear to be somewhat of an afterthought.

@MikeMcQuaid
MikeMcQuaid Jul 20, 2014 Member

Perhaps doing an inreplace on that is better. I'm 👎 on us effectively maintaining our own buildsystem for this.

@tdsmith
Member
tdsmith commented Nov 28, 2014

OS X build support is "coming soon": https://opensource.conformal.com/wiki/cyphertite_installation#COMING_SOON_-_On_Mac_OSX

Think we'll pass until upstream has a useful build system, sorry!

@tdsmith tdsmith closed this Nov 28, 2014
@chrisidefix

Thanks for providing this - I wonder how "soon" they will really produce (better) Mac OS X support, since their git source commits have recently been months apart. Maybe it would make sense to create a github repository for this (cyphertite source is under some ISC license, which is almost the same as MIT), then patch a working build script together and re-submit this? It would really be great to see this on homebrew and the cyphertite guys could also benefit if they want to pull the build-script?

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.