X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,J_CHICKENPOX_33 autolearn=no version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p85FjM4g021624 for ; Mon, 5 Sep 2011 10:45:22 -0500 X-ASG-Debug-ID: 1315237753-350502970000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from josefsipek.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 70B4413C4D3D for ; Mon, 5 Sep 2011 08:49:13 -0700 (PDT) Received: from josefsipek.net (josefsipek.net [64.9.206.49]) by cuda.sgi.com with ESMTP id TjZxW4HC8IGsfUNg for ; Mon, 05 Sep 2011 08:49:13 -0700 (PDT) Received: by josefsipek.net (Postfix, from userid 1000) id 905935852D; Mon, 5 Sep 2011 11:45:17 -0400 (EDT) Date: Mon, 5 Sep 2011 11:45:17 -0400 From: "Josef 'Jeff' Sipek" To: Ken McDonell Cc: pcp@oss.sgi.com X-ASG-Orig-Subj: Re: [pcp] [Fwd: Re: build issues] Subject: Re: [pcp] [Fwd: Re: build issues] Message-ID: <20110905154517.GA9504@josefsipek.net> References: <1315177389.2810.41.camel@bozo.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1315177389.2810.41.camel@bozo.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-Barracuda-Connect: josefsipek.net[64.9.206.49] X-Barracuda-Start-Time: 1315237754 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.73728 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Mon, Sep 05, 2011 at 09:03:09AM +1000, Ken McDonell wrote: > Remove the attachment so that oss.sgi.com police won't block the > mail ... > > -------- Forwarded Message -------- > From: Ken McDonell > To: Josef 'Jeff' Sipek > Cc: pcp@oss.sgi.com > Subject: Re: [pcp] build issues > Date: Mon, 05 Sep 2011 07:49:54 +1000 > > On Sun, 2011-09-04 at 01:12 -0400, Josef 'Jeff' Sipek wrote: > > Hello all! > > > > I'm trying to package up PCP for OpenIndiana [1]. I grabbed the 3.5.8 > > tarball and applied the Solaris related commits in git. It builds fine. > > The issue is with the install target. > > Jeff, > > This works "out of the box" (tm) for me on OpenIndiana in the QA > Farm ... > > Here is my recipe snippet > > pull the latest git pieces > > $ make distclean > $ ./Makepkgs || botch > : this should work on _all_ platforms, and for OpenIndiana creates > : solaris packages in build/sun (in addition to a tarball that can be > : ignored) > : ... look for errors and warnings in Logs/pcp > $ cd build/sun > $ yes Y | sudo /usr/sbin/pkgrm pcp > $ yes Y | sudo /usr/sbin/pkgadd -d pcp-3.5.9 all || botch Aha. That's where we're diverging. You are using the SVR4 package manager. OI build (for post-151 release) is switching to IPS (see pkg(1)) and uses a fork of Oracle's Userland repo (which is much like BSD's ports tree). The typical package build steps in Userland are (it's all scripted): 1) get the tarball 2) unpack 3) apply all patches 4) build with appropriate prefix, etc. 5) install via DESTDIR to a prototype area 6) generate package manifest using the prototype area & other metadata stored along the build script 7) store it in a temp IPS repo I'm trying to make the build script which will let OI ship PCP packages. > How are you trying to run the "package build process"? > > DESTDIR is only used for the Perl bits I think, and then I am guessing > you're trying to to "make install" ... which is not the right recipe. Yep. Just doing the usual... make && make install. Thanks, Jeff. P.S. As far as I know, Solaris 11 will be using pkg(1) in favor of pkg{add,rm} for Oracle provided software. -- The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers. - Bill Gates, The Road Ahead, pg. 265