Skip to contentSkip to conversation

git version bump

PATCH In review Bagas Sanjaya 3 participants 5 messages Mar 14, 2023 – Mar 19, 2023

lore
Share & tools
lore
#0 lore raw

cover git version bump

Git 2.40 has been released on March 13, so here is the bump.

The actual bump is in [1/2], whereas in [2/2], add DEVELOPERS entry for Bagas as package maintainer.

Bagas Sanjaya (2):
package/git: bump to version 2.40.0
DEVELOPERS: Add entry for Bagas Sanjaya as Buildroot developer for git

 DEVELOPERS                                    |   3 +
 ...avoid-redefining-system-function-nam.patch | 109 ------------------
 ...undefine-system-names-before-redecla.patch |  55 ---------
 package/git/git.hash                          |   2 +-
 package/git/git.mk                            |   2 +-
 5 files changed, 5 insertions(+), 166 deletions(-)
 delete mode 100644 package/git/0001-git-compat-util-avoid-redefining-system-function-nam.patch
 delete mode 100644 package/git/0002-git-compat-util-undefine-system-names-before-redecla.patch

base-commit: 27ea8958e1595a92b92f7057bcf005db0fa363f1

Signature · 6 lines
An old man doll... just what I always wanted! - Clara

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/2 package/git: bump to version 2.40.0

Bump the package to v2.40.0. The release announcement and notes are at [1].

While at it, also drop two Buildroot patches as these have been already applied upstream.

[1]: https://lore.kernel.org/git/[email protected]/

---
 ...avoid-redefining-system-function-nam.patch | 109 ------------------
 ...undefine-system-names-before-redecla.patch |  55 ---------
 package/git/git.hash                          |   2 +-
 package/git/git.mk                            |   2 +-
 4 files changed, 2 insertions(+), 166 deletions(-)
 delete mode 100644 package/git/0001-git-compat-util-avoid-redefining-system-function-nam.patch
 delete mode 100644 package/git/0002-git-compat-util-undefine-system-names-before-redecla.patch
package/git/0001-git-compat-util-avoid-redefining-system-function-nam.patch deleted +0 -109
deleted file mode 100644
index 24100e1f6e..0000000000
@@ -1,109 +0,0 @@
-From 86aeac96d04ae5381085c0f93acb12d3bfd06969 Mon Sep 17 00:00:00 2001
-From: Jeff King <[email protected]>
-Date: Wed, 30 Nov 2022 16:15:14 -0500
-Subject: [PATCH] git-compat-util: avoid redefining system function names
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Our git-compat-util header defines a few noop wrappers for system
-functions if they are not available. This was originally done with a
-macro, but in 15b52a44e0 (compat-util: type-check parameters of no-op
-replacement functions, 2020-08-06) we switched to inline functions,
-because it gives us basic type-checking.
-
-This can cause compilation failures when the system _does_ declare those
-functions but we choose not to use them, since the compiler will
-complain about the redeclaration. This was seen in the real world when
-compiling against certain builds of uclibc, which may leave
-_POSIX_THREAD_SAFE_FUNCTIONS unset, but still declare flockfile() and
-funlockfile().
-
-It can also be seen on any platform that has setitimer() if you choose
-to compile without it (which plausibly could happen if the system
-implementation is buggy). E.g., on Linux:
-
-  $ make NO_SETITIMER=IWouldPreferNotTo git.o
-      CC git.o
-  In file included from builtin.h:4,
-                   from git.c:1:
-  git-compat-util.h:344:19: error: conflicting types for ‘setitimer’; have ‘int(int,  const struct itimerval *, struct itimerval *)’
-    344 | static inline int setitimer(int which UNUSED,
-        |                   ^~~~~~~~~
-  In file included from git-compat-util.h:234:
-  /usr/include/x86_64-linux-gnu/sys/time.h:155:12: note: previous declaration of ‘setitimer’ with type ‘int(__itimer_which_t,  const struct itimerval * restrict,  struct itimerval * restrict)’
-    155 | extern int setitimer (__itimer_which_t __which,
-        |            ^~~~~~~~~
-  make: *** [Makefile:2714: git.o] Error 1
-
-Here I think the compiler is complaining about the lack of "restrict"
-annotations in our version, but even if we matched it completely (and
-there is no way to match all platforms anyway), it would still complain
-about a static declaration following a non-static one. Using macros
-doesn't have this problem, because the C preprocessor rewrites the name
-in our code before we hit this level of compilation.
-
-One way to fix this would just be to revert most of 15b52a44e0. What we
-really cared about there was catching build problems with
-precompose_argv(), which most platforms _don't_ build, and which is our
-custom function. So we could just switch the system wrappers back to
-macros; most people build the real versions anyway, and they don't
-change. So the extra type-checking isn't likely to catch bugs.
-
-But with a little work, we can have our cake and eat it, too. If we
-define the type-checking wrappers with a unique name, and then redirect
-the system names to them with macros, we still get our type checking,
-but without redeclaring the system function names.
-
-Signed-off-by: Jeff King <[email protected]>
-Signed-off-by: Junio C Hamano <[email protected]>
-[Bagas: cherry-picked from e0c08a4f738b3dea7a4e8fe3511c323cf1f41942 on next branch]
-Signed-off-by: Bagas Sanjaya <[email protected]>
----
- git-compat-util.h | 13 ++++++++-----
- 1 file changed, 8 insertions(+), 5 deletions(-)
-
-diff --git a/git-compat-util.h b/git-compat-util.h
-index af05077560..f6882b9b50 100644
---- a/git-compat-util.h
-+++ b/git-compat-util.h
-@@ -341,11 +341,12 @@ struct itimerval {
- #endif
- 
- #ifdef NO_SETITIMER
--static inline int setitimer(int which UNUSED,
--			    const struct itimerval *value UNUSED,
--			    struct itimerval *newvalue UNUSED) {
-+static inline int git_setitimer(int which,
-+				const struct itimerval *value,
-+				struct itimerval *newvalue) {
- 	return 0; /* pretend success */
- }
-+#define setitimer(which,value,ovalue) git_setitimer(which,value,ovalue)
- #endif
- 
- #ifndef NO_LIBGEN_H
-@@ -1479,14 +1480,16 @@ int open_nofollow(const char *path, int flags);
- #endif
- 
- #ifndef _POSIX_THREAD_SAFE_FUNCTIONS
--static inline void flockfile(FILE *fh UNUSED)
-+static inline void git_flockfile(FILE *fh)
- {
- 	; /* nothing */
- }
--static inline void funlockfile(FILE *fh UNUSED)
-+static inline void git_funlockfile(FILE *fh)
- {
- 	; /* nothing */
- }
-+#define flockfile(fh) git_flockfile(fh)
-+#define funlockfile(fh) git_funlockfile(fh)
- #define getc_unlocked(fh) getc(fh)
- #endif
- 
-
-base-commit: cbf04937d5b9fcf0a76c28f69e6294e9e3ecd7e6
--- 
-An old man doll... just what I always wanted! - Clara
-
package/git/0002-git-compat-util-undefine-system-names-before-redecla.patch deleted +0 -55

55 lines not on this page · raw message

package/git/git.hash +1 -1
index b7840cd1eb..edb1595520 100644
@@ -1,5 +1,5 @@
 # From: https://www.kernel.org/pub/software/scm/git/sha256sums.asc
-sha256  475f75f1373b2cd4e438706185175966d5c11f68c4db1e48c26257c43ddcf2d6  git-2.39.2.tar.xz
+sha256  b17a598fbf58729ef13b577465eb93b2d484df1201518b708b5044ff623bf46d  git-2.40.0.tar.xz
 # Locally calculated
 sha256  5b2198d1645f767585e8a88ac0499b04472164c0d2da22e75ecf97ef443ab32e  COPYING
 sha256  1922f45d2c49e390032c9c0ba6d7cac904087f7cec51af30c2b2ad022ce0e76a  LGPL-2.1
package/git/git.mk +1 -1
index 206d06ffe7..46ffc86151 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-GIT_VERSION = 2.39.2
+GIT_VERSION = 2.40.0
 GIT_SOURCE = git-$(GIT_VERSION).tar.xz
 GIT_SITE = $(BR2_KERNEL_MIRROR)/software/scm/git
 GIT_LICENSE = GPL-2.0, LGPL-2.1+
Signature · 6 lines
An old man doll... just what I always wanted! - Clara

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/2] package/git: bump to version 2.40.0

Quoted 9 lines · On Tue, 14 Mar 2023 16:52:33 +0700 Bagas Sanjaya <[email protected]> wrote:

Bump the package to v2.40.0. The release announcement and notes are at [1].

While at it, also drop two Buildroot patches as these have been already applied upstream.

[1]: https://lore.kernel.org/git/[email protected]/

Quoted 8 lines
---
 ...avoid-redefining-system-function-nam.patch | 109 ------------------
 ...undefine-system-names-before-redecla.patch |  55 ---------
 package/git/git.hash                          |   2 +-
 package/git/git.mk                            |   2 +-
 4 files changed, 2 insertions(+), 166 deletions(-)
 delete mode 100644 package/git/0001-git-compat-util-avoid-redefining-system-function-nam.patch
 delete mode 100644 package/git/0002-git-compat-util-undefine-system-names-before-redecla.patch

Both patches of this series applied to master. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 2/2 DEVELOPERS: Add entry for Bagas Sanjaya as Buildroot developer for git

In reply to Bagas Sanjaya

Bagas is keen to maintain git package for Buildroot. However, due to limited resources available, he can only do testing as far as build testing. Other developers are needed to help him maintain the package.

---
 DEVELOPERS | 3 +++
 1 file changed, 3 insertions(+)
DEVELOPERS +3 -0
index b49491da7a..b6d288c54f 100644
@@ -273,6 +273,9 @@ F:	package/orbit/
 N:	Attila Wagner <[email protected]>
 F:	package/python-canopen/
 
+N:	Bagas Sanjaya <[email protected]>
+F:	package/git/
+
 N:	Bartosz Bilas <[email protected]>
 F:	board/stmicroelectronics/stm32mp157a-dk1/
 F:	configs/stm32mp157a_dk1_defconfig
Signature · 6 lines
An old man doll... just what I always wanted! - Clara

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH 2/2] DEVELOPERS: Add entry for Bagas Sanjaya as Buildroot developer for git

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bagas" == Bagas Sanjaya <[email protected]> writes:

Bagas is keen to maintain git package for Buildroot. However, due to limited resources available, he can only do testing as far as build testing. Other developers are needed to help him maintain the package.

Committed to 2023.02.x and 2022.02.x, thanks.

Quoted 26 lines
---
 DEVELOPERS | 3 +++
 1 file changed, 3 insertions(+)
DEVELOPERS +3 -0
index b49491da7a..b6d288c54f 100644
@@ -273,6 +273,9 @@ F:	package/orbit/
 N:	Attila Wagner <[email protected]>
 F:	package/python-canopen/
 
+N:	Bagas Sanjaya <[email protected]>
+F:	package/git/
+
 N:	Bartosz Bilas <[email protected]>
 F:	board/stmicroelectronics/stm32mp157a-dk1/
 F:	configs/stm32mp157a_dk1_defconfig
Signature · 6 lines
An old man doll... just what I always wanted! - Clara

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot