[MDEV-21653] test binaries my_safe_process and wsrep_check_version installed in library directory Created: 2020-02-04  Updated: 2024-02-07

Status: Open
Project: MariaDB Server
Component/s: Packaging, Tests
Affects Version/s: 10.4.12
Fix Version/s: 10.5

Type: Bug Priority: Minor
Reporter: Otto Kekäläinen Assignee: Tuukka Pasanen
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Blocks
blocks MDEV-21869 Make MariaDB 10.5 Lintian clean (Debi... Stalled
Relates
relates to MDEV-21654 binary library file pam_mariadb_mtr.s... In Testing

 Description   

While updating MariaDB 10.4.12 to Debian (after doing 10.4.6 in the summer) I came across this Lintian error (which did not yet exist in 10.4.6):

E: mariadb-test: arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/wsrep_check_version

Why is this program installed in a library directory? Why not install it in /usr/bin/ as all the other MariaDB test binaries?



 Comments   
Comment by Otto Kekäläinen [ 2020-02-27 ]

Another identical case is `arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/my_safe_process`

These should go to some other path, which can be multi-archified and included in the mariadb-test package (not mariadb-test-data).
For example usr/lib/x86_64-linux-gnu/mariadb-test/My/SafeProcess/wsrep_check_version ?

Comment by Otto Kekäläinen [ 2020-03-03 ]

I think this task is pretty small and serg already had a clear idea what to do? Just decide on the path name and make sure this file is in mariadb-test package, not mariadb-test-data which should stay data-only.

Comment by Otto Kekäläinen [ 2020-03-03 ]

Also MDEV-21654 and placement of usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so is related to the same issue.

Comment by Otto Kekäläinen [ 2020-03-14 ]

What about installing this at

/usr/lib/<ARCH>/mariadb-test/My/SafeProcess/wsrep_check_version ?

Comment by Otto Kekäläinen [ 2024-01-28 ]

This still applies for MariaDB 10.11.6.

Comment by Tuukka Pasanen [ 2024-02-07 ]

Is there some document what is correct location of libexec in Debian as should helper apps and scripts be in /usr/lib/<ARCH>/mariadb-test/My/SafeProcess/wsrep_check_version? But correct is that /usr/share is not the place for them.

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