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 790785 - glib-tap: Add missing mkdir for .test generation rule
glib-tap: Add missing mkdir for .test generation rule
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-11-24 12:26 UTC by Philip Withnall
Modified: 2017-11-24 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib-tap: Add missing mkdir for .test generation rule (1.34 KB, patch)
2017-11-24 12:26 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2017-11-24 12:26:04 UTC
Trivial patch attached.
Comment 1 Philip Withnall 2017-11-24 12:26:13 UTC
Created attachment 364322 [details] [review]
glib-tap: Add missing mkdir for .test generation rule

We can’t guarantee that the builddir we’re generating in actually exists
— if doing a clean build with builddir ≠ srcdir, and there are no other
rules which generate build products in builddir, the .test generation
rule can fail. This happens for flatpak-builder.git for me.

Try to avoid that by explicitly creating the builddir.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 2 Emmanuele Bassi (:ebassi) 2017-11-24 12:29:40 UTC
Review of attachment 364322 [details] [review]:

::: glib-tap.mk
@@ +127,2 @@
 %.test: %$(EXEEXT) Makefile
+	$(AM_V_GEN) (mkdir -p $(@D); \

You probably want to use `$(MKDIR_P)` here.
Comment 3 Philip Withnall 2017-11-24 13:10:38 UTC
Review of attachment 364322 [details] [review]:

::: glib-tap.mk
@@ +127,2 @@
 %.test: %$(EXEEXT) Makefile
+	$(AM_V_GEN) (mkdir -p $(@D); \

There are loads of places in GLib which just use `mkdir -p`, but OK.
Comment 4 Philip Withnall 2017-11-24 13:11:37 UTC
Thanks for the fast review.

Attachment 364322 [details] pushed as b97e5cb - glib-tap: Add missing mkdir for .test generation rule