Date: Sun, 3 Jun 2018 06:48:02 +0800 From: Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org> To: Matthias Fechner <idefix@fechner.net> Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r471167 - head/devel/rubygem-rugged Message-ID: <CAMHz58Th6Y4RREHJ8v2LSmMaqnYQ4aXwbJmiJpd%2B-Ffg_6YW3g@mail.gmail.com> In-Reply-To: <58efc755-046c-dfde-39fa-c857aebed206@fechner.net> References: <201805301948.w4UJmit4053016@repo.freebsd.org> <58efc755-046c-dfde-39fa-c857aebed206@fechner.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 1, 2018 at 5:37 AM, Matthias Fechner <idefix@fechner.net> wrote= : > Am 30.05.2018 um 21:48 schrieb Sunpoet Po-Chuan Hsieh: > > Update to 0.27.1 > > > > Changes: https://github.com/libgit2/rugged/commits/master > > should that update not happen together with libgit2? > This port and devel/libgit2 have same major and minor versions (0.27). It should be OK. from ext/rugged/extconf.rb: if arg_config("--use-system-libraries", !!ENV['RUGGED_USE_SYSTEM_ LIBRARIES']) puts "Building Rugged using system libraries.\n" dir_config('git2').any? or pkg_config('libgit2') major =3D minor =3D nil File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line| if !major && (matches =3D line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/)) major =3D matches[1] next end if !minor && (matches =3D line.match(/^#define LIBGIT2_VER_MINOR ([0-9]+)$/)) minor =3D matches[1] next end break if major && minor end try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected ~> #{major}.#{minor}.0" #include <git2/version.h> #if LIBGIT2_VER_MAJOR !=3D #{major} || LIBGIT2_VER_MINOR !=3D #{minor} #error libgit2 version is not compatible #endif SRC > > Gru=C3=9F > Matthias > > -- > > "Programming today is a race between software engineers striving to > build bigger and better idiot-proof programs, and the universe trying to > produce bigger and better idiots. So far, the universe is winning." -- > Rich Cook > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58Th6Y4RREHJ8v2LSmMaqnYQ4aXwbJmiJpd%2B-Ffg_6YW3g>