zsh-workers
 help / color / mirror / code / Atom feed
* Build breaks when copy of source tree is in a subdirectory?
@ 2015-04-09  5:58 Mikael Magnusson
  2015-04-09 18:31 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2015-04-09  5:58 UTC (permalink / raw)
  To: zsh workers

[Skip the first paragraph if you don't care about the reason]
I have some[1] local patches, and running git rebase to update when
the upstream branch only edited one c file touches a lot of files,
causing pointless rebuilds. One nice way to avoid that is to use git
new-workdir to create a copy of the repo, do the rebase there, and
then reset in the original repo. This way only the changed files are
touched there and the rebuild is fast. Not so much an issue for zsh
but it doesn't hurt...

Anyway, if you leave this copy in a subdirectory of the repo, as in cp
-r zsh foo; mv foo zsh/foo, then rebuilds after rerunning .preconfig
and configure seem to fail mysteriously, claiming that zsh.mdd is not
a directory:

make[3]: Entering directory 'code/zsh/Src'
mkdir: cannot create directory 'Src/zsh.mdd': File exists
Src/../Src/mkmakemod.sh: 98: Src/../Src/mkmakemod.sh: cannot create
Src/zsh.mdd/Makefile.in: Directory nonexistent
creating Src/zsh.mdd/Makefile.in
make[3]: *** [prep] Error 1
Makemod:272: recipe for target 'prep' failed

I have no idea where to even start looking for the problem. The name
of my directory doesn't appear in any Makefile or error output, and
the directory it tries to create isn't in there, but in the original
repo. Obviously not super important to fix, since I can just have my
second repo be in ../foo instead, but still...

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Build breaks when copy of source tree is in a subdirectory?
  2015-04-09  5:58 Build breaks when copy of source tree is in a subdirectory? Mikael Magnusson
@ 2015-04-09 18:31 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2015-04-09 18:31 UTC (permalink / raw)
  To: zsh workers

On Apr 9,  7:58am, Mikael Magnusson wrote:
} Subject: Build breaks when copy of source tree is in a subdirectory?
}
} Anyway, if you leave this copy in a subdirectory of the repo, as in cp
} -r zsh foo; mv foo zsh/foo, then rebuilds after rerunning .preconfig
} and configure seem to fail mysteriously, claiming that zsh.mdd is not
} a directory:

This is because Util/preconfig does a "find" executing all the .preconfig
files it finds and ends up linking all subtrees into the top-level "make"
as a consequence.

Based on examination of Util/preconfig, if you name the copy directory
something containing a "." such as "foo.copy" then the find won't descend
into it and your build should work again, but I didn't actually test that.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-09 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09  5:58 Build breaks when copy of source tree is in a subdirectory? Mikael Magnusson
2015-04-09 18:31 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).