Update to LLVM 17.0.0 RC1
This is also a squashed merge commit from upstream-snapshot (commit ID fe5321f2724e7e4f) into rawhide whose most important commits from upstream-snapshot are: Konrad Kleine (32): Initial attempt to do snapshot-build Don't enter dir twice Adopt D103156 Update D103156.diff D103156 was merged upstream so no need to apply it manually here Disable checks when building snapshots Make download path for snapshot sources-easily adjustable Cleanup and use llvm_snapshot_changelog_entry macro Use llvm_snapshot_version_suffix Use new llvm-snapshot-builder macro Enable build condition snapshot_build by default Add .copr/Makefile Fix order of package installs Remove need for rpkg Apply workaround for enabling the llvm-snapshot-builder repo fix typo Fix paths to download sources to Move rpm to outdir Move source RPMs not binary ones Temporarily enable debug output Alternative approache to verbose output Add llvm-release-<YYYYMMDD>.txt and llvm-git-revision-<YYYYMMDD>.txt to the list of sources Re-enable verbose output Use llvm_snapshot_extra_source_tags macro Merge remote-tracking branch 'upstream/main' into upstream-snapshot Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot README.txt was renamed to README.rst upstream Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot Rem. @fedora-llvm-team/llvm-snapshot-builder repo Fixup for #34: removal of obsolete repo. Fixup for PR #35
This commit is contained in:
parent
b91c312bd2
commit
aed0df2990
17
.copr/Makefile
Normal file
17
.copr/Makefile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# See https://docs.pagure.org/copr.copr/user_documentation.html#make-srpm
|
||||||
|
# See for the --setopt option in the enabling of copr repo see:
|
||||||
|
# https://pagure.io/copr/copr/issue/184
|
||||||
|
|
||||||
|
COPR_USERNAME=$(shell rpm --eval %copr_username)
|
||||||
|
COPR_PROJECT=$(shell rpm --eval %copr_projectname)
|
||||||
|
|
||||||
|
.PHONY: srpm
|
||||||
|
srpm:
|
||||||
|
dnf install -y dnf-plugins-core fedora-packager
|
||||||
|
dnf copr enable -y --setopt=reposdir=/tmp/yum.repos.d $(COPR_USERNAME)/$(COPR_PROJECT)
|
||||||
|
dnf install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder
|
||||||
|
rpmbuild \
|
||||||
|
--define "_srcrpmdir $(outdir)" \
|
||||||
|
--define "_sourcedir $(shell pwd)" \
|
||||||
|
--define "_disable_source_fetch 0" \
|
||||||
|
-bs $(spec)
|
13
D149746.diff
13
D149746.diff
@ -1,13 +0,0 @@
|
|||||||
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
|
|
||||||
--- a/llvm/utils/lit/lit/llvm/config.py
|
|
||||||
+++ b/llvm/utils/lit/lit/llvm/config.py
|
|
||||||
@@ -144,6 +144,8 @@
|
|
||||||
features.add('target-aarch64')
|
|
||||||
elif re.match(r'^arm.*', target_triple):
|
|
||||||
features.add('target-arm')
|
|
||||||
+ if re.match(r'^ppc64le.*-linux', target_triple):
|
|
||||||
+ features.add('target=powerpc64le-linux')
|
|
||||||
|
|
||||||
use_gmalloc = lit_config.params.get('use_gmalloc', None)
|
|
||||||
if lit.util.pythonize_bool(use_gmalloc):
|
|
||||||
|
|
@ -1,22 +1,39 @@
|
|||||||
%global lit_version 16.0.6
|
%bcond_with snapshot_build
|
||||||
#global rc_ver 4
|
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
# Unlock LLVM Snapshot LUA functions
|
||||||
|
%{llvm_sb_verbose}
|
||||||
|
%{llvm_sb}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global lit_version 17.0.0
|
||||||
|
%global rc_ver 1
|
||||||
#global post_ver 0
|
#global post_ver 0
|
||||||
|
|
||||||
|
%global python_lit_srcdir %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}
|
||||||
|
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
%undefine rc_ver
|
||||||
|
%global lit_version %{llvm_snapshot_version}
|
||||||
|
%global python_lit_srcdir llvm-%{lit_version}.src/utils/lit
|
||||||
|
%endif
|
||||||
|
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
|
|
||||||
Name: python-lit
|
Name: python-lit
|
||||||
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
Summary: Tool for executing llvm test suites
|
Summary: Tool for executing llvm test suites
|
||||||
URL: https://pypi.python.org/pypi/lit
|
URL: https://pypi.python.org/pypi/lit
|
||||||
|
%if %{without snapshot_build}
|
||||||
Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}}
|
Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}}
|
||||||
# Remove the license file if it gets included in the tarball again.
|
%else
|
||||||
Source1: https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{lit_version}%{?rc_ver:rc%{rc_ver}}/llvm/utils/lit/LICENSE.TXT
|
Source0: %{llvm_snapshot_source_prefix}llvm-%{llvm_snapshot_yyyymmdd}.src.tar.xz
|
||||||
|
%{llvm_snapshot_extra_source_tags}
|
||||||
Patch0: D149746.diff
|
%endif
|
||||||
|
|
||||||
# for file check
|
# for file check
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
@ -38,8 +55,11 @@ Recommends: python3-psutil
|
|||||||
lit is a tool used by the LLVM project for executing its test suites.
|
lit is a tool used by the LLVM project for executing its test suites.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
%autosetup -n %{python_lit_srcdir} -p4
|
||||||
|
%else
|
||||||
%autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4
|
%autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4
|
||||||
cp %{SOURCE1} ./
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -50,7 +70,7 @@ cp %{SOURCE1} ./
|
|||||||
# Strip out #!/usr/bin/env python
|
# Strip out #!/usr/bin/env python
|
||||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
|
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check} && %{without snapshot_build}
|
||||||
%check
|
%check
|
||||||
%{__python3} lit.py -v tests
|
%{__python3} lit.py -v tests
|
||||||
%endif
|
%endif
|
||||||
@ -62,6 +82,11 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.p
|
|||||||
%{_bindir}/lit
|
%{_bindir}/lit
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%{?llvm_snapshot_changelog_entry}
|
||||||
|
|
||||||
|
* Mon Jul 31 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc1-1
|
||||||
|
- Update to LLVM 17.0.0 RC1
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-3
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
3
sources
3
sources
@ -1,2 +1 @@
|
|||||||
SHA512 (lit-16.0.6.tar.gz) = 994140c36aa8140fc28e41f47f9cb8fff0a9e6caa43ccb19e1d7b93f01a2c77b007bd85bb44ca29c47432abf3151845f2e1c5883b6f410109702bae0f975f773
|
SHA512 (lit-17.0.0rc1.tar.gz) = d23ba5ea9c7125bab3fbf87072589c9e26ee1097170eba072845cf3f006dc47ad051011ad75a9acd3251a9a70824fc2d43608557d3e4d4bbd7a011b14dc6fe79
|
||||||
SHA512 (LICENSE.TXT) = 4a3325224ec2c86de08cf6f9320f1c95a6de061e45b53841df8fcab755d77341c27e0e064e4330d096b413c4fbb5310362b2f6c9b5c60e907bdceb2ff9b956d0
|
|
||||||
|
Loading…
Reference in New Issue
Block a user