If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

unable to create directory is MOZ_OBJDIR is a subdirectory of a non existing directory

RESOLVED INCOMPLETE

Status

()

Core
Build Config
RESOLVED INCOMPLETE
12 years ago
6 months ago

People

(Reporter: Henrik Gemal, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
I have:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/dist/_firefox
in my .mozconfig
and "dist" doesn't exists so I got:

mkdir: cannot create directory `/cygdrive/d/Mozilla/mozilla/dist/_firefox': No s
uch file or directory

It seems like the following line in client.mk do the mkdir command:
@if test ! -d $(MOZ_OBJDIR); then $(MKDIR) $(MOZ_OBJDIR); else true; fi
endif

Comment 1

12 years ago
By default, mkdir only creates the leaf directory.  If you want to create all of the intermediate directories, you have to use 'mkdir -p' which isn't portable.  The portable solution would be to start bundling the mkinstalldirs script which does the same thing a 'mkdir -p'.

Comment 2

9 years ago
The mkinstalldirs appears to be included in the build. So, is it just a question of using it now that it is available?

I build on Mac OS X 10.5.7 with a .mozconfig that contains:

    . $topsrcdir/browser/config/mozconfig
    ac_add_options --enable-application=browser
    mk_add_options AUTOCONF=autoconf213

I see it at:

    src/modules/freetype2/builds/unix/mkinstalldirs

Comment 3

6 months ago
Mass bug cleanup for Core:Build Config.

If you feel this bug has been closed in error, please re-open with new details.
Status: NEW → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.