[MDEV-29690] file conflict in RPM packages Created: 2022-10-03 Updated: 2022-12-02 Resolved: 2022-12-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform RedHat |
| Affects Version/s: | 10.7.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Timofey Turenko | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Reproducible with qemu/libvirt RHEL8 and GCP machines
Does Buildbot machines have a user with root privileges? Build with `sudo make package` generate proper packages:
Previously there was the bug |
| Comments |
| Comment by Sergei Golubchik [ 2022-10-05 ] | ||||||||||||||||
|
I cannot repeat it, please, provide a how-to-repeat procedure | ||||||||||||||||
| Comment by Timofey Turenko [ 2022-10-07 ] | ||||||||||||||||
|
1. Create an empty machine (I tried with GCP and libvirt/qemu, RHEL8, Rocky Linux 8) 2. configure additional repos: rhel/centos `sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm` 3.
| ||||||||||||||||
| Comment by Sergei Golubchik [ 2022-12-02 ] | ||||||||||||||||
|
When you build RPM packages, you should take the correct command line from the knowledge base (e.g. https://mariadb.com/kb/en/building-rpm-packages-from-source/) or from an actually working build (e.g. https://buildbot.askmonty.org/buildbot/builders/kvm-rpm-rocky84-amd64/builds/2434/steps/compile/logs/stdio). In particular, -DRM=ON builds packages for the Linux distribution "ON", whatever it is. If you want packages that work on Rocky 8, you need to specify -DRPM=rocky8. That won't make your rpm -i to work, because rpm doesn't resolve dependencies. It'll say
But if you'll use dnf, it'll work:
|