Bug 753246 - moving header files within spec file breaks xmecon-config and xmedcon.m4
Summary: moving header files within spec file breaks xmecon-config and xmedcon.m4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xmedcon
Version: 15
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-11 17:46 UTC by Andreas Loening
Modified: 2011-11-25 02:03 UTC (History)
3 users (show)

Fixed In Version: xmedcon-0.10.7-5.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-13 06:10:10 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.