-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: update build targets for io.js #1938
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ PYTHON ?= python | |
DESTDIR ?= | ||
SIGN ?= | ||
PREFIX ?= /usr/local | ||
STAGINGSERVER ?= iojs-www | ||
|
||
OSTYPE := $(shell uname -s | tr '[A-Z]' '[a-z]') | ||
|
||
# Determine EXEEXT | ||
EXEEXT := $(shell $(PYTHON) -c \ | ||
|
@@ -56,15 +59,15 @@ uninstall: | |
$(PYTHON) tools/install.py $@ '$(DESTDIR)' '$(PREFIX)' | ||
|
||
clean: | ||
-rm -rf out/Makefile $(NODE_EXE) $(NODE_G_EXE) out/$(BUILDTYPE)/$(NODE_EXE) blog.html email.md | ||
-rm -rf out/Makefile $(NODE_EXE) $(NODE_G_EXE) out/$(BUILDTYPE)/$(NODE_EXE) | ||
@if [ -d out ]; then find out/ -name '*.o' -o -name '*.a' | xargs rm -rf; fi | ||
-rm -rf node_modules | ||
|
||
distclean: | ||
-rm -rf out | ||
-rm -f config.gypi icu_config.gypi | ||
-rm -f config.mk | ||
-rm -rf $(NODE_EXE) $(NODE_G_EXE) blog.html email.md | ||
-rm -rf $(NODE_EXE) $(NODE_G_EXE) | ||
-rm -rf node_modules | ||
-rm -rf deps/icu | ||
-rm -rf deps/icu4c*.tgz deps/icu4c*.zip deps/icu-tmp | ||
|
@@ -184,14 +187,49 @@ docclean: | |
|
||
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py) | ||
VERSION=v$(RAWVER) | ||
|
||
# For nightly builds, you must set DISTTYPE to "nightly", "next-nightly" or | ||
# "custom". For the nightly and next-nightly case, you need to set DATESTRING | ||
# and COMMIT in order to properly name the build. | ||
# For the rc case you need to set CUSTOMTAG to an appropriate CUSTOMTAG number | ||
|
||
ifndef DISTTYPE | ||
DISTTYPE=release | ||
endif | ||
ifeq ($(DISTTYPE),release) | ||
FULLVERSION=$(VERSION) | ||
else # ifeq ($(DISTTYPE),release) | ||
ifeq ($(DISTTYPE),custom) | ||
ifndef CUSTOMTAG | ||
$(error CUSTOMTAG is not set for DISTTYPE=custom) | ||
endif # ifndef CUSTOMTAG | ||
TAG=$(CUSTOMTAG) | ||
else # ifeq ($(DISTTYPE),custom) | ||
ifndef DATESTRING | ||
$(error DATESTRING is not set for nightly) | ||
endif # ifndef DATESTRING | ||
ifndef COMMIT | ||
$(error COMMIT is not set for nightly) | ||
endif # ifndef COMMIT | ||
ifneq ($(DISTTYPE),nightly) | ||
ifneq ($(DISTTYPE),next-nightly) | ||
$(error DISTTYPE is not release, custom, nightly or next-nightly) | ||
endif # ifneq ($(DISTTYPE),next-nightly) | ||
endif # ifneq ($(DISTTYPE),nightly) | ||
TAG=$(DISTTYPE)$(DATESTRING)$(COMMIT) | ||
endif # ifeq ($(DISTTYPE),custom) | ||
FULLVERSION=$(VERSION)-$(TAG) | ||
endif # ifeq ($(DISTTYPE),release) | ||
|
||
DISTTYPEDIR ?= $(DISTTYPE) | ||
RELEASE=$(shell sed -ne 's/\#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/node_version.h) | ||
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]') | ||
NPMVERSION=v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]*: "\([^"]*\)",.*/\1/') | ||
|
||
ifeq ($(findstring x86_64,$(shell uname -m)),x86_64) | ||
DESTCPU ?= x64 | ||
else | ||
DESTCPU ?= ia32 | ||
DESTCPU ?= x86 | ||
endif | ||
ifeq ($(DESTCPU),x64) | ||
ARCH=x64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In your example, you invoke make passing both DESTCPU=$DESTCPU and ARCH=$ARCH. Do we need to pass both or can one reliably be derived from the other? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes .. they are becoming redundant but I'm not entirely sure they are fully redundant yet, there is an interaction with configure and gyp that may make them necessary - tbh I haven't fully investigated so I'm leaving it alone for now. |
||
|
@@ -202,26 +240,24 @@ else | |
ARCH=x86 | ||
endif | ||
endif | ||
ifdef NIGHTLY | ||
TAG = nightly-$(NIGHTLY) | ||
FULLVERSION=$(VERSION)-$(TAG) | ||
|
||
# enforce "x86" over "ia32" as the generally accepted way of referring to 32-bit intel | ||
ifeq ($(ARCH),ia32) | ||
override ARCH=x86 | ||
endif | ||
ifeq ($(DESTCPU),ia32) | ||
override DESTCPU=x86 | ||
endif | ||
|
||
TARNAME=iojs-$(FULLVERSION) | ||
TARBALL=$(TARNAME).tar | ||
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH) | ||
BINARYTAR=$(BINARYNAME).tar | ||
# OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/ | ||
XZ=$(shell which xz > /dev/null 2>&1; echo $$?) | ||
XZ_COMPRESSION ?= 9 | ||
PKG=out/$(TARNAME).pkg | ||
PKG=$(TARNAME).pkg | ||
PACKAGEMAKER ?= /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker | ||
|
||
PKGSRC=iojs-$(DESTCPU)-$(RAWVER).tgz | ||
ifdef NIGHTLY | ||
PKGSRC=iojs-$(DESTCPU)-$(RAWVER)-$(TAG).tgz | ||
endif | ||
|
||
dist: doc $(TARBALL) $(PKG) | ||
|
||
PKGDIR=out/dist-osx | ||
|
||
release-only: | ||
|
@@ -236,7 +272,7 @@ release-only: | |
echo "" >&2 ; \ | ||
exit 1 ; \ | ||
fi | ||
@if [ "$(NIGHTLY)" != "" -o "$(RELEASE)" = "1" ]; then \ | ||
@if [ "$(DISTTYPE)" != "release" -o "$(RELEASE)" = "1" ]; then \ | ||
exit 0; \ | ||
else \ | ||
echo "" >&2 ; \ | ||
|
@@ -246,29 +282,28 @@ release-only: | |
exit 1 ; \ | ||
fi | ||
|
||
pkg: $(PKG) | ||
|
||
$(PKG): release-only | ||
rm -rf $(PKGDIR) | ||
rm -rf out/deps out/Release | ||
$(PYTHON) ./configure --dest-cpu=ia32 --tag=$(TAG) | ||
$(MAKE) install V=$(V) DESTDIR=$(PKGDIR)/32 | ||
rm -rf out/deps out/Release | ||
$(PYTHON) ./configure --dest-cpu=x64 --tag=$(TAG) | ||
$(MAKE) install V=$(V) DESTDIR=$(PKGDIR) | ||
SIGN="$(APP_SIGN)" PKGDIR="$(PKGDIR)" bash tools/osx-codesign.sh | ||
lipo $(PKGDIR)/32/usr/local/bin/iojs \ | ||
$(PKGDIR)/usr/local/bin/iojs \ | ||
-output $(PKGDIR)/usr/local/bin/iojs-universal \ | ||
-create | ||
mv $(PKGDIR)/usr/local/bin/iojs-universal $(PKGDIR)/usr/local/bin/iojs | ||
rm -rf $(PKGDIR)/32 | ||
cat tools/osx-pkg.pmdoc/index.xml.tmpl | sed -e 's|__iojsversion__|'$(FULLVERSION)'|g' | sed -e 's|__npmversion__|'$(NPMVERSION)'|g' > tools/osx-pkg.pmdoc/index.xml | ||
SIGN="$(CODESIGN_CERT)" PKGDIR="$(PKGDIR)" bash tools/osx-codesign.sh | ||
cat tools/osx-pkg.pmdoc/index.xml.tmpl \ | ||
| sed -E "s/\\{iojsversion\\}/$(FULLVERSION)/g" \ | ||
| sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \ | ||
> tools/osx-pkg.pmdoc/index.xml | ||
$(PACKAGEMAKER) \ | ||
--id "org.nodejs.Node" \ | ||
--id "org.iojs.pkg" \ | ||
--doc tools/osx-pkg.pmdoc \ | ||
--out $(PKG) | ||
SIGN="$(INT_SIGN)" PKG="$(PKG)" bash tools/osx-productsign.sh | ||
SIGN="$(PRODUCTSIGN_CERT)" PKG="$(PKG)" bash tools/osx-productsign.sh | ||
|
||
pkg: $(PKG) | ||
|
||
pkg-upload: pkg | ||
ssh $(STAGINGSERVER) "mkdir -p staging/$(DISTTYPEDIR)/$(FULLVERSION)" | ||
scp -p iojs-$(FULLVERSION).pkg $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).pkg | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).pkg.done" | ||
|
||
$(TARBALL): release-only $(NODE_EXE) doc | ||
git checkout-index -a -f --prefix=$(TARNAME)/ | ||
|
@@ -291,6 +326,20 @@ endif | |
|
||
tar: $(TARBALL) | ||
|
||
tar-upload: tar | ||
ssh $(STAGINGSERVER) "mkdir -p staging/$(DISTTYPEDIR)/$(FULLVERSION)" | ||
scp -p iojs-$(FULLVERSION).tar.gz $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).tar.gz | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).tar.gz.done" | ||
ifeq ($(XZ), 0) | ||
scp -p iojs-$(FULLVERSION).tar.xz $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).tar.xz | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION).tar.xz.done" | ||
endif | ||
|
||
doc-upload: tar | ||
ssh $(STAGINGSERVER) "mkdir -p staging/$(DISTTYPEDIR)/$(FULLVERSION)" | ||
scp -r out/doc/ $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/ | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/doc.done" | ||
|
||
$(BINARYTAR): release-only | ||
rm -rf $(BINARYNAME) | ||
rm -rf out/deps out/Release | ||
|
@@ -309,18 +358,14 @@ endif | |
|
||
binary: $(BINARYTAR) | ||
|
||
$(PKGSRC): release-only | ||
rm -rf dist out | ||
$(PYTHON) configure --prefix=/ \ | ||
--dest-cpu=$(DESTCPU) --tag=$(TAG) $(CONFIG_FLAGS) | ||
$(MAKE) install DESTDIR=dist | ||
(cd dist; find * -type f | sort) > packlist | ||
pkg_info -X pkg_install | \ | ||
egrep '^(MACHINE_ARCH|OPSYS|OS_VERSION|PKGTOOLS_VERSION)' > build-info | ||
pkg_create -B build-info -c tools/pkgsrc/comment -d tools/pkgsrc/description \ | ||
-f packlist -I /opt/local -p dist -U $(PKGSRC) | ||
|
||
pkgsrc: $(PKGSRC) | ||
binary-upload: binary | ||
ssh $(STAGINGSERVER) "mkdir -p staging/$(DISTTYPEDIR)/$(FULLVERSION)" | ||
scp -p iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.gz $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.gz | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.gz.done" | ||
ifeq ($(XZ), 0) | ||
scp -p iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.xz $(STAGINGSERVER):staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.xz | ||
ssh $(STAGINGSERVER) "touch staging/$(DISTTYPEDIR)/$(FULLVERSION)/iojs-$(FULLVERSION)-$(OSTYPE)-$(ARCH).tar.xz.done" | ||
endif | ||
|
||
haswrk=$(shell which wrk > /dev/null 2>&1; echo $$?) | ||
wrk: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,12 +184,15 @@ | |
'defines': [ | ||
'NODE_ARCH="<(target_arch)"', | ||
'NODE_PLATFORM="<(OS)"', | ||
'NODE_TAG="<(node_tag)"', | ||
'NODE_V8_OPTIONS="<(node_v8_options)"', | ||
'NODE_WANT_INTERNALS=1', | ||
], | ||
|
||
|
||
'conditions': [ | ||
[ 'node_tag!=""', { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move this here because our binaries aren't being compiled with a |
||
'defines': [ 'NODE_TAG="<(node_tag)"' ], | ||
}], | ||
# No node_main.cc for anything except executable | ||
[ 'node_target_type!="executable"', { | ||
'sources!': [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,23 +12,18 @@ | |
#define NODE_STRINGIFY_HELPER(n) #n | ||
#endif | ||
|
||
#if NODE_VERSION_IS_RELEASE | ||
# ifndef NODE_TAG | ||
#ifndef NODE_TAG | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. squashed a bunch of redundant stuff in here, same functionality, just shorter |
||
# if NODE_VERSION_IS_RELEASE | ||
# define NODE_TAG "" | ||
# endif | ||
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ | ||
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ | ||
NODE_STRINGIFY(NODE_PATCH_VERSION) \ | ||
NODE_TAG | ||
#else | ||
# ifndef NODE_TAG | ||
# else | ||
# define NODE_TAG "-pre" | ||
# endif | ||
#endif | ||
|
||
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ | ||
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ | ||
NODE_STRINGIFY(NODE_PATCH_VERSION) \ | ||
NODE_TAG | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not 100% sure about this, but might this be missing a dash for custom and nightly DISTTYPE? If so, we should probably prepend the dash in node.gyp, where NODE_TAG is defined. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it comes from configure: |
||
#endif | ||
|
||
#define NODE_VERSION "v" NODE_VERSION_STRING | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,33 +6,33 @@ | |
<ProductVersion>3.5</ProductVersion> | ||
<ProjectGuid>{1d808ff0-b5a9-4be9-859d-b334b6f48be2}</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<OutputName>iojs-v$(NodeVersion)-$(Platform)</OutputName> | ||
<OutputName>iojs-v$(FullVersion)-$(Platform)</OutputName> | ||
<OutputType>Package</OutputType> | ||
<EnableProjectHarvesting>True</EnableProjectHarvesting> | ||
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> | ||
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> | ||
<NodeVersion Condition=" '$(NodeVersion)' == '' ">0.0.0.0</NodeVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<OutputPath>..\..\..\$(Configuration)\</OutputPath> | ||
<OutputPath>..\..\..\</OutputPath> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reason for removing $(Configuration) from the path? I don't know that we are going to release debug MSIs any time soon, but if it doesn't hurt to keep those paths separate then I think it might be preferable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did it on OSX too and this matches what happens on Linux and elsewhere, the main reason for this is to make it easier to define artifacts for Jenkins to upload. Currently we only need to put Can we move it out for now so it's consistent across all platforms and then move back if it ever becomes necessary? I reckon if it becomes necessary to distribute debug builds then we put |
||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFilesFolder</DefineConstants> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFilesFolder</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<OutputPath>..\..\..\$(Configuration)\</OutputPath> | ||
<OutputPath>..\..\..\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFilesFolder</DefineConstants> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFilesFolder</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> | ||
<OutputPath>..\..\..\$(Configuration)\</OutputPath> | ||
<OutputPath>..\..\..\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants> | ||
<Cultures>en-US</Cultures> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> | ||
<OutputPath>..\..\..\$(Configuration)\</OutputPath> | ||
<OutputPath>..\..\..\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants> | ||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NpmSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<EnableProjectHarvesting>True</EnableProjectHarvesting> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
<pkgref spec="1.12" uuid="053587FE-BDF3-4EF5-815D-281427431048"><config><identifier>org.iojs.pkg</identifier><version>1.0</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true" mod="true">../out/dist-osx/usr/local/</installFrom><installTo mod="true" relocatable="true">/usr/local</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>installTo.isRelativeType</mod><mod>installTo</mod><mod>locationType</mod><mod>relocatable</mod><mod>installFrom.path</mod><mod>installTo.isAbsoluteType</mod><mod>identifier</mod><mod>parent</mod><mod>installTo.path</mod><mod>installFrom.isRelativeType</mod></config></pkgref> | ||
<pkgref spec="1.12" uuid="053587FE-BDF3-4EF5-815D-281427431048"> | ||
<config> | ||
<identifier>org.iojs.iojs.pkg</identifier> | ||
<version>1.0</version> | ||
<description></description> | ||
<post-install type="none"/> | ||
<requireAuthorization/> | ||
<installFrom relative="true" mod="true">../out/dist-osx/usr/local/</installFrom> | ||
<installTo mod="true" relocatable="true">/usr/local</installTo> | ||
<flags> | ||
<followSymbolicLinks/> | ||
</flags> | ||
<packageStore type="internal"></packageStore> | ||
<mod>installTo.isRelativeType</mod> | ||
<mod>installTo</mod> | ||
<mod>locationType</mod> | ||
<mod>relocatable</mod> | ||
<mod>installFrom.path</mod> | ||
<mod>installTo.isAbsoluteType</mod> | ||
<mod>identifier</mod> | ||
<mod>parent</mod> | ||
<mod>installTo.path</mod> | ||
<mod>installFrom.isRelativeType</mod> | ||
</config> | ||
</pkgref> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you explicitly pass DISTTYPE=release, you'll end up here, which I think might have unintended consequences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed by setting
DISTTYPE=release
when not defined, then heading in to this block assuming it's set.