Commit Graph

15 Commits

Author SHA1 Message Date
aiuto 6a44f01087
Revert compatibility_level back to 1 so we can push to BCR. (#877)
* Revert compatibility_level back to 1 so we can push to BCR.

See https://github.com/bazelbuild/bazel-central-registry/issues/2232
for discussion.

* update version#
2024-07-09 14:22:24 -04:00
aiuto b4ac7e3197
1.0 release (#869) 2024-06-03 13:12:43 -04:00
Mike Kelly 581a86a294
Add support for generating debuginfo RPMs (#842)
* Enable creation and capture of debuginfo RPMs

This change enables the creation and capture of debuginfo RPMs on
Fedora40 and CentOS7.

See:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Debuginfo/

Fedora 40 expects the RPM contents to be located in a subdirectory
which is specified using the `buildsubdir` variable.  In order to
account for this, we need to tweak some of the location details if
debuginfo is enabled.

CentOS expects `buildsubdir` to have a value like `.` instead.

In both cases, we disable debugsource packages by ensuring that we
undefine `_debugsource_packages`, otherwise we'll try to generate them
alongside the debuginfo packages and will fail.

We only want this method of producing debuginfo to apply when we're
using the system `rpmbuild` because the underlying behaviour is
controlled by a combination of the rpmbuild version, macro
definitions, find-debuginfo.sh, and debugedit.  If we were to expand
this to use a hermetic debuginfo then a different approach might be
desirable.

* Add an RPM example that generates debuginfo

This provides a basic example that generates a debuginfo RPM
configured to run on CentOS7.

* Upgrade rules_python to 0.31.0

rules_python seems to fail us when we're generating debuginfo RPMs
unless we upgrade to a version more recent than 0.24.0.

* Only generate debuginfo RPM when pkg_rpm() asks for it

In lieu of enabling this behaviour by default on the supported
platforms, we add an additional argument to the pkg_rpm() rule that
will allow us to enable it for pkg_rpm() targets.  This prevents us
from enabling it in cases where it's not desired.

* Add test for building debuginfo RPM

This test is modelled on the subrpm test.  In lieu of using a simple
text file as an input it instead generates a binary that includes
debug symbosl from a C source file and includes that in the RPM.

The baseline comparison strips out the `.build-id` paths because the
hashes that are generated may not be stable.x

* Remove architecture and size from debuginfo test output

These values may vary depending on the platform that this is being run
on and we don't really care about them.

* Add period to docstring

* Enable debuginfo support for CentOS Stream 9

CentOS Stream 9 appears to work more or less the same for debuginfo
generation as CentOS 7.  `os-release` describes it as os == `centos`
and version == `9`.  This change creates an extra token for `centos9`
and sticks it in the places where we currently have controls for
`centos7`.
2024-04-24 16:03:11 -04:00
aiuto 36433a92a4
Update to new stardoc so we can work with bzlmod. (#853)
* Update to new stardoc so we can work with bzlmod.
* Requires update to merge.py to account for stardoc changes.
* put integration test back on bazel at head.

Fixes #808
2024-04-16 22:17:21 -04:00
Tony Aiuto 2b15badc46 bump platforms to latest. The hope is that this fixes what is going wrong in the integration test 2024-04-15 22:54:25 -04:00
tonyaiuto d7ff3e6e52
Update changelog and version numbers. (#819)
* update changelog

* freshdocs
2024-02-08 17:46:43 -05:00
Alex Eagle eb46104bc5
chore: buildifier format all files (#775) 2023-11-06 13:29:07 -05:00
aiuto 8e5570cf44
Get bzlmod working in CI (#766)
Get bzlmod CI working
* fix a lot of python which needs tochange
* make extension for rpmbuild
* restore macos CI to rolling
* better documentation on how to use rpmbuild.
* no docbuild with bzlmod -> stardoc problems
* disable a tar test that can not work with bzlmod

Next: Split rpmbuild to a separately distributable artifact
2023-10-31 09:23:37 -04:00
aiuto 2b391f233c
Use rules_cc to try to clean up CI runs which are failing on gcc (#764)
* try useing rules_cc to clean up CI runs which are failing on gcc"

* use their toolchains

* add rules_cc so the tests run

* do not do distro tests on rolling macos

* only tests tests/... for rolling_macos
2023-10-24 18:11:32 -04:00
aiuto ec4ad13c92
Add a check to ensure that version.bzl and MODULE.bazel remain in sync. (#697)
* add MODULE.bazel

* Add a check to ensure that version.bzl and MODULE.bazel remain in sync.
2023-05-23 00:38:01 -04:00
aiuto 88109c3b45
Bump to 0.9.0 (#687)
* v 0.9.0

* compat=1
2023-03-28 23:17:25 -04:00
aiuto 694e3ad1b3
Update to rules_license 0.0.4 (#667)
- Update to a newer rules_license
- update ci to prove that we can work with --incompatible_use_platforms_repo_for_constraints
- do not test with no_host_transition yet
2023-02-09 17:49:20 -05:00
aiuto bf19e06e03
update version to 8.1 to sync with bzlmod (#665) 2023-02-07 17:30:40 -05:00
aiuto 9d4b0ed8c0
Update MODULE.bazel
Fix version number
2023-02-07 16:49:39 -05:00
aiuto 0cac0ab710
Create basic bzlmod setup for rules_pkg. (#625)
* Create basic bzlmod setup for rules_pkg.

- Shows it working for one example
- Has only runtime deps
- rpm and git toolchains not done yet
- Still not sure how to get the external repo test working
- Make platforms and stardoc dependency deps.
2022-10-20 10:46:25 -04:00