"No package identifier specified" and make -C
"No package identifier specified" and make -C
- Subject: "No package identifier specified" and make -C
- From: Fritz Anderson <email@hidden>
- Date: Fri, 22 Jun 2007 14:33:51 -0500
I am building an mpkg. I have a makefile that (I hope) will build all
the component packages and incorporate them in the mpkg build. Each
pkg has its own directory, and its own makefile to build it.
I run the pkg makefiles. They work as expected.
I run the mpkg makefile. It runs the pkg makefiles recursively (make -
C subdirectory). It fails because the first make of a sub-pkg fails.
PackageMaker prints "No package identifier specified," and exits.
I have added to my pkg Makefile the commands 'pwd' and 'head ./
Info.plist'. They show the expected working directory, and the
expected CFBundleIdentifier, in both the direct and recursive builds.
An archived question on this topic pinned the problem down to
omitting the -i parameter to PackageMaker. I have not omitted the -i
parameter. My Info.plist was generated by Iceberg, and is unchanged.
(And it works when the makefile is executed directly.)
How can I correct this so that recursive makes of subpackages can
proceed?
Stripped-down makefiles, and sample shell sessions, follow this message.
— F
==== MyMpkg/Makefile =======
# The mpkg makefile, truncated to just build one pkg
.PHONY: package APkg
package: APkg
APkg:
$(MAKE) -C $@ package
==== MyMpkg/APkg/Makefile =======
# $(rsrcFiles) is the contents of the resource directory
# $(PACKAGE-ROOT) is the root of the file hierarchy to be archived
# $(contentFiles) is every file in the package-root directory
.PHONY: package
package: build/APkg.pkg
build/APkg.pkg: $(rsrcFiles) $(contentFiles)
+ pwd
+ head Info.plist
PackageMaker -build -p $@ -f $(PACKAGE-ROOT) \
-b /tmp -ds -r ./resources -i ./Info.plist -d ./Description.plist
# '+' commands are executed even when make's -n switch is set.
# Omitting the '+'es has no effect on this problem.
# Specifying -r -i and -d without the ./ prefix has no effect on the
problem.
==== Running the makefiles: Direct make of pkg succeeds =======
# Make the pkg, starting from its umbrella directory.
# This works.
APkg: $ sudo make package
pwd
/Users/fritza/MyMpkg/APkg
head Info.plist
<?xml version="1.0" encoding="UTF-8"?>
...
<key>CFBundleIdentifier</key>
<string>edu.uchicago.pkg.APkg</string>
PackageMaker -build -p build/APkg.pkg -f ./root \
-b /tmp -ds -r ./resources -i ./Info.plist -d ./Description.plist
APkg: $ rm build/APkg.pkg
APkg: $ cd ..
==== Running the makefiles: Recursive make of pkg fails =======
# Make the mpkg, starting from its umbrella directory.
# This leads to running the APkg makefile in its umbrella directory.
# This doesn't work.
MyMpkg: $ sudo make package
make -C APkg
/Users/fritza/MyMpkg/APkg
head Info.plist
<?xml version="1.0" encoding="UTF-8"?>
...
<key>CFBundleIdentifier</key>
<string>edu.uchicago.pkg.APkg</string>
PackageMaker -build -p build/APkg.pkg -f ./root \
-b /tmp -ds -r ./resources -i ./Info.plist -d ./Description.plist
The package could not be created because of the following errors:
No package identifier specified.
make[1]: *** [build/APkg.pkg] Error 1
make: *** [APkg] Error 2
MyMpkg: $
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden