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 786205 - shared-mime-info suffering from race condition?
shared-mime-info suffering from race condition?
Status: RESOLVED FIXED
Product: gtk-osx
Classification: Other
Component: General
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: GTK Mac Integration Maintainers
GTK Mac Integration Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-12 17:06 UTC by Lee Read
Modified: 2017-08-16 07:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lee Read 2017-08-12 17:06:36 UTC
I think this is the right place to log this, if not, my apologies. When building shared-mime-info, I get the following error:

--[begin output dump]
*** Building shared-mime-info *** [55/70]
make -j 9
  GEN      create-pot
  ITMRG  freedesktop.org.xml
  CC       update_mime_database-update-mime-database.o
Making check in .
  CC       update_mime_database-update-mime-database.o
  CC       test_subclassing-test-subclassing.o
  CC       test_tree_magic-test-tree-magic.o
  ITMRG  freedesktop.org.xml
make[1]: `shared-mime-info.pot' is up to date.
  CCLD     test-subclassing
update-mime-database.c:968:6: warning: implicit declaration of function 'fdatasync' is invalid in C99 [-Wimplicit-function-declaration]
        if (fdatasync(fd) == -1)
            ^
update-mime-database.c:968:6: warning: implicit declaration of function 'fdatasync' is invalid in C99 [-Wimplicit-function-declaration]
        if (fdatasync(fd) == -1)
            ^
1 warning generated.
1 warning generated.
  CCLD     test-tree-magic
mv: rename .deps/update_mime_database-update-mime-database.Tpo to .deps/update_mime_database-update-mime-database.Po: No such file or directory
make[1]: *** [update_mime_database-update-mime-database.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CCLD     update-mime-database
make: *** [check-recursive] Error 1
make: *** Waiting for unfinished jobs....
*** Error during phase build of shared-mime-info: ########## Error running make -j 9  *** [55/70]

  [1] Rerun phase build
  [2] Ignore error and continue to install
  [3] Give up on module
  [4] Start shell
  [5] Reload configuration
  [6] Go to phase "wipe directory and start over"
  [7] Go to phase "configure"
  [8] Go to phase "clean"
  [9] Go to phase "distclean"
choice:
--[end output dump]--

If I drop to shell and try with parallel building disabled:

> make clean
> make -j 1

the build succeeds.
Comment 1 John Ralls 2017-08-13 20:09:13 UTC
Wrong bugtracker. Use https://bugs.freedesktop.org/enter_bug.cgi?product=shared-mime-info.

This is a symptom of an incomplete dependency graph.
Comment 2 Lee Read 2017-08-13 21:02:09 UTC
Ok, thanks, will do.

If they do not address, would the same workaround you used for aqbanking work?
https://github.com/Gnucash/gnucash-on-osx/commit/b52afdec882a9065afc853ad68bb77563acae5dd
Comment 3 Lee Read 2017-08-14 13:39:41 UTC
I did a little digging. 

Here's how it was resolved by the shared-mime-info project: https://bugs.freedesktop.org/show_bug.cgi?id=46093

In my tests, adding --disable-default-make-check argument to configure seems resolve the issue.
Comment 4 John Ralls 2017-08-16 07:59:19 UTC
Fixed with your PR https://github.com/jralls/gtk-osx-build/pull/55.