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 748176 - out-of-tree distcheck fails in build/win32
out-of-tree distcheck fails in build/win32
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-04-20 11:05 UTC by Simon McVittie
Modified: 2015-04-20 14:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Makefile-newvs: some .vcxproj.filters files are in builddir, some in srcdir (1.13 KB, patch)
2015-04-20 11:05 UTC, Simon McVittie
none Details | Review
Makefile-newvs: some .vcxproj.filters files are in builddir, some in srcdir (2.35 KB, patch)
2015-04-20 13:55 UTC, Simon McVittie
committed Details | Review

Description Simon McVittie 2015-04-20 11:05:25 UTC
Created attachment 301982 [details] [review]
Makefile-newvs: some .vcxproj.filters files are in builddir,  some in srcdir

Without this change, out-of-tree distcheck doesn't get very far.

---

Regression in commit 68bb63e3, I think.
Comment 1 Fan, Chun-wei 2015-04-20 12:41:05 UTC
Review of attachment 301982 [details] [review]:

Hi Simon,

I see, thanks for letting me know this...

However, the ones that process the property sheets (%.props) and the projects (%.vcxproj) will also need to be updated as well, because by the same logic they can be either generated in $(top_buildir) or is already in $(top_srcdir), and this script is to be used in components of the GTK+ stack.

Can I know whether the old version before the said commit working before this commit when buildir != srcdir?

Thanks though, with blessings!
Comment 2 Simon McVittie 2015-04-20 13:32:36 UTC
(In reply to Fan, Chun-wei from comment #1)
> Can I know whether the old version before the said commit working before
> this commit when buildir != srcdir?

Commit 6a254344 (immediately before the change I mentioned) fails with Bug #748177, but I think that's quite a long time after it would have failed with this bug. Re-testing now with my patch for #748177 applied on top of 6a254344.

(In reply to Fan, Chun-wei from comment #1)
> However, the ones that process the property sheets (%.props) and the
> projects (%.vcxproj) will also need to be updated as well

I can add that to the patch if you want, but it'd be "blind", because I'm currently only testing GLib, and not other components into which the same file might have been pasted.
Comment 3 Simon McVittie 2015-04-20 13:54:20 UTC
(In reply to Simon McVittie from comment #2)
> Re-testing now with my patch for #748177 applied on top of
> 6a254344.

That worked. So, yes, it looks like this was a regression in 6a254344.
Comment 4 Simon McVittie 2015-04-20 13:55:27 UTC
Created attachment 301996 [details] [review]
Makefile-newvs: some .vcxproj.filters files are in builddir,  some in srcdir

Without this change, out-of-tree distcheck doesn't get very far.

Similarly, allow *.vcxproj, *.props to be in either the builddir or
the srcdir.

Finally, since I'm touching these lines anyway, eliminate some
useless uses of cat: "cat x | sed 's/foo/bar/' > y" is
equivalent to "sed 's/foo/bar/' < x > y".

---

Still running distcheck on this one, but I think it's already got further than it would have done if the bug was still present.
Comment 5 Fan, Chun-wei 2015-04-20 14:04:49 UTC
Hi Simon,

(In reply to Simon McVittie from comment #3)
> That worked. So, yes, it looks like this was a regression in 6a254344.

I see, sorry.  One of the main reasons for my coomit was to fix a make -jN distcheck issue though.

As the one who came up with this file, I'd say it looks good to me.  Please go ahead to push this, I am likely going to push your patch into at least ATK, GDK-Pixbuf and GTK+, to let you know.

With blessings, thank you!
Comment 6 Fan, Chun-wei 2015-04-20 14:05:47 UTC
Review of attachment 301996 [details] [review]:

.
Comment 7 Simon McVittie 2015-04-20 14:52:15 UTC
(In reply to Simon McVittie from comment #4)
> Still running distcheck on this one, but I think it's already got further
> than it would have done if the bug was still present.

Seems to work.

> Finally, since I'm touching these lines anyway, eliminate some
> useless uses of cat: "cat x | sed 's/foo/bar/' > y" is
> equivalent to "sed 's/foo/bar/' < x > y".

Relevant: https://en.wikipedia.org/wiki/Cat_%28Unix%29#Useless_use_of_cat

Irrelevant: https://imgflip.com/i/kexy7
Comment 8 Simon McVittie 2015-04-20 14:54:40 UTC
Comment on attachment 301996 [details] [review]
Makefile-newvs: some .vcxproj.filters files are in builddir,  some in srcdir

Committed as 9bc3ae9 for 2.45.0