[MDEV-22813] file conflict in rpm packages Created: 2020-04-22  Updated: 2023-11-27  Resolved: 2020-04-24

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.4
Fix Version/s: N/A

Type: Bug Priority: Blocker
Reporter: Alexey Bychko (Inactive) Assignee: Alexey Bychko (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

[root@jw-rhel-7-01 ~]# rpm -Uhv --test *.rpm
Preparing...                          ################################# [100%]
    file /usr/share/man/man1 from install of MariaDB-client-10.4.12_6-1.el7.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
    file /usr/share/man/man1 from install of MariaDB-server-10.4.12_6-1.el7.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
    file /usr/share/man/man8 from install of MariaDB-server-10.4.12_6-1.el7.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
    file /usr/share/man/man1 from install of MariaDB-devel-10.4.12_6-1.el7.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
    file /usr/lib64/pkgconfig from install of MariaDB-devel-10.4.12_6-1.el7.x86_64 conflicts with file from package pkgconfig-1:0.27.1-4.el7.x86_64
    file /usr/share/man/man1 from install of MariaDB-test-10.4.12_6-1.el7.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
[root@jw-rhel-7-01 ~]#

julien.fritsch tturenko ^^^



 Comments   
Comment by Alexey Bychko (Inactive) [ 2020-04-22 ]

serg https://bugzilla.redhat.com/show_bug.cgi?id=896464

As of rpm 4.10, different permissions for a directory are now considered a conflict

Comment by Alexey Bychko (Inactive) [ 2020-04-22 ]

IIRC tturenko reported that building under root account solved the problem. this explains why docker builds are ok

Comment by Alexey Bychko (Inactive) [ 2020-04-22 ]

abychko@Alexeys-Mini MariaDBEnterprise % git diff
diff --git a/cmake/build_configurations/enterprise.cmake b/cmake/build_configurations/enterprise.cmake
index c668018dda1..d7c438ef76f 100644
--- a/cmake/build_configurations/enterprise.cmake
+++ b/cmake/build_configurations/enterprise.cmake
@@ -40,7 +40,8 @@ SET(CPACK_PACKAGE_VENDOR "MariaDB Corporation")
 SET(CPACK_PACKAGE_DESCRIPTION "MariaDB Enterprise Server: a very fast and robust SQL database server.
   MariaDB documentation can be found at https://mariadb.com/kb/en/
   MariaDB bug reports should be submitted through https://support.mariadb.com/")
-
+SET(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
+        "/usr/share/man/man1;/usr/share/man/man8;/usr/lib64/pkgconfig")
 # here we're going to unconditionally redefine default source package name
 # set in mysql_version.cmake:87
 SET(CPACK_SOURCE_PACKAGE_FILE_NAME "mariadb${MYSQL_SERVER_SUFFIX}-${VERSION}")

Generated at Thu Feb 08 09:17:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.