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 619312 - [PATCH] build: fix --without-gtk build for windows
[PATCH] build: fix --without-gtk build for windows
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-05-21 17:31 UTC by Bobby Powers
Modified: 2010-05-28 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (4.99 KB, patch)
2010-05-21 17:31 UTC, Bobby Powers
none Details | Review

Description Bobby Powers 2010-05-21 17:31:47 UTC
Created attachment 161667 [details] [review]
patch

Folks,

the attached patch fixes the --without-gtk build when I'm cross compiling using Fedora 13's mingw packages.  The configure options that I used when compiling were '--without-gtk --without-gconf'.  Doesn't break the build for me on Debian sid w/ gcc 4.4 either.

I didn't fill out the ChangeLog or NEWS either, as git-am doesn't like applying patches when others have updated those files in the meantime.  If the patch seems appropriate, I can write those short pieces.

yours,
Bobby
Comment 1 Jean Bréfort 2010-05-22 05:35:57 UTC
--without-gconf is not relevant here since win32 builds do not use gconf. I'll test that when I have time, hopefully next week.
Comment 2 Jean Bréfort 2010-05-28 08:13:03 UTC
Actually, the only win32 related change is the goffice.def definition, all other things seems related to LDFLAGS="-Wl,--no-undefined" or equivalent.

One minor thing: gog_klass->populate_editor  = NULL; is not needed (NULL is the default value).

I'll commit the patch with this little change.
Comment 3 Jean Bréfort 2010-05-28 09:06:19 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 4 Bobby Powers 2010-05-28 15:04:27 UTC
(In reply to comment #2)
> Actually, the only win32 related change is the goffice.def definition, all
> other things seems related to LDFLAGS="-Wl,--no-undefined" or equivalent.
> 
> One minor thing: gog_klass->populate_editor  = NULL; is not needed (NULL is the
> default value).
> 
> I'll commit the patch with this little change.

ah, that makes sense.  I didn't think to check how the class was initialized.
Comment 5 Bobby Powers 2010-05-28 15:04:44 UTC
thanks!