git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git v2.21.0-rc0 broken on *BSD, maybe others

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 12, 2019, 12:43 UTC
Message-ID
<20190212124323.GA11677@ash>
In-Reply-To
<87sgwtjjbk.fsf@evledraar.gmail.com>
On Tue, Feb 12, 2019 at 01:13:35PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 11 quoted lines
> 
> On Thu, Feb 07 2019, Junio C Hamano wrote:
> 
> > An early preview release Git v2.21.0-rc0 is now available for
> > testing at the usual places.  It is comprised of 426 non-merge
> > commits since v2.20.0, contributed by 57 people, 13 of which are
> > new faces.
> 
> As seen on https://gitlab.com/git-vcs/git-ci/branches there are
> regressions since 2.19.0, e.g. we have hard compile errors on BSD now,
> and maybe AIX. I haven't dug into it.

The build problem on BSD is known and being worked on [1]. I was going to install FreeBSD to examine it closey, but got distracted.

The AIX problem is from d1dd94b308 (Do not print 'dangling' for cat-file in case of ambiguity - 2019-01-17). Apparently AIX compiler is a bit picky about enum being a strong or weak type. I like this compiler. The below patch should do.

The test failures on NetBSD and Solaris/Sparc, not sure if we can do anything without test logs or access to these systems.

-- 8< --
diff --git a/sha1-name.c b/sha1-name.c
index d1cc77c124..6dda2c16df 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1820,9 +1820,11 @@ void maybe_die_on_misspelt_object_name(const char *name, const char *prefix)
 			       prefix, &oid, &oc);
 }
 
-int get_oid_with_context(struct repository *repo, const char *str,
-			 unsigned flags, struct object_id *oid,
-			 struct object_context *oc)
+enum get_oid_result get_oid_with_context(struct repository *repo,
+					 const char *str,
+					 unsigned flags,
+					 struct object_id *oid,
+					 struct object_context *oc)
 {
 	if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
 		BUG("incompatible flags for get_sha1_with_context");
-- 8< --


[1] https://public-inbox.org/git/xmqqsgwwizf6.fsf@gitster-ct.c.googlers.com/
--
Duy
Previous: Ævar Arnfjörð BjarmasonNext: Duy Nguyen
Message 8 of 20 in “[ANNOUNCE] Git v2.21.0-rc0”
  1. Junio C HamanoFeb 7, 2019
  2. Christian CouderFeb 7, 2019
  3. Johannes SchindelinFeb 7, 2019
  4. Johannes SchindelinFeb 7, 2019
  5. Junio C HamanoFeb 7, 2019
  6. Junio C HamanoFeb 7, 2019
  7. Git v2.21.0-rc0 broken on *BSD, maybe othersÆvar Arnfjörð Bjarmason, Feb 12, 2019
  8. Duy NguyenFeb 12, 2019
  9. Duy NguyenFeb 12, 2019
  10. Ævar Arnfjörð BjarmasonFeb 12, 2019
  11. Ævar Arnfjörð BjarmasonFeb 12, 2019
  12. SZEDER GáborFeb 12, 2019
  13. Johannes SchindelinFeb 13, 2019
  14. Junio C HamanoFeb 12, 2019
  15. Junio C HamanoFeb 12, 2019
  16. Junio C HamanoFeb 12, 2019
  17. Junio C HamanoFeb 12, 2019
  18. Junio C HamanoFeb 12, 2019
  19. SZEDER GáborFeb 12, 2019
  20. Ævar Arnfjörð BjarmasonFeb 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.