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 786167 - macOS: Don't require shared-mime-info
macOS: Don't require shared-mime-info
Status: RESOLVED FIXED
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
: 787315 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-08-11 17:03 UTC by Christoph Reiter (lazka)
Modified: 2017-10-04 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
macOS: Don't require shared-mime-info (729 bytes, patch)
2017-08-11 17:03 UTC, Christoph Reiter (lazka)
none Details | Review
build: Don't require shared-mime-info on macOS (1.43 KB, patch)
2017-08-14 18:15 UTC, Christoph Reiter (lazka)
committed Details | Review
build: fix undefined os_win32 var on macOS (831 bytes, patch)
2017-09-17 17:47 UTC, Christoph Reiter (lazka)
committed Details | Review

Description Christoph Reiter (lazka) 2017-08-11 17:03:34 UTC
Created attachment 357431 [details] [review]
macOS: Don't require shared-mime-info

Since commit 2c2162c86d4f710007cfffbc582a1f0ce8740725 shared-mime-info
is required for building gdk-pixbuf, except on Windows. This disables
it on macOS as well to restore the old behaviour.
Comment 1 Bastien Nocera 2017-08-14 18:00:31 UTC
Review of attachment 357431 [details] [review]:

the prefix for the commit subject would be "build: ".

You'll also need to modify the meson.build file for the same problem:

# On non-Windows systems we always required shared-mime-info and GIO 
if host_machine.system() != 'windows'
  shared_mime_dep = dependency('shared-mime-info')
  gdk_pixbuf_conf.set('GDK_PIXBUF_USE_GIO_MIME', 1)
else
  shared_mime_dep = []
endif
Comment 2 Christoph Reiter (lazka) 2017-08-14 18:15:02 UTC
Created attachment 357568 [details] [review]
build: Don't require shared-mime-info on macOS
Comment 3 Bastien Nocera 2017-08-14 18:18:54 UTC
Review of attachment 357568 [details] [review]:

Sure.
Comment 4 Christoph Reiter (lazka) 2017-08-14 18:20:32 UTC
Comment on attachment 357568 [details] [review]
build: Don't require shared-mime-info on macOS

Thanks
Comment 5 Rainer Müller 2017-09-17 15:36:53 UTC
This patch broke lots of configure checks on darwin, because $os_win32 is no longer defined. Checks like `test x$os_win32 = xno` now have the opposite result than before.

The easy fix would be to add the line `os_win32=no` also to the darwin conditional. Should I open a new bug report for this?
Comment 6 Christoph Reiter (lazka) 2017-09-17 15:58:58 UTC
oops, sorry :/ continuing here is fine imo.
Comment 7 Christoph Reiter (lazka) 2017-09-17 17:47:38 UTC
Created attachment 359937 [details] [review]
build: fix undefined os_win32 var on macOS
Comment 8 Bastien Nocera 2017-09-18 14:58:04 UTC
In the future, and if you don't have rights to reopen the bug, please file a new one. Otherwise we have patches in closed bugs which aren't tracked anywhere.

Reopening.
Comment 9 Bastien Nocera 2017-09-18 14:59:40 UTC
And please try and avoid committing without reviews.
Comment 10 Bastien Nocera 2017-10-04 12:23:00 UTC
*** Bug 787315 has been marked as a duplicate of this bug. ***