Compare commits

...

7 Commits

Author SHA1 Message Date
David Abdurachmanov db4cd90cae
Merge remote-tracking branch 'up/master' into master-riscv64
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-07-23 12:50:46 +02:00
David Abdurachmanov d0ba93077d
Bump Release and add missing changelog entry
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-04 15:15:26 +02:00
David Abdurachmanov 3bb7684a11
Enable debug packages
gdb-headless was built and gdb-add-index was confirmed to work on riscv64.
Also you can use gdb as disassembler, but there is not native Linux support
yet thus you cannot attach to a process or debug a core dump.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-04 15:13:12 +02:00
David Abdurachmanov a1118c8054
Disable perl_default_subpackage_tests
This could be done in /usr/lib/rpm/macros.d/macros.perl, but redhat
macros can override it thus keeping all custom changes in one place.
We also don't need to rebuild perl again.

We have to disable test suite subpackages in perl packages to avoid
breaking conflict as the feature uses %__spec_check_pre, which is
used by us to disable %check section.

Alternative could be doing this in redhat macros:

%__spec_check_args %{nil}
%__spec_check_post exit 0

We basically remove '-e' from arguments and then at the end do 'exit 0',
but it's no perfect as someone could do 'exit ABC' in %check. We wanted
to completely disable %check section.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-05-23 11:59:32 +02:00
David Abdurachmanov 48413fb969 Enable annobin for riscv64
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-05-06 13:53:57 +02:00
David Abdurachmanov 5d2ab3509e Remove Requires: (annobin if gcc)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-05-05 23:42:06 +02:00
David Abdurachmanov 15f1929445 Add riscv64 modifications for Fedora RISC-V bootstrap
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-05-05 19:30:21 +02:00
3 changed files with 20 additions and 2 deletions

12
macros
View File

@ -260,3 +260,15 @@
%global __find_provides /bin/sh -c "%{?__filter_prov_cmd} %{__deploop P} %{?__filter_from_prov}" \
%global __find_requires /bin/sh -c "%{?__filter_req_cmd} %{__deploop R} %{?__filter_from_req}" \
}
# override %check sections and disable them (exit 0) while we are
# bootstrapping Fedora RISC-V
%__spec_check_pre exit 0
# override /usr/lib/rpm/macros.d/macros.perl instead of modifying it in order
# to keep custom changes in one place (and no need to rebuild perl again).
#
# disable perl_default_subpackage_tests, which adds test suite subpackage to
# perl packages. It uses __spec_check_pre for it, which we also use above thus
# causing a breaking conflict.
%perl_default_subpackage_tests %{nil}

View File

@ -7,7 +7,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: 117
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
# No version specified.
License: GPL+
URL: https://src.fedoraproject.org/rpms/redhat-rpm-config
@ -183,6 +183,12 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
%{_rpmconfigdir}/macros.d/macros.kmp
%changelog
* Mon Jul 23 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 117-1.0.riscv64
- Disable perl_default_subpackage_tests (test suite subpackage for perl packages)
- Disable %check for riscv64
- Add -fasynchronous-unwind-tables -fstack-clash-protection to riscv64 (other
arches seem to have them now)
* Mon Jul 16 2018 Miro Hrončok <mhroncok@redhat.com> - 117-1
- Mangle /bin shebnags to /usr/bin ones (#1581757)

2
rpmrc
View File

@ -76,7 +76,7 @@ optflags: s390x %{__global_compiler_flags} -m64 -march=zEC12 -mtune=z13 -fasynch
optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection
optflags: riscv64 %{__global_compiler_flags}
optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection
# set build arch to fedora buildarches on hardware capable of running it
# saves having to do rpmbuild --target=