After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565617 - Please don't hardcode the compiler
Please don't hardcode the compiler
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
SVN
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-25 13:57 UTC by Iain Lane
Modified: 2008-12-26 12:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to allow configure to use other compilers if passed at configure-time (1.14 KB, patch)
2008-12-25 13:58 UTC, Iain Lane
rejected Details | Review
proposed fix (770 bytes, patch)
2008-12-26 12:26 UTC, Stephane Delcroix
committed Details | Review

Description Iain Lane 2008-12-25 13:57:36 UTC
Please describe the problem:
Hi,

The configure script checks for gmcs and mcs using AC_PATH_PROG, but then ignores the result and uses gmcs regardless. This means that users cannot override the values at configure time. In Debian/Ubuntu we are shipping a wrapper "csc" to mean the system default compiler - hence we need to override gmcs and ask the build system to use csc for compilation.

I'm attaching a minimal SVN diff to enable this functionality. The proper fix is probably to get rid of the extra csc variable in configure.in, but that would be a larger patch.

Thanks,
Iain

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Iain Lane 2008-12-25 13:58:21 UTC
Created attachment 125302 [details] [review]
patch to allow configure to use other compilers if passed at configure-time
Comment 2 Stephane Delcroix 2008-12-26 12:03:28 UTC
this patch won't work. it's not possible to compile f-spot with mcs. we require gmcs
Comment 3 Stephane Delcroix 2008-12-26 12:15:17 UTC
> The configure script checks for gmcs and mcs using AC_PATH_PROG, but then
> ignores the result and uses gmcs regardless.
Wrong. We're only checking for gmcs, not for mcs.
I'll fix the Makefile.include to use $(CSC) instead of gmcs

> This means that users cannot
> override the values at configure time. In Debian/Ubuntu we are shipping a
> wrapper "csc" to mean the system default compiler - hence we need to override
> gmcs and ask the build system to use csc for compilation.

I can't see the point of having a wrapper, as both compilers serves different needs... it totally makes sense to build, e.g., gio-sharp with mcs, and in the other hand, it doesn't make any sense to try to build f-spot with anything but gmcs...
Comment 4 Stephane Delcroix 2008-12-26 12:26:16 UTC
Created attachment 125332 [details] [review]
proposed fix

here's what I'm committing. I'm closing the bug as the initial issue looks solved to me. reopen if you have a better solution for this.