FS#52228 - [bcunit] The package does not provide/replace CUnit

Attached to Project: Community Packages
Opened by Nicolas I. (IooNag) - Wednesday, 21 December 2016, 16:22 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 23 December 2016, 13:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When building projects which use CUnit, the compiler does not find CUnit header files. It report errors like:

test-expander-roles.c:27:25: fatal error: CUnit/Basic.h: No such file or directory
#include <CUnit/Basic.h>

This is because bcunit installs files in /usr/include/BCUnit instead of /usr/include/CUnit, and uses a library named libbcunit.so instead of libcunit.so.

Therefore the current bcunit package (version 3.0-1) does not replace the previous cunit package. Moreover as no distribution among Gentoo, Fedora, Debian or Ubuntu provide a BCUnit package (yet), it is difficult to ask the project developers to move to BCUnit.

A simple solution would be to remove the "provides=('cunit')" and "replaces=('cunit')" tags from the PKGBUILD and to keep a cunit package. Another one would be to install compatibility symbolic links /usr/include/CUnit->BCUnit, /usr/lib/libcunit.so->libbcunit.so, etc. A third one would be to create a new "bcunit-cunitcompat" package like systemd-sysvcompat, which installs these symbolic links (this package would depend on bcunit and provide/replace cunit).

Additional info:
* bcunit 3.0-1
* x86_64 architecture

Steps to reproduce:
For example clone libsepol from https://github.com/SELinuxProject/selinux/tree/master/libsepol and build with "make test":
* git clone https://github.com/SELinuxProject/selinux
* cd selinux
* make DESTDIR=$(pwd)/myDESTDIR install
* make SUBDIRS=libsepol DESTDIR=$(pwd)/myDESTDIR test
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 23 December 2016, 13:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  removed provides/replaces cunit

Loading...