Bug 753246

Summary: moving header files within spec file breaks xmecon-config and xmedcon.m4
Product: [Fedora] Fedora Reporter: Andreas Loening <loening>
Component: xmedconAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: mrceresa, sanjay.ankur, thinklinux.ssh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xmedcon-0.10.7-5.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-13 06:10:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andreas Loening 2011-11-11 17:46:35 UTC
Within the .spec file, the header files for xmedcon are manually moved from /usr/include to /usr/include/xmedcon. However, this alternation is not reflected in the xmedcon-config program, and as such any configure script for packages that rely on xmedcon-config (or xmedcon.m4) therefore do not detect the xmedcon library.

Instead of moving these files manually, would passing the option "--include-dir=/usr/include/xmedcon" to configure accomplish this?

Comment 1 Andreas Loening 2011-11-11 18:18:24 UTC
Actually, the following works:

The configure line becomes:

%configure --disable-static --disable-rpath --with-nifti-prefix=%{_prefix} --with-tpc-prefix=%{_prefix} --enable-shared --includedir=/usr/include/xmedcon


Even with this, m-config.h and m-depend.h still are put into /usr/include instead of /usr/include/xmedcon, so the mv line needs to be kept (although the "install -d" line can be removed).


# install -d $RPM_BUILD_ROOT/%{_includedir}/%{name}/
mv -v $RPM_BUILD_ROOT/%{_includedir}/*.h $RPM_BUILD_ROOT/%{_includedir}/%{name}/

Comment 2 Ankur Sinha (FranciscoD) 2011-11-13 06:10:10 UTC
Hello Andreas,

Thank you for reporting the bug. I have made the necessary changes and pushed updates to f15 and f16. Please note that f17 has moved to libpng-1.5x which is causing xmedcon builds to fail. We'll need to talk to upstream about this. 

Please test the update out and provide it karma when it hits updates-testing :)

Thanks,
Regards,
Ankur

Comment 3 Fedora Update System 2011-11-13 06:12:56 UTC
xmedcon-0.10.7-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/xmedcon-0.10.7-5.fc16

Comment 4 Fedora Update System 2011-11-13 06:13:04 UTC
xmedcon-0.10.7-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/xmedcon-0.10.7-5.fc15

Comment 5 Fedora Update System 2011-11-25 02:03:04 UTC
xmedcon-0.10.7-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2011-11-25 02:03:31 UTC
xmedcon-0.10.7-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.