Discussion:
[Gimp-print-devel] Building Gutenprint .pkg (not .mpkg)
Walker Blackwell
2017-07-11 14:00:43 UTC
Permalink
Dear Devs.

I’m working on a temp fork of gutenprint with some additional test code. Building and running on Linux is a breeze but I’m having trouble building for OS X. To eliminate variables and just test with currently working code, I downloaded the most recent cvs of the official gutenprint-5.2.13-pre1 and the tarball + all dependent OS X utilities required to build the install package for OS X. I’m running most recent version of OS X but PackageMaker still works, and homebrew is backwards compatible.

I’ve hit upon two bumps that seem to be missing from documentation of the OS X “option 1” packaging process.

1. After successful ./make-build I run ./make-installer. The first error that crops up is "cp: src/gutenprint.pkg.src/Contents: No such file or directory” Sure enough, there is no “Contents” directory. Making a blank folder there seems to eliminate the error but that may just be glossing over the problem . . .
2. The second error that crops up is that this “make-installer” command requires a “.mkpg”. I can find the most recent mkpg in the 5.2.10 dmg download so after copying that and adding it to the source, I can build a new dmg.
3. The problem is that this new dmg (and installer therein) is in the old “mpkg” format and not the new “pkg” format as found in the current .11, .12 and .13 installers. Also, upon test-installing it says the installer will add “55.2” megabytes but after clicking Install it throws an error and can’t find anything to install. This may be due to the lack of a Contents folder . . . I tested the installer on a fresh OS X El Capitan as well . . . no dice.

Questions:

1. Is there an updated workflow for creating the pkg and not “mpkg” that I’m not aware of? This is not documented in the OS X build instructions or throughout the list archive so far as I can see.
2. Is there a way to get around the missing Contents folder error? A hunch tells me these may be connected.
3. Do I need to run this installation process on an older version of OS X? I’m not attempting to make this install backwards compatible.

Thank your for your time.
I apologize if this is redundant questioning. I could not find the information in the list archives.


all the best,
Walker Blackwell

R&D Vermont Photo Inkjet LLC.
f***@walkerblackwell.com
2017-07-11 14:02:02 UTC
Permalink
Dear Devs.

I’m working on a temp fork of gutenprint with some additional test code. Building and running on Linux is a breeze but I’m having trouble building for OS X. To eliminate variables and just test with currently working code, I downloaded the most recent cvs of the official gutenprint-5.2.13-pre1 and the tarball + all dependent OS X utilities required to build the install package for OS X. I’m running most recent version of OS X but PackageMaker still works, and homebrew is backwards compatible.

I’ve hit upon two bumps that seem to be missing from documentation of the OS X “option 1” packaging process.

1. After successful ./make-build I run ./make-installer. The first error that crops up is "cp: src/gutenprint.pkg.src/Contents: No such file or directory” Sure enough, there is no “Contents” directory. Making a blank folder there seems to eliminate the error but that may just be glossing over the problem . . .
2. The second error that crops up is that this “make-installer” command requires a “.mkpg”. I can find the most recent mkpg in the 5.2.10 dmg download so after copying that and adding it to the source, I can build a new dmg.
3. The problem is that this new dmg (and installer therein) is in the old “mpkg” format and not the new “pkg” format as found in the current .11, .12 and .13 installers. Also, upon test-installing it says the installer will add “55.2” megabytes but after clicking Install it throws an error and can’t find anything to install. This may be due to the lack of a Contents folder . . . I tested the installer on a fresh OS X El Capitan as well . . . no dice.

Questions:

1. Is there an updated workflow for creating the pkg and not “mpkg” that I’m not aware of? This is not documented in the OS X build instructions or throughout the list archive so far as I can see.
2. Is there a way to get around the missing Contents folder error? A hunch tells me these may be connected.
3. Do I need to run this installation process on an older version of OS X? I’m not attempting to make this install backwards compatible.

Thank your for your time.
I apologize if this is redundant questioning. I could not find the information in the list archives.


all the best,
Walker Blackwell

R&D Vermont Photo Inkjet LLC.
f***@walkerblackwell.com
2017-07-11 17:18:25 UTC
Permalink
Thank you very much Steve! I will do this. I knew I was probably just clunking by head against the wrong wall. sheesh

I did not see your original reply, but thanks for re-replying here.

//

Glad to see a fellow Vermonter on this list! I drive through Barre twice a day between Montpelier (where I live) to the little town of Topsham (in the middle of basically nothing) where VPI is. Grew up in Cabot.

cheers!
Walker
I answered this for you once before but I never saw it come across the list. Sometimes the list and Yahoo don't seem to get along. Before I start, I am a Vermonter, born and raised in Barre. I only mention this because I assume you are in Vermont.
But to answer your question, those instructions are badly out of date, I need to update them. The build is now almost fully automated. You first need to download the tarball, Download Gutenprint - Top Quality Printer Drivers from SourceForge.net
Download Gutenprint - Top Quality Printer Drivers from SourceForge.net
Your download will start shortly...
If the macosx directory is missing, fetch it here: Gutenprint - Top Quality Printer Drivers / Source-code / [cbd39a] /macosx
Gutenprint - Top Quality Printer Drivers / Source-code / [cbd39a] /m...
and put it into the gutenprint directory. Then from that directory simply run macosx/makegutenpkg.sh
Steve Letter You're never to old to learn something stupid. -- unknown
Dear Devs.
I’m working on a temp fork of gutenprint with some additional test code. Building and running on Linux is a breeze but I’m having trouble building for OS X. To eliminate variables and just test with currently working code, I downloaded the most recent cvs of the official gutenprint-5.2.13-pre1 and the tarball + all dependent OS X utilities required to build the install package for OS X. I’m running most recent version of OS X but PackageMaker still works, and homebrew is backwards compatible.
I’ve hit upon two bumps that seem to be missing from documentation of the OS X “option 1” packaging process.
1. After successful ./make-build I run ./make-installer. The first error that crops up is "cp: src/gutenprint.pkg.src/Contents: No such file or directory” Sure enough, there is no “Contents” directory. Making a blank folder there seems to eliminate the error but that may just be glossing over the problem . . .
2. The second error that crops up is that this “make-installer” command requires a “.mkpg”. I can find the most recent mkpg in the 5.2.10 dmg download so after copying that and adding it to the source, I can build a new dmg.
3. The problem is that this new dmg (and installer therein) is in the old “mpkg” format and not the new “pkg” format as found in the current .11, .12 and .13 installers. Also, upon test-installing it says the installer will add “55.2” megabytes but after clicking Install it throws an error and can’t find anything to install. This may be due to the lack of a Contents folder . . . I tested the installer on a fresh OS X El Capitan as well . . . no dice.
1. Is there an updated workflow for creating the pkg and not “mpkg” that I’m not aware of? This is not documented in the OS X build instructions or throughout the list archive so far as I can see.
2. Is there a way to get around the missing Contents folder error? A hunch tells me these may be connected.
3. Do I need to run this installation process on an older version of OS X? I’m not attempting to make this install backwards compatible.
Thank your for your time.
I apologize if this is redundant questioning. I could not find the information in the list archives.
all the best,
Walker Blackwell
R&D Vermont Photo Inkjet LLC.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gimp-print-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Gimp-print-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
f***@walkerblackwell.com
2017-07-11 17:42:22 UTC
Permalink
Sorry Steve. One more question . . .

How do you define your Apple Dev ID? I have one but not entirely sure where/how to place it . . In setup-env? .

Is there a way to temporally build w/out signing?

Much obliged.
Walker

Loading...