"No package identifier specified" and make -C
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com I run the pkg makefiles. They work as expected. 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 ==== 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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 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? # '+' 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Fritz Anderson