The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #15708

packages should be built using pkgbuild

Added by Clay Caviness almost 4 years ago. Updated over 2 years ago.

Status:ClosedStart date:07/26/2012
Priority:NormalDue date:
Assignee:Chris Barker% Done:


Target version:-
Affected Puppet version: Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


Currently, OS X packages for puppet and facter are built using ./conf/osx/, which calls /Developer/usir/bin/packagemaker to create the package. In recent Xcode releases, PackageMaker is no longer installed by default, and when it is installed in frequently not installed at that path. A better tool to use would be /usr/bin/pkgbuild.


#1 Updated by James Turnbull over 3 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to eric sorenson

#2 Updated by eric sorenson over 3 years ago

  • Assignee changed from eric sorenson to Michael Stahnke

Mike this is purely a build-time thing, can your team investigate?

#3 Updated by Clay Caviness over 3 years ago

May be missing some options, but this seems to have worked, in

  "${PKGBUILD}" --root "${pkgroot}" \
                --scripts ${pkgtemp}/scripts \
                --identifier com.reductivelabs.puppet \
                --version ${puppet_version} \
                --install-location / \
                --ownership preserve \
                --verbose \

There’s no longer any need for the PackageInfo.plist.

#4 Updated by Clay Caviness over 3 years ago

Same issue with the facter package – do you want a separate bug in that queue?

#5 Updated by Clay Caviness over 3 years ago

Ah, also the preflight script should be called preinstall for pkgbuild.

#6 Updated by Matthaus Owens over 3 years ago

We actually build currently using the package:apple rake task. If that should be moved to use pkgbuild instead of packagemaker, that is feasible.

#7 Updated by Moses Mendoza over 3 years ago

  • Assignee changed from Michael Stahnke to Gary Larizza

Gary, handing off to you to take a look.

#8 Updated by Gary Larizza over 3 years ago

  • Assignee changed from Gary Larizza to Chris Barker

I had a conversation with Chris about this today – so I’m going to transfer this one to him. Chris, Moses has started a project here —> to specifically target packaging all of Puppet’s components. All changes need to be made to that project. It should abstract our current Rake process.

#9 Updated by Chris Barker over 3 years ago

Packaging’s apple.task has been updated to allow for building with pkgbuild and flat packages.

The facter project also requires an update to be compatible with this process:

Pull request here:

#10 Updated by Clay Caviness almost 3 years ago

What’s the status of this? I see the pull requests are still pending, and I’m not sure how to use the new packaging system in any case.

Should I create a pull request for my patched files in facter and puppet, or just wait for this?


#11 Updated by Chris Barker almost 3 years ago

The packaging task repo (not createpackages).sh needs to be updated to merge with the latest builds of Puppet, that will be planned for later this week for update and testing (that gets integrated into our build process system).

#12 Updated by Clay Caviness almost 3 years ago

Any updates?

#13 Updated by Clay Caviness almost 3 years ago

I created to use pkgbuild; it probably needs some changes before integration, but hopefully it’ll get things moving.

Also available in: Atom PDF