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 752468 - make check fails for gobject-introspection 1.44.0 on OS X 10.10.4.
make check fails for gobject-introspection 1.44.0 on OS X 10.10.4.
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: build
1.53.x
Other Mac OS
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 754011 777393 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-07-16 06:59 UTC by Tim Smith
Modified: 2018-02-08 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: Ignore platform-dependent field in test results (1.71 KB, patch)
2015-12-02 06:31 UTC, Philip Chimento
none Details | Review
transformer: Strip whitespace from filter commands (1.53 KB, patch)
2015-12-02 07:03 UTC, Philip Chimento
none Details | Review
scanner test: Cross-platform identifier filter (1.95 KB, patch)
2015-12-03 04:48 UTC, Philip Chimento
none Details | Review
tests: Ignore platform-dependent field in test results (1.72 KB, patch)
2017-07-20 03:38 UTC, Philip Chimento
none Details | Review
transformer: Strip whitespace from filter commands (1.57 KB, patch)
2017-07-20 03:38 UTC, Philip Chimento
none Details | Review

Description Tim Smith 2015-07-16 06:59:38 UTC
make check fails for gobject-introspection 1.44.0 on OS X 10.10.4.

In test_transformer, there are several failures of the form:

- shared-library="libsletter.so"
+ shared-library="/unused/libsletter.dylib"

since OS X uses .dylib for shared libraries instead of .so. I'm not sure about the significance of "unused".

test_underscore_t_sed_filter also fails because of a stray newline.

The test-suite.log is posted here: https://gist.github.com/anonymous/45a725625ab84e24cbab

Python is version 2.7.10. Xcode is version 6.4.
Comment 1 Colin Walters 2015-10-04 16:01:37 UTC
*** Bug 754011 has been marked as a duplicate of this bug. ***
Comment 2 Philip Chimento 2015-12-02 06:31:39 UTC
Created attachment 316645 [details] [review]
tests: Ignore platform-dependent field in test results

The "shared-library" field of the GIR is platform-dependent, since shared
libraries have different names on different platforms. For example, on OS
X, the field refers to a .dylib rather than a .so. We ignore this field
when comparing the expected output with the generated output.
Comment 3 Philip Chimento 2015-12-02 06:35:43 UTC
Above is a patch which fixes all but the stray newline.
Comment 4 Philip Chimento 2015-12-02 07:03:47 UTC
Created attachment 316646 [details] [review]
transformer: Strip whitespace from filter commands

On OS X, the output of sed as reported back to Python has a newline at
the end. It seems like a good idea to strip whitespace from the symbol
and identifier filter commands anyhow, so strip() the result.
Comment 5 Philip Chimento 2015-12-02 07:05:39 UTC
Above patch fixes the stray newline, but there is still one failure: OS X doesn't have GNU sed by default, so \u isn't supported. I'd suggest rewriting the test so that it uses awk for its filter command, or skipping some of the assertions if the sed implementation is determined not to be GNU sed. I'd probably be able to prepare a patch for either one of those, let me know what you think.
Comment 6 Philip Chimento 2015-12-03 04:48:50 UTC
Created attachment 316689 [details] [review]
scanner test: Cross-platform identifier filter

The sed filter in this test used \U which is GNU sed only. In order to be
able to run the tests on OS X, which doesn't have GNU sed by default, we
reimplement the same filter in awk. It's a bit unwieldy, but works.
Comment 7 Philip Chimento 2015-12-03 04:49:33 UTC
OK, these three patches together make all the tests pass on OS X.
Comment 8 Philip Chimento 2017-04-02 21:13:29 UTC
*** Bug 777393 has been marked as a duplicate of this bug. ***
Comment 9 Philip Chimento 2017-07-20 03:38:53 UTC
Created attachment 356001 [details] [review]
tests: Ignore platform-dependent field in test results

The "shared-library" field of the GIR is platform-dependent, since shared
libraries have different names on different platforms. For example, on OS
X, the field refers to a .dylib rather than a .so. We ignore this field
when comparing the expected output with the generated output.
Comment 10 Philip Chimento 2017-07-20 03:38:58 UTC
Created attachment 356002 [details] [review]
transformer: Strip whitespace from filter commands

On OS X, the output of sed as reported back to Python has a newline at
the end. It seems like a good idea to strip whitespace from the symbol
and identifier filter commands anyhow, so strip() the result.
Comment 11 Philip Chimento 2017-07-20 03:39:49 UTC
Still happening on 1.53.x - two of the patches needed rebasing, so here are new versions.
Comment 12 GNOME Infrastructure Team 2018-02-08 12:37:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/139.