public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/julia/files/, dev-lang/julia/
Date: Thu, 17 Mar 2022 09:06:39 +0000 (UTC)	[thread overview]
Message-ID: <1647507992.0dbb267d2261560fd6eadad052b4c7020d28ccb5.xgqt@gentoo> (raw)

commit:     0dbb267d2261560fd6eadad052b4c7020d28ccb5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 17 08:35:57 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Mar 17 09:06:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dbb267d

dev-lang/julia: fix build with libgit >=1.4.0

Another patch from Arch fixing libgit2 interface

Closes: https://bugs.gentoo.org/834152
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/julia/files/julia-1.6.5-libgit-1.4.patch  | 43 ++++++++++++++++++++++
 .../{julia-1.6.5.ebuild => julia-1.6.5-r1.ebuild}  |  1 +
 ...julia-1.7.1-r2.ebuild => julia-1.7.1-r3.ebuild} |  1 +
 3 files changed, 45 insertions(+)

diff --git a/dev-lang/julia/files/julia-1.6.5-libgit-1.4.patch b/dev-lang/julia/files/julia-1.6.5-libgit-1.4.patch
new file mode 100644
index 000000000000..fe753c0cd0e4
--- /dev/null
+++ b/dev-lang/julia/files/julia-1.6.5-libgit-1.4.patch
@@ -0,0 +1,43 @@
+This patch comes from:
+  https://github.com/archlinux/svntogit-community/blob/packages/julia/trunk/julia-libgit-1.4.patch
+
+diff --git a/stdlib/LibGit2/src/consts.jl b/stdlib/LibGit2/src/consts.jl
+index 2bc9edaf89..55887ebe2a 100644
+--- a/stdlib/LibGit2/src/consts.jl
++++ b/stdlib/LibGit2/src/consts.jl
+@@ -247,6 +247,11 @@ const RESET_HARD  = Cint(3) # MIXED plus changes in working tree discarded
+                             REBASE_OPERATION_FIXUP  = Cint(4),
+                             REBASE_OPERATION_EXEC   = Cint(5))
+ 
++# git_remote_redirect_t
++const GIT_REMOTE_REDIRECT_NONE    = Cint(0)
++const GIT_REMOTE_REDIRECT_INITIAL = Cint(1)
++const GIT_REMOTE_REDIRECT_ALL     = Cint(2)
++
+ # fetch_prune
+ const FETCH_PRUNE_UNSPECIFIED = Cint(0)
+ const FETCH_PRUNE             = Cint(1)
+diff --git a/stdlib/LibGit2/src/types.jl b/stdlib/LibGit2/src/types.jl
+index 9ffcaa3646..98d938df65 100644
+--- a/stdlib/LibGit2/src/types.jl
++++ b/stdlib/LibGit2/src/types.jl
+@@ -343,6 +343,9 @@ The fields represent:
+     @static if LibGit2.VERSION >= v"0.25.0"
+         proxy_opts::ProxyOptions       = ProxyOptions()
+     end
++    @static if LibGit2.VERSION >= v"1.4.0"
++        follow_redirects::Cint         = Consts.GIT_REMOTE_REDIRECT_INITIAL
++    end
+     @static if LibGit2.VERSION >= v"0.24.0"
+         custom_headers::StrArrayStruct = StrArrayStruct()
+     end
+@@ -674,6 +677,9 @@ The fields represent:
+     @static if LibGit2.VERSION >= v"0.25.0"
+         proxy_opts::ProxyOptions       = ProxyOptions()
+     end
++    @static if LibGit2.VERSION >= v"1.4.0"
++        follow_redirects::Cint         = Consts.GIT_REMOTE_REDIRECT_INITIAL
++    end
+     @static if LibGit2.VERSION >= v"0.24.0"
+         custom_headers::StrArrayStruct = StrArrayStruct()
+     end

diff --git a/dev-lang/julia/julia-1.6.5.ebuild b/dev-lang/julia/julia-1.6.5-r1.ebuild
similarity index 99%
rename from dev-lang/julia/julia-1.6.5.ebuild
rename to dev-lang/julia/julia-1.6.5-r1.ebuild
index 534e938e4e3d..0a4e571a1ed9 100644
--- a/dev-lang/julia/julia-1.6.5.ebuild
+++ b/dev-lang/julia/julia-1.6.5-r1.ebuild
@@ -69,6 +69,7 @@ PATCHES=(
 	"${FILESDIR}/${PN}"-1.6.5-llvm_13_compat_part_3.patch
 	"${FILESDIR}/${PN}"-1.6.5-llvm_13_compat_part_4.patch
 	"${FILESDIR}/${PN}"-1.6.5-libgit-1.2.patch
+	"${FILESDIR}/${PN}"-1.6.5-libgit-1.4.patch
 	"${FILESDIR}/${PN}"-1.6.5-make-install-no-build.patch
 	"${FILESDIR}/${PN}"-1.6.5-hardcoded-libs.patch
 	"${FILESDIR}/${PN}"-1.6.5-do_not_set_rpath.patch

diff --git a/dev-lang/julia/julia-1.7.1-r2.ebuild b/dev-lang/julia/julia-1.7.1-r3.ebuild
similarity index 99%
rename from dev-lang/julia/julia-1.7.1-r2.ebuild
rename to dev-lang/julia/julia-1.7.1-r3.ebuild
index 58f9de7db701..3f40656536fb 100644
--- a/dev-lang/julia/julia-1.7.1-r2.ebuild
+++ b/dev-lang/julia/julia-1.7.1-r3.ebuild
@@ -68,6 +68,7 @@ PATCHES=(
 	"${DISTDIR}/${PN}"-1.7.1-llvm_13_compat_part_4.patch
 	"${DISTDIR}/${PN}"-1.7.1-llvm_13_compat_part_5.patch
 	"${FILESDIR}/${PN}"-1.6.5-libgit-1.2.patch
+	"${FILESDIR}/${PN}"-1.6.5-libgit-1.4.patch
 	"${FILESDIR}/${PN}"-1.6.5-make-install-no-build.patch
 	"${FILESDIR}/${PN}"-1.7.1-hardcoded-libs.patch
 	"${FILESDIR}/${PN}"-1.7.1-do_not_set_rpath.patch


             reply	other threads:[~2022-03-17  9:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-17  9:06 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-14  4:33 [gentoo-commits] repo/gentoo:master commit in: dev-lang/julia/files/, dev-lang/julia/ Sam James
2024-11-04  5:16 Matthias Maier
2022-12-10 19:31 Maciej Barć
2022-01-03 21:37 Matthias Maier
2021-11-19  5:28 Sam James
2021-11-18  6:58 Matthias Maier
2020-04-03  3:20 Matthias Maier
2020-04-03  3:20 Matthias Maier
2019-02-24  3:12 Matthias Maier
2019-01-07 21:38 Matthias Maier
2018-08-31  2:32 Matthias Maier
2018-07-01  4:49 Matthias Maier
2017-11-28 11:12 Matthias Maier
2016-09-24 21:25 Matthias Maier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1647507992.0dbb267d2261560fd6eadad052b4c7020d28ccb5.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox