Trying to build omnibus installer on FreeBSD

Hi,

though I can build the chef-client via FreeBSD ports, due to the
various dependencies and because we’d like to have the same
chef-version on every platform (Linux, FreeBSD, Solaris), I’d like to
build the omnibus-installer.

I’ve installed a basic FreeBSD 9.1 jail with only the following
packages:

[root@omnibus-build /home/chef-build/repo/omnibus-chef]# pkg info
bash-4.2.37 The GNU Project’s Bourne Again SHell
ca_root_nss-3.14 The root certificate bundle from the
Mozilla Project curl-7.24.0_1 Non-interactive tool to
get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1 Create patchset information from CVS
expat-2.0.1_2 XML 1.0 parser written in C
gettext-0.18.1.1 GNU gettext package
git-1.8.0 Distributed source code management tool
gmake-3.82_1 GNU version of ‘make’ utility
libiconv-1.14 A character set conversion library
p5-Error-0.17018 Perl module to provide Error/exception
support for perl: Error p5-Net-SMTP-SSL-1.01_1 An SMTP client
supporting SSL perl-5.16.2 Practical Extraction and
Report Language pkg-1.0.2 New generation package
manager python27-2.7.3_3 An interpreted object-oriented
programming language ruby-1.8.7.371,1 An object-oriented
interpreted scripting language ruby18-gems-1.8.24 Package
management framework for the Ruby language
rubygem-bundler-1.1.5 A tool that manages gem dependencies for
ruby applications rubygem-rake-0.9.2.2 Ruby Make

I’ve aliased gmake to make
(BTW: does it need gmake or make?), but upon running
[root@omnibus-build /home/chef-build/repo/omnibus-chef]#
CHEF_GIT_REV=10.14.4 rake projects:chef --trace

I get:

Omnibus::BuildVersion.full is deprecated. Use
Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. Omnibus::BuildVersion.full is
deprecated. Use Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. ** Invoke projects:chef
(first_time) ** Invoke projects:chef:copy (first_time) ** Invoke
projects:chef:makeself (first_time) ** Invoke
projects:chef:software:preparation (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest
(first_time) ** Invoke (first_time) ** Execute ** Invoke
projects:chef:software:preparation:build (first_time) ** Invoke
projects:chef:software:preparation:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (first_time, not_needed) **
Invoke /var/cache/omnibus/src (first_time, not_needed) **
Invoke /var/cache/omnibus/cache (first_time, not_needed) **
Invoke /var/cache/omnibus/src/preparation (first_time, not_needed) **
Execute projects:chef:software:preparation:fetch ** Execute
projects:chef:software:preparation:build **
Invoke /var/cache/omnibus/build/opt_chef/preparation.fetch (first_time)
** Invoke projects:chef:software:preparation:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/preparation.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/preparation.fetch **
Execute /var/cache/omnibus/build/opt_chef/preparation.manifest **
Execute projects:chef:software:preparation ** Invoke
projects:chef:software:chef (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:ruby (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:zlib (first_time) ** Invoke
projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/zlib.manifest (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/zlib-1.2.6/examplesh (first_time,
not_needed) ** Invoke projects:chef:software:zlib:build (first_time) **
Invoke projects:chef:software:zlib:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/zlib-1.2.6 (first_time, not_needed) **
Execute projects:chef:software:zlib:fetch ** Execute
projects:chef:software:zlib:build **
Invoke /var/cache/omnibus/build/opt_chef/zlib.fetch (first_time) **
Invoke projects:chef:software:zlib:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/zlib.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/zlib.fetch **
Execute /var/cache/omnibus/build/opt_chef/zlib.manifest ** Execute
projects:chef:software:zlib ** Invoke projects:chef:software:ncurses
(first_time) ** Invoke projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/ncurses.manifest (first_time)
** Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/ncurses-5.9/man (first_time, not_needed)
** Invoke projects:chef:software:ncurses:build (first_time) ** Invoke
projects:chef:software:ncurses:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/ncurses-5.9 (first_time, not_needed) **
Execute projects:chef:software:ncurses:fetch ** Execute
projects:chef:software:ncurses:build [fetcher:s3cache::ncurses]
cleaning existing build from /var/cache/omnibus/src/ncurses-5.9
[fetcher:s3cache::ncurses] extracting the source
in /var/cache/omnibus/cache/ncurses-5.9.tar.gz
to /var/cache/omnibus/src [builder:ncurses] building ncurses
[builder:ncurses] Executing: ./configure --prefix=/opt/chef/embedded --with-shared --with-termlib --without-debug --enable-widec with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env=“CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib” [builder:ncurses] ./configure
command succeeded, 10.03133s [builder:ncurses] Executing: make -j 2
with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env=“CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib” [builder:ncurses] make command
failed, 0.223738s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 1
time(s). Retrying in 5s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env=“CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib” [builder:ncurses] make command
failed, 0.022254s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 2
time(s). Retrying in 10s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env=“CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib” [builder:ncurses] make command
failed, 0.03299s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 3
time(s). Retrying in 20s.

Can anyone shed light on what exactly it wants to do here and why it’s
failing?

Thanks in advance,
Rainer

We need to see the error message after it fully fails - but the issue is
ncurses failed to build.

Adam

On 1/8/13 5:12 AM, "chef@ultra-secure.de" chef@ultra-secure.de wrote:

Hi,

though I can build the chef-client via FreeBSD ports, due to the
various dependencies and because we'd like to have the same
chef-version on every platform (Linux, FreeBSD, Solaris), I'd like to
build the omnibus-installer.

I've installed a basic FreeBSD 9.1 jail with only the following
packages:

[root@omnibus-build /home/chef-build/repo/omnibus-chef]# pkg info
bash-4.2.37 The GNU Project's Bourne Again SHell
ca_root_nss-3.14 The root certificate bundle from the
Mozilla Project curl-7.24.0_1 Non-interactive tool to
get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1 Create patchset information from CVS
expat-2.0.1_2 XML 1.0 parser written in C
gettext-0.18.1.1 GNU gettext package
git-1.8.0 Distributed source code management tool
gmake-3.82_1 GNU version of 'make' utility
libiconv-1.14 A character set conversion library
p5-Error-0.17018 Perl module to provide Error/exception
support for perl: Error p5-Net-SMTP-SSL-1.01_1 An SMTP client
supporting SSL perl-5.16.2 Practical Extraction and
Report Language pkg-1.0.2 New generation package
manager python27-2.7.3_3 An interpreted object-oriented
programming language ruby-1.8.7.371,1 An object-oriented
interpreted scripting language ruby18-gems-1.8.24 Package
management framework for the Ruby language
rubygem-bundler-1.1.5 A tool that manages gem dependencies for
ruby applications rubygem-rake-0.9.2.2 Ruby Make

I've aliased gmake to make
(BTW: does it need gmake or make?), but upon running
[root@omnibus-build /home/chef-build/repo/omnibus-chef]#
CHEF_GIT_REV=10.14.4 rake projects:chef --trace

I get:

Omnibus::BuildVersion.full is deprecated. Use
Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. Omnibus::BuildVersion.full is
deprecated. Use Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. ** Invoke projects:chef
(first_time) ** Invoke projects:chef:copy (first_time) ** Invoke
projects:chef:makeself (first_time) ** Invoke
projects:chef:software:preparation (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest
(first_time) ** Invoke (first_time) ** Execute ** Invoke
projects:chef:software:preparation:build (first_time) ** Invoke
projects:chef:software:preparation:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (first_time, not_needed) **
Invoke /var/cache/omnibus/src (first_time, not_needed) **
Invoke /var/cache/omnibus/cache (first_time, not_needed) **
Invoke /var/cache/omnibus/src/preparation (first_time, not_needed) **
Execute projects:chef:software:preparation:fetch ** Execute
projects:chef:software:preparation:build **
Invoke /var/cache/omnibus/build/opt_chef/preparation.fetch (first_time)
** Invoke projects:chef:software:preparation:fetch **
Invoke
/usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/co
nfig/software/preparation.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/preparation.fetch **
Execute /var/cache/omnibus/build/opt_chef/preparation.manifest **
Execute projects:chef:software:preparation ** Invoke
projects:chef:software:chef (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:ruby (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:zlib (first_time) ** Invoke
projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/zlib.manifest (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/zlib-1.2.6/examplesh (first_time,
not_needed) ** Invoke projects:chef:software:zlib:build (first_time) **
Invoke projects:chef:software:zlib:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/zlib-1.2.6 (first_time, not_needed) **
Execute projects:chef:software:zlib:fetch ** Execute
projects:chef:software:zlib:build **
Invoke /var/cache/omnibus/build/opt_chef/zlib.fetch (first_time) **
Invoke projects:chef:software:zlib:fetch **
Invoke
/usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/co
nfig/software/zlib.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/zlib.fetch **
Execute /var/cache/omnibus/build/opt_chef/zlib.manifest ** Execute
projects:chef:software:zlib ** Invoke projects:chef:software:ncurses
(first_time) ** Invoke projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/ncurses.manifest (first_time)
** Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/ncurses-5.9/man (first_time, not_needed)
** Invoke projects:chef:software:ncurses:build (first_time) ** Invoke
projects:chef:software:ncurses:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/ncurses-5.9 (first_time, not_needed) **
Execute projects:chef:software:ncurses:fetch ** Execute
projects:chef:software:ncurses:build [fetcher:s3cache::ncurses]
cleaning existing build from /var/cache/omnibus/src/ncurses-5.9
[fetcher:s3cache::ncurses] extracting the source
in /var/cache/omnibus/cache/ncurses-5.9.tar.gz
to /var/cache/omnibus/src [builder:ncurses] building ncurses
[builder:ncurses] Executing: ./configure --prefix=/opt/chef/embedded --with-shared --with-termlib --without-debug --enable-widec with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/che
f/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] ./configure
command succeeded, 10.03133s [builder:ncurses] Executing: make -j 2
with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/che
f/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.223738s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embe
dded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 1
time(s). Retrying in 5s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/che
f/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.022254s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embe
dded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 2
time(s). Retrying in 10s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/che
f/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.03299s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embe
dded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 3
time(s). Retrying in 20s.

...

Can anyone shed light on what exactly it wants to do here and why it's
failing?

Thanks in advance,
Rainer

±-----------------------------------------------------------------------------
| On 2013-01-08 14:26:32, Adam Jacob wrote:
|
| We need to see the error message after it fully fails - but the issue is
| ncurses failed to build.

We have always been at war with ncurses.

(Also fails on Solaris.)

bdha
cyberpunk is dead. long live cyberpunk.

We have working solaris client builds, so it builds on at least some
flavors :slight_smile:

Adam

On 1/8/13 8:30 AM, "Bryan Horstmann-Allen" bdha@mirrorshades.net wrote:

+-------------------------------------------------------------------------

| On 2013-01-08 14:26:32, Adam Jacob wrote:
|
| We need to see the error message after it fully fails - but the issue is
| ncurses failed to build.

We have always been at war with ncurses.

(Also fails on Solaris.)

bdha
cyberpunk is dead. long live cyberpunk.

±-----------------------------------------------------------------------------
| On 2013-01-08 14:40:16, Adam Jacob wrote:
|
| We have working solaris client builds, so it builds on at least some
| flavors :slight_smile:

Oh, I totes use the omnibus installer on Solaris 10, OmniOS and SmartOS. I need
to do some digging to get it actually building on OmniOS, though. :slight_smile:

Using omnibus-ruby for other internal stuff. Very nice!

Cheers.

bdha
cyberpunk is dead. long live cyberpunk.

Am Tue, 8 Jan 2013 14:26:32 +0000
schrieb Adam Jacob adam@opscode.com:

We need to see the error message after it fully fails - but the issue
is ncurses failed to build.

Ah, you really want everything. This is what I get:

[root@omnibus-build /home/chef-build/repo/omnibus-chef]#
CHEF_GIT_REV=10.14.4 rake projects:chef --trace
Omnibus::BuildVersion.full is deprecated. Use
Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. Omnibus::BuildVersion.full is
deprecated. Use Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. ** Invoke projects:chef
(first_time) ** Invoke projects:chef:copy (first_time) ** Invoke
projects:chef:makeself (first_time) ** Invoke
projects:chef:software:preparation (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest
(first_time) ** Invoke (first_time) ** Execute ** Invoke
projects:chef:software:preparation:build (first_time) ** Invoke
projects:chef:software:preparation:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (first_time, not_needed) **
Invoke /var/cache/omnibus/src (first_time, not_needed) **
Invoke /var/cache/omnibus/cache (first_time, not_needed) **
Invoke /var/cache/omnibus/src/preparation (first_time, not_needed) **
Execute projects:chef:software:preparation:fetch ** Execute
projects:chef:software:preparation:build **
Invoke /var/cache/omnibus/build/opt_chef/preparation.fetch (first_time)
** Invoke projects:chef:software:preparation:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/preparation.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/preparation.fetch **
Execute /var/cache/omnibus/build/opt_chef/preparation.manifest **
Execute projects:chef:software:preparation ** Invoke
projects:chef:software:chef (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:ruby (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:zlib (first_time) ** Invoke
projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/zlib.manifest (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/zlib-1.2.6/examplesh (first_time,
not_needed) ** Invoke projects:chef:software:zlib:build (first_time) **
Invoke projects:chef:software:zlib:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/zlib-1.2.6 (first_time, not_needed) **
Execute projects:chef:software:zlib:fetch ** Execute
projects:chef:software:zlib:build **
Invoke /var/cache/omnibus/build/opt_chef/zlib.fetch (first_time) **
Invoke projects:chef:software:zlib:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/zlib.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/zlib.fetch **
Execute /var/cache/omnibus/build/opt_chef/zlib.manifest ** Execute
projects:chef:software:zlib ** Invoke projects:chef:software:ncurses
(first_time) ** Invoke projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/ncurses.manifest (first_time)
** Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/ncurses-5.9/man (first_time, not_needed)
** Invoke projects:chef:software:ncurses:build (first_time) ** Invoke
projects:chef:software:ncurses:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/ncurses-5.9 (first_time, not_needed) **
Execute projects:chef:software:ncurses:fetch ** Execute
projects:chef:software:ncurses:build [fetcher:s3cache::ncurses]
cleaning existing build from /var/cache/omnibus/src/ncurses-5.9
[fetcher:s3cache::ncurses] extracting the source
in /var/cache/omnibus/cache/ncurses-5.9.tar.gz
to /var/cache/omnibus/src [builder:ncurses] building ncurses
[builder:ncurses] Executing: ./configure --prefix=/opt/chef/embedded --with-shared --with-termlib --without-debug --enable-widec with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include" [builder:ncurses] ./configure command
succeeded, 10.119807s [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include" [builder:ncurses] make command failed,
0.230004s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envLD_RUN_PATH/opt/chef/embedded/libCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include 1 time(s). Retrying in 5s.
[builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include" [builder:ncurses] make command failed,
0.022096s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envLD_RUN_PATH/opt/chef/embedded/libCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include 2 time(s). Retrying in 10s.
[builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include" [builder:ncurses] make command failed,
0.021877s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envLD_RUN_PATH/opt/chef/embedded/libCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include 3 time(s). Retrying in 20s.
[builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include" [builder:ncurses] make command failed,
0.022241s


        • Failed to build ncurses while running make -j 2 with
          timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="LD_RUN_PATH=/opt/chef/embedded/lib
          CFLAGS=-L/opt/chef/embedded/lib -I/opt/chef/embedded/include"
          Exception: Mixlib::ShellOut::ShellCommandFailed: Expected process to
          exit with [0], but received '2' ---- Begin output of make -j 2 ----
          STDOUT: cd man && make -j 2 DESTDIR="" all cd include && make -j 2
          DESTDIR="" all cd: include: No such file or directory
          cd ncurses && make -j 2 DESTDIR="" all
          cd: ncurses: No such file or directory
          cd progs && make -j 2 DESTDIR="" all
          cd: progs: No such file or directory
          cd panel && make -j 2 DESTDIR="" all
          cd: panel: No such file or directory
          cd menu && make -j 2 DESTDIR="" all
          cd: menu: No such file or directory
          cd form && make -j 2 DESTDIR="" all
          cd: form: No such file or directory
          cd test && make -j 2 DESTDIR="" all
          cd: test: No such file or directory
          cd misc && make -j 2 DESTDIR="" all
          cd: misc: No such file or directory
          cd c++ && make -j 2 DESTDIR="" all
          cd: c++: No such file or directory
          *** [all] Error code 2
          STDERR: 1 error
          ---- End output of make -j 2 ----
          Ran make -j 2 returned 2
          /usr/local/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in
          invalid!' /usr/local/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:in error!' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:231:in
          execute_sh' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:278:in time_it' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:229:in
          execute_sh' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:189:in execute' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:179:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:178:in each' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:178:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:278:in time_it' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:177:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/software.rb:217:in execute_build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/software.rb:261:in
          render_tasks' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in
          execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in
          execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in
          invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in run_with_threads' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in
          standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33
          /usr/local/bin/rake:23:in `load'
          /usr/local/bin/rake:23

        • [builder:ncurses] ncurses build failed, 45.425338s
          rake aborted!
          Expected process to exit with [0], but received '2'
          ---- Begin output of make -j 2 ----
          STDOUT: cd man && make -j 2 DESTDIR="" all
          cd include && make -j 2 DESTDIR="" all
          cd: include: No such file or directory
          cd ncurses && make -j 2 DESTDIR="" all
          cd: ncurses: No such file or directory
          cd progs && make -j 2 DESTDIR="" all
          cd: progs: No such file or directory
          cd panel && make -j 2 DESTDIR="" all
          cd: panel: No such file or directory
          cd menu && make -j 2 DESTDIR="" all
          cd: menu: No such file or directory
          cd form && make -j 2 DESTDIR="" all
          cd: form: No such file or directory
          cd test && make -j 2 DESTDIR="" all
          cd: test: No such file or directory
          cd misc && make -j 2 DESTDIR="" all
          cd: misc: No such file or directory
          cd c++ && make -j 2 DESTDIR="" all
          cd: c++: No such file or directory
          *** [all] Error code 2
          STDERR: 1 error
          ---- End output of make -j 2 ----
          Ran make -j 2 returned 2
          /usr/local/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in
          invalid!' /usr/local/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:in error!' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:231:in
          execute_sh' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:278:in time_it' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:229:in
          execute_sh' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:189:in execute' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:179:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:178:in each' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:178:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:278:in time_it' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/builder.rb:177:in
          build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/software.rb:217:in execute_build' /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-ruby-e875bb73fbbc/lib/omnibus/software.rb:261:in
          render_tasks' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in
          execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in
          execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in
          invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in
          synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in
          invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in run_with_threads' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in
          top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in
          standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33
          /usr/local/bin/rake:23:in `load'
          /usr/local/bin/rake:23
          Tasks: TOP => projects:chef => projects:chef:copy =>
          projects:chef:makeself => projects:chef:software:chef =>
          projects:chef:software:ruby => projects:chef:software:ncurses
          => /var/cache/omnibus/build/opt_chef/ncurses.manifest =>
          projects:chef:software:ncurses:build

I patched up Omnibus to build on SmartOS.
Maybe it fixes FreeBSD?

Try this branch. Let me know.

https://github.com/someara/omnibus-software/tree/CHEF-2576

-s

On Tue, Jan 8, 2013 at 6:12 AM, chef@ultra-secure.de wrote:

Hi,

though I can build the chef-client via FreeBSD ports, due to the
various dependencies and because we'd like to have the same
chef-version on every platform (Linux, FreeBSD, Solaris), I'd like to
build the omnibus-installer.

I've installed a basic FreeBSD 9.1 jail with only the following
packages:

[root@omnibus-build /home/chef-build/repo/omnibus-chef]# pkg info
bash-4.2.37 The GNU Project's Bourne Again SHell
ca_root_nss-3.14 The root certificate bundle from the
Mozilla Project curl-7.24.0_1 Non-interactive tool to
get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1 Create patchset information from CVS
expat-2.0.1_2 XML 1.0 parser written in C
gettext-0.18.1.1 GNU gettext package
git-1.8.0 Distributed source code management tool
gmake-3.82_1 GNU version of 'make' utility
libiconv-1.14 A character set conversion library
p5-Error-0.17018 Perl module to provide Error/exception
support for perl: Error p5-Net-SMTP-SSL-1.01_1 An SMTP client
supporting SSL perl-5.16.2 Practical Extraction and
Report Language pkg-1.0.2 New generation package
manager python27-2.7.3_3 An interpreted object-oriented
programming language ruby-1.8.7.371,1 An object-oriented
interpreted scripting language ruby18-gems-1.8.24 Package
management framework for the Ruby language
rubygem-bundler-1.1.5 A tool that manages gem dependencies for
ruby applications rubygem-rake-0.9.2.2 Ruby Make

I've aliased gmake to make
(BTW: does it need gmake or make?), but upon running
[root@omnibus-build /home/chef-build/repo/omnibus-chef]#
CHEF_GIT_REV=10.14.4 rake projects:chef --trace

I get:

Omnibus::BuildVersion.full is deprecated. Use
Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. Omnibus::BuildVersion.full is
deprecated. Use Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. ** Invoke projects:chef
(first_time) ** Invoke projects:chef:copy (first_time) ** Invoke
projects:chef:makeself (first_time) ** Invoke
projects:chef:software:preparation (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest
(first_time) ** Invoke (first_time) ** Execute ** Invoke
projects:chef:software:preparation:build (first_time) ** Invoke
projects:chef:software:preparation:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (first_time, not_needed) **
Invoke /var/cache/omnibus/src (first_time, not_needed) **
Invoke /var/cache/omnibus/cache (first_time, not_needed) **
Invoke /var/cache/omnibus/src/preparation (first_time, not_needed) **
Execute projects:chef:software:preparation:fetch ** Execute
projects:chef:software:preparation:build **
Invoke /var/cache/omnibus/build/opt_chef/preparation.fetch (first_time)
** Invoke projects:chef:software:preparation:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/preparation.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/preparation.fetch **
Execute /var/cache/omnibus/build/opt_chef/preparation.manifest **
Execute projects:chef:software:preparation ** Invoke
projects:chef:software:chef (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:ruby (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:zlib (first_time) ** Invoke
projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/zlib.manifest (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/zlib-1.2.6/examplesh (first_time,
not_needed) ** Invoke projects:chef:software:zlib:build (first_time) **
Invoke projects:chef:software:zlib:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/zlib-1.2.6 (first_time, not_needed) **
Execute projects:chef:software:zlib:fetch ** Execute
projects:chef:software:zlib:build **
Invoke /var/cache/omnibus/build/opt_chef/zlib.fetch (first_time) **
Invoke projects:chef:software:zlib:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/zlib.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/zlib.fetch **
Execute /var/cache/omnibus/build/opt_chef/zlib.manifest ** Execute
projects:chef:software:zlib ** Invoke projects:chef:software:ncurses
(first_time) ** Invoke projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/ncurses.manifest (first_time)
** Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/ncurses-5.9/man (first_time, not_needed)
** Invoke projects:chef:software:ncurses:build (first_time) ** Invoke
projects:chef:software:ncurses:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/ncurses-5.9 (first_time, not_needed) **
Execute projects:chef:software:ncurses:fetch ** Execute
projects:chef:software:ncurses:build [fetcher:s3cache::ncurses]
cleaning existing build from /var/cache/omnibus/src/ncurses-5.9
[fetcher:s3cache::ncurses] extracting the source
in /var/cache/omnibus/cache/ncurses-5.9.tar.gz
to /var/cache/omnibus/src [builder:ncurses] building ncurses
[builder:ncurses] Executing: ./configure --prefix=/opt/chef/embedded --with-shared --with-termlib --without-debug --enable-widec with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] ./configure
command succeeded, 10.03133s [builder:ncurses] Executing: make -j 2
with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.223738s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 1
time(s). Retrying in 5s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.022254s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 2
time(s). Retrying in 10s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.03299s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 3
time(s). Retrying in 20s.

...

Can anyone shed light on what exactly it wants to do here and why it's
failing?

Thanks in advance,
Rainer

This patch lets ncurses build on Solaris. Try it on FreeBSD.
-s

https://github.com/someara/omnibus-software/blob/CHEF-2576/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch

On Tue, Jan 8, 2013 at 10:41 AM, Sean OMeara someara@gmail.com wrote:

I patched up Omnibus to build on SmartOS.
Maybe it fixes FreeBSD?

Try this branch. Let me know.

https://github.com/someara/omnibus-software/tree/CHEF-2576

-s

On Tue, Jan 8, 2013 at 6:12 AM, chef@ultra-secure.de wrote:

Hi,

though I can build the chef-client via FreeBSD ports, due to the
various dependencies and because we'd like to have the same
chef-version on every platform (Linux, FreeBSD, Solaris), I'd like to
build the omnibus-installer.

I've installed a basic FreeBSD 9.1 jail with only the following
packages:

[root@omnibus-build /home/chef-build/repo/omnibus-chef]# pkg info
bash-4.2.37 The GNU Project's Bourne Again SHell
ca_root_nss-3.14 The root certificate bundle from the
Mozilla Project curl-7.24.0_1 Non-interactive tool to
get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1 Create patchset information from CVS
expat-2.0.1_2 XML 1.0 parser written in C
gettext-0.18.1.1 GNU gettext package
git-1.8.0 Distributed source code management tool
gmake-3.82_1 GNU version of 'make' utility
libiconv-1.14 A character set conversion library
p5-Error-0.17018 Perl module to provide Error/exception
support for perl: Error p5-Net-SMTP-SSL-1.01_1 An SMTP client
supporting SSL perl-5.16.2 Practical Extraction and
Report Language pkg-1.0.2 New generation package
manager python27-2.7.3_3 An interpreted object-oriented
programming language ruby-1.8.7.371,1 An object-oriented
interpreted scripting language ruby18-gems-1.8.24 Package
management framework for the Ruby language
rubygem-bundler-1.1.5 A tool that manages gem dependencies for
ruby applications rubygem-rake-0.9.2.2 Ruby Make

I've aliased gmake to make
(BTW: does it need gmake or make?), but upon running
[root@omnibus-build /home/chef-build/repo/omnibus-chef]#
CHEF_GIT_REV=10.14.4 rake projects:chef --trace

I get:

Omnibus::BuildVersion.full is deprecated. Use
Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. Omnibus::BuildVersion.full is
deprecated. Use Omnibus::BuildVersion.new.semver or
Omnibus::BuildVersion.new.git_describe. ** Invoke projects:chef
(first_time) ** Invoke projects:chef:copy (first_time) ** Invoke
projects:chef:makeself (first_time) ** Invoke
projects:chef:software:preparation (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest
(first_time) ** Invoke (first_time) ** Execute ** Invoke
projects:chef:software:preparation:build (first_time) ** Invoke
projects:chef:software:preparation:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (first_time, not_needed) **
Invoke /var/cache/omnibus/src (first_time, not_needed) **
Invoke /var/cache/omnibus/cache (first_time, not_needed) **
Invoke /var/cache/omnibus/src/preparation (first_time, not_needed) **
Execute projects:chef:software:preparation:fetch ** Execute
projects:chef:software:preparation:build **
Invoke /var/cache/omnibus/build/opt_chef/preparation.fetch (first_time)
** Invoke projects:chef:software:preparation:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/preparation.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/preparation.fetch **
Execute /var/cache/omnibus/build/opt_chef/preparation.manifest **
Execute projects:chef:software:preparation ** Invoke
projects:chef:software:chef (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:ruby (first_time) ** Invoke
projects:chef:software:preparation ** Invoke
projects:chef:software:zlib (first_time) ** Invoke
projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/zlib.manifest (first_time) **
Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/zlib-1.2.6/examplesh (first_time,
not_needed) ** Invoke projects:chef:software:zlib:build (first_time) **
Invoke projects:chef:software:zlib:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/zlib-1.2.6 (first_time, not_needed) **
Execute projects:chef:software:zlib:fetch ** Execute
projects:chef:software:zlib:build **
Invoke /var/cache/omnibus/build/opt_chef/zlib.fetch (first_time) **
Invoke projects:chef:software:zlib:fetch **
Invoke /usr/local/lib/ruby/gems/1.8/bundler/gems/omnibus-software-b22fa6b16ff7/config/software/zlib.rb
(first_time, not_needed) **
Execute /var/cache/omnibus/build/opt_chef/zlib.fetch **
Execute /var/cache/omnibus/build/opt_chef/zlib.manifest ** Execute
projects:chef:software:zlib ** Invoke projects:chef:software:ncurses
(first_time) ** Invoke projects:chef:software:preparation **
Invoke /var/cache/omnibus/build/opt_chef/ncurses.manifest (first_time)
** Invoke /var/cache/omnibus/build/opt_chef/preparation.manifest **
Invoke /var/cache/omnibus/src/ncurses-5.9/man (first_time, not_needed)
** Invoke projects:chef:software:ncurses:build (first_time) ** Invoke
projects:chef:software:ncurses:fetch (first_time) **
Invoke /var/cache/omnibus/build/opt_chef (not_needed) **
Invoke /var/cache/omnibus/src (not_needed) **
Invoke /var/cache/omnibus/cache (not_needed) **
Invoke /var/cache/omnibus/src/ncurses-5.9 (first_time, not_needed) **
Execute projects:chef:software:ncurses:fetch ** Execute
projects:chef:software:ncurses:build [fetcher:s3cache::ncurses]
cleaning existing build from /var/cache/omnibus/src/ncurses-5.9
[fetcher:s3cache::ncurses] extracting the source
in /var/cache/omnibus/cache/ncurses-5.9.tar.gz
to /var/cache/omnibus/src [builder:ncurses] building ncurses
[builder:ncurses] Executing: ./configure --prefix=/opt/chef/embedded --with-shared --with-termlib --without-debug --enable-widec with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] ./configure
command succeeded, 10.03133s [builder:ncurses] Executing: make -j 2
with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.223738s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 1
time(s). Retrying in 5s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.022254s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 2
time(s). Retrying in 10s. [builder:ncurses] Executing: make -j 2 with
timeout=5400,cwd=/var/cache/omnibus/src/ncurses-5.9,env="CFLAGS=-L/opt/chef/embedded/lib
-I/opt/chef/embedded/include
LD_RUN_PATH=/opt/chef/embedded/lib" [builder:ncurses] make command
failed, 0.03299s [builder:ncurses] Failed to execute cmd make -j
2timeout5400cwd/var/cache/omnibus/src/ncurses-5.9envCFLAGS-L/opt/chef/embedded/lib
-I/opt/chef/embedded/includeLD_RUN_PATH/opt/chef/embedded/lib 3
time(s). Retrying in 20s.

...

Can anyone shed light on what exactly it wants to do here and why it's
failing?

Thanks in advance,
Rainer

Am Tue, 8 Jan 2013 10:41:36 -0500
schrieb Sean OMeara someara@gmail.com:

I patched up Omnibus to build on SmartOS.
Maybe it fixes FreeBSD?

Try this branch. Let me know.

https://github.com/someara/omnibus-software/tree/CHEF-2576

Hi,

sorry to ask such a silly question: how do I use this?
I assume, I have to merge this with the official omnibus-chef?

Because if I check it out and run:

[root@omnibus-build /home/chef-build/repo/omnibus-software]#
CHEF_GIT_REV=10.14.4 rake projects:chef rake aborted!
Don't know how to build task 'projects:chef'

(See full trace by running task with --trace)

Install ruby on your build machine with rbenv.

Fork and clone three projects.

~/src/omnibus-chef
~/src/omnibus-ruby
~/src/omnibus-software

omnibus-chef is the "main" repo, where you'll build from.
cp omnibus.rb.example omnibus.rb

bundle exec rake -T to see the build tasks.

Edit the Gemfile.
uncomment / comment the lines that will point to bundler at your
omnibus-chef and omnibus-software.

You can pull a branch from git like this:

git clone git@github.com:someara/omnibus-software.git
git checkout -b CHEF-2576
git pull origin CHEF-2576

Create a FreeBSD topic branch, and go nuts with the patching.
I have a suspicion that the SmartOS branch may build on FreeBSD.

-s

On Tue, Jan 8, 2013 at 11:37 AM, chef@ultra-secure.de wrote:

Am Tue, 8 Jan 2013 10:41:36 -0500
schrieb Sean OMeara someara@gmail.com:

I patched up Omnibus to build on SmartOS.
Maybe it fixes FreeBSD?

Try this branch. Let me know.

https://github.com/someara/omnibus-software/tree/CHEF-2576

Hi,

sorry to ask such a silly question: how do I use this?
I assume, I have to merge this with the official omnibus-chef?

Because if I check it out and run:

[root@omnibus-build /home/chef-build/repo/omnibus-software]#
CHEF_GIT_REV=10.14.4 rake projects:chef rake aborted!
Don't know how to build task 'projects:chef'

(See full trace by running task with --trace)