Commit Graph

662 Commits

Author SHA1 Message Date
Todd Zullinger
3c9cdffa29 add 'missing WINDOWS' to git.skip-test-patterns
We're unlikely to provide the 'WINDOWS' prerequisite in our builds.  Nor
are we likely to care about the tests which are skipped as a result.

(Also, 'missing WINDOWS' is not a phrase I thought I'd ever write.)
2021-05-21 20:04:19 -04:00
Todd Zullinger
e67c091cc6 update to 2.32.0-rc0
Release notes:
https://github.com/git/git/raw/v2.32.0-rc0/Documentation/RelNotes/2.32.0.txt
2021-05-21 20:04:15 -04:00
Todd Zullinger
b1bd88b45b clean up various dist conditionals
Remove all conditionals for EL-6; it is EOL as of November 2020.

Replace a number of `EL > 7` with `EL >= 8` to make the intention
clearer.  The next version of RHEL is no longer shrouded in mystery.

Drop conditionals which apply only to long-obsolete Fedora releases.
2021-05-21 20:02:38 -04:00
Jitka Plesnikova
d6f2c616bc Perl 5.34 rebuild 2021-05-21 23:58:49 +02:00
Todd Zullinger
bf80478210 apply upstream patch to fix clone --bare segfault
If core.bare=false is set in the global git config, git clone --bare
results in a segfault.  Fix it.

Resolves: rhbz#1952030
Upstream-patch: https://github.com/git/git/commit/75555676ad
Upstream-report: https://lore.kernel.org/git/D99DD9AD-54E5-4357-BA50-8B9CAE23084E@amazon.com/
2021-04-27 15:19:07 -04:00
Todd Zullinger
7e7f589af7 remove two stray %defattr macros from %%files sections
All %defattr macros were removed in ff200ca (Remove obsolete %defattr,
2018-02-07).  Two were subsequently added in f8a83b9 (Move instaweb to a
subpackage, 2018-09-06) and 9d91bab (split libsecret credential helper
into a subpackage (#1804741), 2020-02-19).

Remove both entries and (hopefully) avoid adding new entries in the
future.
2021-04-06 09:58:48 -04:00
Todd Zullinger
e4b60c52ef update to 2.31.1
Release notes:
https://github.com/git/git/raw/v2.31.1/Documentation/RelNotes/2.31.1.txt
2021-03-27 00:20:43 -04:00
Todd Zullinger
4971df866e fix git bisect with annotaged tags
As git bisect was migrated from shell to C, the bisect_state conversion
lost the ability to handle annotated tags.  This was not intentional.

It is fixed in upstream commit 7730f85594 (bisect: peel annotated tags
to commits, 2021-03-16).

References:
https://lore.kernel.org/git/878s6nz1sg.fsf@igel.home/
https://github.com/git/git/commit/7730f85594.patch
2021-03-19 17:06:33 -04:00
Todd Zullinger
ce53345a7d update to 2.31.0
Release notes:
https://github.com/git/git/raw/v2.31.0/Documentation/RelNotes/2.31.0.txt
2021-03-15 16:04:01 -04:00
Todd Zullinger
a085ac4d92 add 'missing UTF8_NFD_TO_NFC' to git.skip-test-patterns
The UTF8_NFD_TO_NFC prereq was added to t0021-conversion and
t2006-checkout-index-basic in upstream commit 684dd4c2b4 (checkout: fix
bug that makes checkout follow symlinks in leading path, 2020-12-10), to
test the fixes for CVE-2021-21300.

Fedora's supported systems do not appear to "convert decomposed utf-8
(nfd) to precomposed utf-8 (nfc)" which is what the prereq covers.

Ignore the skipped tests which use the UTF8_NFD_TO_NFC prereq when
looking for missing test dependencies and/or incorrectly skipped tests.
2021-03-09 15:59:32 -05:00
Todd Zullinger
cb2e458a19 update to 2.31.0-rc2
This release includes a fix for CVE-2021-21300¹ in addition to the other
changes along the path to the final 2.31.0 release.

Release notes:
https://github.com/git/git/raw/v2.31.0-rc2/Documentation/RelNotes/2.31.0.txt

¹ Per the 2.17.6 release notes on CVE-2021-21300:
    On case-insensitive file systems with support for symbolic links, if
    Git is configured globally to apply delay-capable clean/smudge
    filters (such as Git LFS), Git could be fooled into running remote
    code during a clone.
2021-03-09 14:06:01 -05:00
Todd Zullinger
91eeb42936 update to 2.31.0-rc1
Release notes:
https://github.com/git/git/raw/v2.31.0-rc1/Documentation/RelNotes/2.31.0.txt
2021-03-03 10:22:27 -05:00
Todd Zullinger
adc702ecfc update to 2.31.0-rc0
Release notes:
https://github.com/git/git/raw/v2.31.0-rc0/Documentation/RelNotes/2.31.0.txt
2021-03-03 10:21:08 -05:00
Todd Zullinger
e34350e16e improve gpg verification of upstream source
Use %{gpgverify} macro to verify tarball signature.  The macro is now
available for all supported Fedora and EPEL releases.  (It is presumed
that EL-9 will include %{gpgverify} as it will be branched from F-34.
If that turns out to be false, we will adjust later.)

The Packaging Guidelines require the use of the %{gpgverify} macro:

    https://docs.fedoraproject.org/en-US/packaging-guidelines/#_verifying_signatures

Add a BuildRequires for xz as well, since we use it explicitly in %prep.

Renumber Junio's GPG key from Source9 to Source2 so the %{gpgverify}
calls follow the typical pattern.  It (mildly) lessens cognitive load
for anyone reviewing the spec file.

While here, remove a stale comment about leaving a blank line after
%autosetup to work around a bug on EL6.
2021-03-02 13:17:44 -05:00
Zbigniew Jędrzejewski-Szmek
5662337240 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:13:48 +01:00
Ondřej Pohořelský
8d48672806 include git-daemon in git-all meta-package
Installing the git-all meta-package is intended to bring in all git
subpackages.  Add the missing git-daemon.
2021-02-23 09:55:30 -05:00
Todd Zullinger
9163954e0f re-enable t7812-grep-icase-non-ascii on s390x
We disabled t7812's 'PCRE v2: grep non-ASCII from invalid UTF-8 data'
test in 33ecb78 (skip failing test in t7812-grep-icase-non-ascii on
s390x, 2019-10-24).

It was subsequently fixed upstream in e714b898c6 (t7812: expect failure
for grep -i with invalid UTF-8 data, 2019-11-29) and more recently
improved with a4fea08b6e (grep/pcre2 tests: don't rely on invalid UTF-8
data test, 2021-01-24).

Don't skip the test any longer.
2021-02-23 09:54:38 -05:00
Todd Zullinger
0cb8e1a378 update to 2.30.1
Release notes:
https://github.com/git/git/raw/v2.30.1/Documentation/RelNotes/2.30.1.txt
2021-02-08 22:06:18 -05:00
Ondřej Pohořelský
3913289de2 add rhel 9 conditional to require httpd instead of lighttpd in git-instaweb 2021-02-08 22:02:49 -05:00
Todd Zullinger
50e6f6ece0 update Junio's GPG key (with extended expiration)
The key used to sign git releases expired in July 2020.  While this
doesn't strictly affect us because use gpgv to verify the releases
against a known key file, it is worth updating to make it clear that
we're using the correct signing key.

Refer to 7c95c76 (Update Junio's GPG key, 2017-09-16) for a previous
update of the key, including the process used.

Here is a diff of the key file before and after the update:

    $ diff -u <(gpg gpgkey-junio.asc.old 2>/dev/null) <(gpg gpgkey-junio.asc 2>/dev/null)
    --- /dev/fd/63	2021-01-25 11:57:17.367151191 -0500
    +++ /dev/fd/62	2021-01-25 11:57:17.368151229 -0500
    @@ -3,6 +3,6 @@
     uid                           Junio C Hamano <gitster@pobox.com>
     uid                           Junio C Hamano <junio@pobox.com>
     uid                           Junio C Hamano <jch@google.com>
    -sub   rsa4096/B0B5E88696AFE6CB 2011-10-03 [S] [expired: 2020-07-26]
    +sub   rsa4096/B0B5E88696AFE6CB 2011-10-03 [S] [expires: 2028-01-11]
     sub   rsa4096/86B76D5D833262C4 2011-10-01 [E]
    -sub   rsa4096/7594EEC7B3F7CAC9 2014-09-20 [S] [expired: 2020-07-26]
    +sub   rsa4096/7594EEC7B3F7CAC9 2014-09-20 [S] [expires: 2028-01-11]

This thread on the git list is where the question was raised and Junio
confirmed he'd extended the expiration of his signing key:

https://lore.kernel.org/git/B6DFB74D-A722-4DBD-A4B2-562604B21CCB@alchemists.io/T/#u
2021-02-08 21:58:40 -05:00
Fedora Release Engineering
cb12da19d4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 08:07:04 +00:00
Todd Zullinger
c93103f5ad update to 2.30.0
Release notes:
https://github.com/git/git/raw/v2.30.0/Documentation/RelNotes/2.30.0.txt
2020-12-28 15:02:16 -05:00
Todd Zullinger
8fef3782c3 update to 2.30.0-rc2
Release notes:
https://github.com/git/git/raw/v2.30.0-rc2/Documentation/RelNotes/2.30.0.txt
2020-12-23 19:01:29 -05:00
Todd Zullinger
9e220daf74 update to 2.30.0-rc1
Release notes:
https://github.com/git/git/raw/v2.30.0-rc1/Documentation/RelNotes/2.30.0.txt
2020-12-18 23:40:05 -05:00
Todd Zullinger
528c7a0575 update to 2.30.0-rc0
Release notes:
https://github.com/git/git/raw/v2.30.0-rc0/Documentation/RelNotes/2.30.0.txt
2020-12-14 15:09:47 -05:00
Todd Zullinger
ce1d42aa54 lint: ignore "no-binary" warning for main git package
Making the main package noarch is not trivial since we have
arch-specific subpackages.  (I'm not sure it's even possible.)

As noted in 5c331b2 (fix/quiet rpmlint issues from libsecret split,
2020-04-05), when libsecret was split into a subpackage in 9d91bab
(split libsecret credential helper into a subpackage (#1804741),
2020-02-19), it removed the only remaining binary from the main package.
2020-12-07 11:41:54 -05:00
Todd Zullinger
858ea85cce move git-difftool to git-core, it does not require perl
The `git difftool` command was converted to a builtin in git-2.12.0
(from 2017).  We don't need to split it out of git-core.

This was missed in cb7fab7 (Move commands which no longer require perl
into git-core, 2017-11-10) and d56cfc6 (Use symlinks instead of
hardlinks for installed binaries, 2018-03-15).  Better late than never.
2020-12-06 14:47:41 -05:00
Todd Zullinger
c22491b4e8 add epel-rpm-macros BuildRequires on EL-7 (#1872865)
We intend to support building on all supported Fedora and EPEL releases
from the Rawhide branch.  On EL-7, the %build_cflags and %build_ldflags
macros are not present without installing epel-rpm-macros.  Add a build
requirement to ensure these macros are available when building on EL-7.
2020-11-28 19:18:37 -05:00
Todd Zullinger
1faa4b1131 apply upstream patch to resolve git fast-import memory leak (#1900335)
A change in git-2.27.0¹ caused fast-import to leak memory and crash in
some cases.  Apply the upstream fix², which didn't quite make it into
git-2.29.0.

¹ ddddf8d7e2 (fast-import: permit reading multiple marks files, 2020-02-22)
  https://github.com/git/git/commit/ddddf8d7e2

² 3f018ec716 (fast-import: fix over-allocation of marks storage, 2020-10-15)
  https://github.com/git/git/commit/3f018ec716
2020-11-25 20:55:44 -05:00
Todd Zullinger
6b303b4795 apply upstream patch to resolve git log segfault (#1791810)
A change in git-2.24.0¹ resulted in a segfault when combining the
incompatible (and nonsensical) --follow and -L git log options.  (These
options were used by the GitLens plugin for VS Code until recently².)

The upstream fix returns an error when these options are combined rather
than a segfault.

¹ a2bb801f6a (line-log: avoid unnecessary full tree diffs, 2019-08-21)
  https://github.com/git/git/commit/a2bb801f6a

² Fixed in GitLens >= 10.2.3
  https://github.com/eamodio/vscode-gitlens/issues/1139
2020-11-16 18:45:51 -05:00
Todd Zullinger
8fc9bc0302 update to 2.29.2
Quoting the release notes:

   In 2.29, "--committer-date-is-author-date" option of "rebase" and
   "am" subcommands lost the e-mail address by mistake, which has been
   corrected.

Release notes:
https://github.com/git/git/raw/v2.29.2/Documentation/RelNotes/2.29.2.txt
2020-10-29 18:45:12 -04:00
Todd Zullinger
79a4aef788 fix bugs in am/rebase handling of committer ident/date
Quoting from Jeff King's commit message:

    Commit e8cbe2118a (am: stop exporting GIT_COMMITTER_DATE, 2020-08-17)
    rewrote the code for setting the committer date to use fmt_ident(),
    rather than setting an environment variable and letting commit_tree()
    handle it. But it introduced two bugs:

      - we use the author email string instead of the committer email

      - when parsing the committer ident, we used the wrong variable to
	compute the length of the email, resulting in it always being a
	zero-length string

The regression affected both am and rebase.  Apply the upstream fixes.

References:
https://lore.kernel.org/git/20201023070747.GA2198273@coredump.intra.peff.net/
2020-10-24 22:24:00 -04:00
Todd Zullinger
f3a190b8da update to 2.29.1
The update to 2.29.1 is pointless on its own¹, but a subsequent commit
will add some additional post-release fixes for 2.29.  Once we're
pushing an update, we might as well pick up the latest point release to
avoid anyone wondering why we've skipped an update.

Release notes:
https://github.com/git/git/raw/v2.29.1/Documentation/RelNotes/2.29.1.txt

¹ The only change in 2.29.1 is a Makefile fix for users of the
  non-default SKIP_DASHED_BUILT_INS installation option.
2020-10-24 22:18:37 -04:00
Todd Zullinger
08f0612fd8 update to 2.29.0
Release notes:
https://github.com/git/git/raw/v2.29.0/Documentation/RelNotes/2.29.0.txt
2020-10-19 22:43:16 -04:00
Todd Zullinger
126d6526c9 update to 2.29.0-rc2
Release notes:
https://github.com/git/git/raw/v2.29.0-rc2/Documentation/RelNotes/2.29.0.txt
2020-10-15 16:56:50 -04:00
Todd Zullinger
58dc6bb36a adjust python hashbang in contrib/hg-to-git, it supports python3
The hg-to-git.py script in contrib grew python3 support in upstream
commit d17ae00c97 (hg-to-git: make it compatible with both python3 and
python2, 2019-09-18), which was released in git-2.24.0.  Move it from
the python2-only conditionals.

(This leaves contrib/fast-import/import-zips.py as the sole python
script which is _not_ python3-compatible.  It seems to need only minimal
fixes for python2/python3 compatibility -- per some light testing.)
2020-10-11 12:28:51 -04:00
Todd Zullinger
cdea01ae55 drop emacs-git stub for fedora >= 34 (#1882360)
Since git-2.18.0, the emacs files shipped in git have been stub files
which merely point users to better options.  Stop shipping these stubs
with Fedora 34 and later.

Drop the emacs BuildRequires on Fedora >= 34.  Elsewhere, replace it
with emacs-common.  We need macros.emacs for %{_emacs_sitelispdir}
anywhere we ship the stub .el files¹.

The full emacs BR _was_ necessary prior to git-2.18.0, as /usr/bin/emacs
was used to byte compile the .el files.  It traces all the way back to
e46bac5 (Add emacs-git package from Ville (#235431), 2007-06-22).

¹ It might be nice if there were an emacs-rpm-macros for this.  But
  emacs-common is a lot lighter than emacs, so it's still a nice
  improvement.  Per `dnf install` in a current f33 container image:

    $ dnf install emacs
    ...
    Install  193 Packages
    Total download size: 164 M
    Installed size: 544 M

    $ dnf install emacs-common
    ...
    Install  7 Packages
    Total download size: 36 M
    Installed size: 89 M
2020-10-11 12:28:51 -04:00
Todd Zullinger
29f5c9d803 update to 2.29.0-rc1
Release notes:
https://github.com/git/git/raw/v2.29.0-rc1/Documentation/RelNotes/2.29.0.txt
2020-10-09 16:16:03 -04:00
Todd Zullinger
425f3a39fa update to 2.29.0-rc0
Delete references to contrib/svn-fe, it was deleted in upstream commit
fc47391e24 (drop vcs-svn experiment, 2020-08-13).

Release notes:
https://github.com/git/git/raw/v2.29.0-rc0/Documentation/RelNotes/2.29.0.txt
2020-10-05 21:41:37 -04:00
Todd Zullinger
4ba9ba2188 update to 2.28.0
Release notes:
https://github.com/git/git/raw/v2.28.0/Documentation/RelNotes/2.28.0.txt
2020-07-27 17:46:34 -04:00
Fedora Release Engineering
b5802f9607 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 20:03:13 +00:00
Todd Zullinger
495c6f3ba7 update to 2.28.0-rc2
Release notes:
https://github.com/git/git/raw/v2.28.0-rc2/Documentation/RelNotes/2.28.0.txt
2020-07-22 13:41:37 -04:00
Todd Zullinger
b1fa2c8b04 update to 2.28.0-rc1
Release notes:
https://github.com/git/git/raw/1e1a30b64a/Documentation/RelNotes/2.28.0.txt
2020-07-19 19:06:45 -04:00
Todd Zullinger
a773853481 update to 2.28.0-rc0
Release notes:
https://github.com/git/git/raw/v2.28.0-rc0/Documentation/RelNotes/2.28.0.txt

Update git.skip-test-patterns to catch the 2GB clone test.  The output
of the skipped test was changed (for the better) in upstream commit
d63ae31962 (t5608: avoid say() and use "skip_all" instead for
consistency, 2020-05-22).
2020-07-19 19:01:55 -04:00
Jitka Plesnikova
9c1c244fd7 Perl 5.32 re-rebuild of bootstrapped packages 2020-06-26 16:20:55 +02:00
Jitka Plesnikova
8169cdf554 Perl 5.32 rebuild 2020-06-23 10:13:40 +02:00
Todd Zullinger
29f9b2024d update to 2.27.0
Release notes:
https://www.kernel.org/pub/software/scm/git/docs/RelNotes/2.27.0.txt
2020-06-01 19:37:50 -04:00
Todd Zullinger
e79e6b9e08 update to 2.27.0-rc2
Release notes:
https://www.kernel.org/pub/software/scm/git/docs/RelNotes/2.27.0.txt
2020-05-26 14:52:46 -04:00
Todd Zullinger
1a2db2d667 update to 2.27.0-rc1
Release notes:
https://www.kernel.org/pub/software/scm/git/docs/RelNotes/2.27.0.txt
2020-05-21 21:00:07 -04:00
Merlin Mathesius
24de439725 Minor conditional fixes for ELN
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2020-05-21 13:37:09 -05:00