Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692580 - dev-db/mysql-connector-c-8.0.17-r1 file collisions
Summary: dev-db/mysql-connector-c-8.0.17-r1 file collisions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-19 23:06 UTC by Mike Gilbert
Modified: 2019-08-23 10:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (mysql-connector-c.patch,1.92 KB, patch)
2019-08-20 02:11 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2019-08-19 23:06:19 UTC
* Messages for package dev-db/mysql-connector-c-8.0.17-r1:                                          
 * Log file: /var/log/portage/dev-db:mysql-connector-c-8.0.17-r1:20190819-204940.log                 
                                                                                                     
 * This package will overwrite one or more files that may belong to other                            
 * packages (see list below). You can use a command such as `portageq                                
 * owners / <filename>` to identify the installed package that owns a                                
 * file. If portageq reports that only one package owns a file then do                               
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/share/man/man1/zlib_decompress.1.gz
 *      /usr/share/man/man1/perror.1.gz
 *      /usr/share/man/man1/my_print_defaults.1.gz 
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-db/mysql-5.7.26:0::gentoo
 *      /usr/share/man/man1/my_print_defaults.1.gz 
 *      /usr/share/man/man1/perror.1.gz
 *      /usr/share/man/man1/zlib_decompress.1.gz
 * 
 * Package 'dev-db/mysql-connector-c-8.0.17-r1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-08-20 02:11:40 UTC
Created attachment 587588 [details, diff]
Patch

This patch adds small code which generates all necessary blockers.

Checking result:
# portageq metadata / ebuild dev-db/mysql-connector-c-8.0.17-r1::gentoo RDEPEND
sys-libs/zlib:=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ldap? ( dev-libs/cyrus-sasl:=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libressl? ( dev-libs/libressl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !libressl? ( dev-libs/openssl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !<dev-db/mysql-5.6.45-r1 !=dev-db/mysql-5.7.0* !=dev-db/mysql-5.7.1* !=dev-db/mysql-5.7.2* !=dev-db/mysql-5.7.3* !=dev-db/mysql-5.7.4* !=dev-db/mysql-5.7.5* !=dev-db/mysql-5.7.6* !=dev-db/mysql-5.7.7* !=dev-db/mysql-5.7.8* !=dev-db/mysql-5.7.9* !=dev-db/mysql-5.7.10* !=dev-db/mysql-5.7.11* !=dev-db/mysql-5.7.12* !=dev-db/mysql-5.7.13* !=dev-db/mysql-5.7.14* !=dev-db/mysql-5.7.15* !=dev-db/mysql-5.7.16* !=dev-db/mysql-5.7.17* !=dev-db/mysql-5.7.18* !=dev-db/mysql-5.7.19* !=dev-db/mysql-5.7.20* !=dev-db/mysql-5.7.21* !=dev-db/mysql-5.7.22* !=dev-db/mysql-5.7.23* !=dev-db/mysql-5.7.24* !=dev-db/mysql-5.7.25* !=dev-db/mysql-5.7.26* !=dev-db/mysql-5.7.27-r0
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-08-20 10:04:39 UTC
Thanks, but patch is wrong. The man pages were removed in latest version and all stable version (at least in latest one). I.e. =dev-db/mysql-5.7.26 is fine.

And dev-db/mariadb was also patched... due to commit c50fef32cdf155707ff367f2990996be6c010b1f it's a little bit easier here but in theory we would also need soft-blocker for mariadb.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-08-21 00:25:46 UTC
(In reply to Thomas Deutschmann from comment #2)
> Thanks, but patch is wrong. The man pages were removed in latest version and
> all stable version (at least in latest one). I.e. =dev-db/mysql-5.7.26 is
> fine.

No, it is not. You might have confused it with another version.

After `ebuild mysql-5.7.26.ebuild install` I see presence of these files:

/var/tmp/portage/dev-db/mysql-5.7.26/image/usr/share/man/man1/my_print_defaults.1.bz2
/var/tmp/portage/dev-db/mysql-5.7.26/image/usr/share/man/man1/perror.1.bz2
/var/tmp/portage/dev-db/mysql-5.7.26/image/usr/share/man/man1/zlib_decompress.1.bz2

So the patch seems still correct. (Maybe you can extend it for dev-db/mariadb if necessary.)
Comment 4 Matt Whitlock 2019-08-21 14:47:05 UTC
Still a problem with dev-db/mysql-5.7.27 and dev-db/mysql-connector-c-8.0.17-r1:

 * Detected file collision(s):
 * 
 * 	/usr/share/man/man1/my_print_defaults.1.xz
 * 	/usr/share/man/man1/perror.1.xz
 * 	/usr/share/man/man1/zlib_decompress.1.xz
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-db/mysql-5.7.27:0::gentoo
 * 	/usr/share/man/man1/my_print_defaults.1.xz
 * 	/usr/share/man/man1/perror.1.xz
 * 	/usr/share/man/man1/zlib_decompress.1.xz
 * 
 * Package 'dev-db/mysql-connector-c-8.0.17-r1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
Comment 5 Larry the Git Cow gentoo-dev 2019-08-22 20:02:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93dc56e0b40fe411ad82b3990f85bd5adf562dad

commit 93dc56e0b40fe411ad82b3990f85bd5adf562dad
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-08-22 19:38:53 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-08-22 19:45:26 +0000

    dev-db/mysql-connector-c: rev bump
    
    - Always install {lz4,zlib}_decompress
    
    - Avoid file collisions
    
    Closes: https://bugs.gentoo.org/692580
    Package-Manager: Portage-2.3.72, Repoman-2.3.17
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 ...-8.0.17-always-build-decompress-utilities.patch | 22 ++++++++++++++++++++++
 ...1.ebuild => mysql-connector-c-8.0.17-r2.ebuild} | 15 +++++++++++++--
 2 files changed, 35 insertions(+), 2 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2019-08-23 10:53:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23ecc45f88b9837151fecb0fdc5fe425d153d80f

commit 23ecc45f88b9837151fecb0fdc5fe425d153d80f
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-08-23 10:52:57 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-08-23 10:53:11 +0000

    dev-db/mysql-connector-c: block prev. percona-server atoms
    
    Bug: https://bugs.gentoo.org/692580
    Package-Manager: Portage-2.3.72, Repoman-2.3.17
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-db/mysql-connector-c/mysql-connector-c-8.0.17-r3.ebuild | 1 +
 1 file changed, 1 insertion(+)