From owner-freebsd-desktop@FreeBSD.ORG Thu Nov 3 20:08:11 2011 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98E701065672 for ; Thu, 3 Nov 2011 20:08:11 +0000 (UTC) (envelope-from kris@pcbsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 7A53A8FC1F for ; Thu, 3 Nov 2011 20:08:11 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 3BFCD2D9 for ; Thu, 3 Nov 2011 12:48:31 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 42179-08 for ; Thu, 3 Nov 2011 12:48:31 -0700 (PDT) Received: from [192.168.0.186] (75-130-56-30.static.kgpt.tn.charter.com [75.130.56.30]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id D10C42D4 for ; Thu, 3 Nov 2011 12:48:30 -0700 (PDT) Message-ID: <4EB2F00D.1010708@pcbsd.org> Date: Thu, 03 Nov 2011 15:48:29 -0400 From: Kris Moore User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-desktop@freebsd.org X-Enigmail-Version: undefined Content-Type: multipart/mixed; boundary="------------010706080309000009080209" Subject: CTF bsd.pbi.mk X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 20:08:11 -0000 This is a multi-part message in MIME format. --------------010706080309000009080209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Since we are so close to 9.0, I wanted to get some initial public testing on the "make pbi" functionality of the ports tree. Attached is the bsd.pbi.mk file, put that into /usr/ports/Mk/ and then edit /usr/ports/Mk/bsd.port.mk. Look for the line: .include "${PORTSDIR}/Mk/bsd.perl.mk and add above it: .include "${PORTSDIR}/Mk/bsd.pbi.mk" After doing this, you should be able to use the commands "make pbi" & "make clean-pbi". I would suggest starting on some small CLI app for testing, like cabextract, instead of trying libreoffice on the first go ;) After the build is finished, you will end up with a pbi file in the port directory ready to be installed with pbi_add. You'll also see a pbi/ directory created in your ports dir, which contains the structure for additional meta-data that I would love to find a way to integrate into the ports tree down the road, such as mime/desktop/menu/icons, etc. -- Kris Moore PC-BSD Software iXsystems --------------010706080309000009080209 Content-Type: text/plain; name="bsd.pbi.mk" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bsd.pbi.mk" # $Id$ # # Creates a PBI file from a port with just 'make pbi' # # _PBIMAKEPORT= pbi_makeport _PBICREATE= pbi_create _PBIDIR= pbi _PBICONF= ${_PBIDIR}/pbi.conf _PBIBUILDDIR= /usr/local/pbi/${PORTNAME}-${ARCH} .PHONY: check-pbimanager pbi pbi-makeport pbi-generate pbi-create \ clean-pbi clean-pbibuild _PBIMANAGER_PKG!=which pbi_info || ${TRUE} check-pbimanager: .if empty(_PBIMANAGER_PKG) @(cd ${PORTSDIR}/ports-mgmt/pbi-manager && ${MAKE} install clean) .endif pbi: pbi-generate pbi-generate: check-pbimanager @if [ ! -d ${PWD}/pbi ]; then \ ${ECHO_MSG} "===> Generating PBI for ${PORTNAME}"; \ ${MKDIR} ${_PBIDIR}; \ ${MKDIR} ${_PBIDIR}/resources ${_PBIDIR}/scripts \ ${_PBIDIR}/xdg-desktop ${_PBIDIR}/xdg-menu \ ${_PBIDIR}/xgd-mime; \ ${ECHO_CMD} "PBI_PROGNAME=\"${PORTNAME}\"" > ${_PBICONF};\ ${ECHO_CMD} "PBI_MAKEPORT=\"`echo ${PWD} | cut -d '/' -f4-`\"" >> ${_PBICONF};\ PROGWEB=`cat ${DESCR} | awk '/^WWW:/ { print $$2; }'`; \ ${ECHO_CMD} "PBI_PROGWEB=\"$${PROGWEB}\"" >> ${_PBICONF};\ ${ECHO_CMD} "PBI_PROGAUTHOR=\"The ${PORTNAME} team\"" \ >> ${_PBICONF}; \ ${ECHO_CMD} "PBI_UPDATEURL=\"http://update.pbidir.com\""\ >> ${_PBICONF}; \ ${ECHO_CMD} "export PBI_PROGNAME PBI_MAKEPORT " \ "PBI_PROGWEB " \ "PBI_PROGAUTHOR PBI_UPDATEURL " \ "PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS" \ >> ${_PBICONF}; \ fi @${ECHO_MSG} "==> Generating PBI file" @${_PBIMAKEPORT} -c `echo ${PWD}/${_PBIDIR}` -o `echo ${PWD}` `echo ${PWD} | cut -d '/' -f4-` clean-pbi: @${ECHO_MSG} "===> Cleaning PBI for ${PORTNAME}" @${RM} -rf ${_PBIDIR} --------------010706080309000009080209-- From owner-freebsd-desktop@FreeBSD.ORG Fri Nov 4 08:37:14 2011 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85FDD106564A for ; Fri, 4 Nov 2011 08:37:14 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 185F98FC0A for ; Fri, 4 Nov 2011 08:37:13 +0000 (UTC) Received: by wwp14 with SMTP id 14so3192703wwp.31 for ; Fri, 04 Nov 2011 01:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=6E9DOo1NLkAyTdVbf/o4yyt8OsT6rIR6bsuE6OtLDUU=; b=F+J6kFsXh5m4jFir1zOZkkszpgpHoFDrbR0DdWy1180k1tLuDH2dPWPNRc8Zg3yYq2 CQAgTCDginNyf4RLydR8HpDcywLH91lBK8ZnSyj4oAypWXtdiOqHDZmJ+y2iQ4183tMM JyZy6UlD7Cws3mNYz/1/C2FDXIc/PHSccg8so= Received: by 10.216.139.170 with SMTP id c42mr4013550wej.0.1320394345340; Fri, 04 Nov 2011 01:12:25 -0700 (PDT) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id gd6sm14662768wbb.1.2011.11.04.01.12.24 (version=SSLv3 cipher=OTHER); Fri, 04 Nov 2011 01:12:24 -0700 (PDT) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: freebsd-desktop@freebsd.org Date: Fri, 4 Nov 2011 09:12:19 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC1; KDE/4.7.2; amd64; ; ) References: <4EB2F00D.1010708@pcbsd.org> In-Reply-To: <4EB2F00D.1010708@pcbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4077228.0hhSNUdTDY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111040912.23022.avilla@freebsd.org> Cc: Subject: Re: CTF bsd.pbi.mk X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 08:37:14 -0000 --nextPart4077228.0hhSNUdTDY Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Thursday 03 November 2011 20:48:29 Kris Moore wrote: > After doing this, you should be able to use the commands "make pbi"=20 & > "make clean-pbi". I would suggest starting on some small CLI app for > testing, like cabextract, instead of trying libreoffice on the first go ;) $ sudo make pbi =3D=3D=3D> Generating PBI for cabextract =3D=3D> Generating PBI file usage: pbi_makeport [options] port Options: -B -- Build-only, do not run pbi_create when finished -c confdir -- PBI configuration meta-data directory -d portdir -- Use different ports dir (Default: /usr/ports) -k -- Keep build files, don't delete when finished -o outdir -- Where to place the finished PBI file -p prefix -- Specify alternate PBI Compile PREFIX --delbuild -- Delete existing build dirs if they exist --mkdebug -- Drop to debug shell if port make fails --tmpfs -- Use TMPFS for port WRKDIRPREFIX --no-prune -- Do not prune non REQUIREDBY ports --sign key -- Sign the PBI with specified openssl key =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla The right to be heard does not automatically include the right to be taken seriously. -- Hubert H. Humphrey --nextPart4077228.0hhSNUdTDY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk6znmYACgkQ3xiC6kQ1CossfAP/YLVB+CYSq7OrsB2AimFtbpix 8r8n0/toWuGegKZlMXNNS5OMW4OGQ+Hlzyjzqe9rN5JWxal1dvYS23eUsYzW+cAj i0Tg8z50tXK7U6lPfzzb9uKKEXuUh4LQpcH/BbO2JOgpqi0FCh8UK/3F/FM3Qgv7 8EidsLZX5UP8AXTtz7Y= =clJA -----END PGP SIGNATURE----- --nextPart4077228.0hhSNUdTDY-- From owner-freebsd-desktop@FreeBSD.ORG Fri Nov 4 13:26:58 2011 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6C011065815; Fri, 4 Nov 2011 13:26:58 +0000 (UTC) (envelope-from kris@pcbsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 5384F8FC15; Fri, 4 Nov 2011 13:26:58 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 279B09CA; Fri, 4 Nov 2011 06:26:58 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 87986-04; Fri, 4 Nov 2011 06:26:58 -0700 (PDT) Received: from [192.168.0.186] (75-130-56-30.static.kgpt.tn.charter.com [75.130.56.30]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id A77459C6; Fri, 4 Nov 2011 06:26:57 -0700 (PDT) Message-ID: <4EB3E820.8070109@pcbsd.org> Date: Fri, 04 Nov 2011 09:26:56 -0400 From: Kris Moore User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: Alberto Villa References: <4EB2F00D.1010708@pcbsd.org> <201111040912.23022.avilla@freebsd.org> In-Reply-To: <201111040912.23022.avilla@freebsd.org> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-desktop@freebsd.org Subject: Re: CTF bsd.pbi.mk X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 13:26:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/04/2011 04:12, Alberto Villa wrote: > On Thursday 03 November 2011 20:48:29 Kris Moore wrote: >> After doing this, you should be able to use the commands "make pbi" > & >> "make clean-pbi". I would suggest starting on some small CLI app for >> testing, like cabextract, instead of trying libreoffice on the first go ;) > > $ sudo make pbi > ===> Generating PBI for cabextract > ==> Generating PBI file > usage: pbi_makeport [options] port > > Options: > -B -- Build-only, do not run pbi_create when finished > -c confdir -- PBI configuration meta-data directory > -d portdir -- Use different ports dir (Default: /usr/ports) > -k -- Keep build files, don't delete when finished > -o outdir -- Where to place the finished PBI file > -p prefix -- Specify alternate PBI Compile PREFIX > --delbuild -- Delete existing build dirs if they exist > --mkdebug -- Drop to debug shell if port make fails > --tmpfs -- Use TMPFS for port WRKDIRPREFIX > --no-prune -- Do not prune non REQUIREDBY ports > --sign key -- Sign the PBI with specified openssl key Interesting, can you update your version of port-mgmt/pbi-manager? If that doesn't work does running outside of sudo make a difference? - -- Kris Moore PC-BSD Software iXsystems -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOs+ggAAoJEH/cIgwwV3zXm/UIAOZqn7UI3vV/3e9sBxy7+otb nqzagRcnyT/2nhZRM/O5D+YmRWsRr5lwAqtyNBNqJuWCk/3dAUuYPRQcwDTpPafq GNpp+LSXg3h44YNCrcmHdf1GMuTY47MR8kjMI65nASKA4c6x4iogz/smSfq1D1xz 8ZNAd4dCxHOZQigvNsG7g8C3foa4zfCunOfPkm9T0jYDqEwjorNn375YryS2sXi9 wSBJYbAdi7ONnWD3IXlrzvUkfAX63AF4FayNbyekqjOWlmYaKgxOXtyRrpS8yP+0 7zLu2wMGnxxYQQ6abCK08it/6XS25pK7WFBvP2aezdDsDPWMmQq3VOGG716LONk= =Z267 -----END PGP SIGNATURE----- From owner-freebsd-desktop@FreeBSD.ORG Fri Nov 4 13:32:44 2011 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AAFA106566C for ; Fri, 4 Nov 2011 13:32:44 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id EFC8F8FC1F for ; Fri, 4 Nov 2011 13:32:43 +0000 (UTC) Received: by eyd10 with SMTP id 10so2778902eyd.13 for ; Fri, 04 Nov 2011 06:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=l720vnbtjihzrSr7YnUgUwbRiHlxgxICdK2JpBr3om4=; b=Mk+Z2yzpiQExOts4PCbnRTFTHfIkmH5OlrdCwwTio4bqsDCEMrRL6nk39x5wVUNTH1 3XLHzUtMaT9FLzZ8E1XzmnIVlWCRytfxKYrhEFPKUa9D/4/FMKhjHiQEXZwFj+pCT3Vm c/2Nqgv260SaQR+VFcDcrY89T42l7Y/zIM6bU= Received: by 10.180.20.134 with SMTP id n6mr602845wie.49.1320413562366; Fri, 04 Nov 2011 06:32:42 -0700 (PDT) Received: from woodstock.peanuts (wifinat-16.polito.it. [130.192.232.16]) by mx.google.com with ESMTPS id dn5sm296760wib.4.2011.11.04.06.32.41 (version=SSLv3 cipher=OTHER); Fri, 04 Nov 2011 06:32:41 -0700 (PDT) Sender: Alberto Villa From: Alberto Villa Organization: The FreeBSD Project To: Kris Moore Date: Fri, 4 Nov 2011 14:32:35 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC1; KDE/4.7.2; amd64; ; ) References: <4EB2F00D.1010708@pcbsd.org> <201111040912.23022.avilla@freebsd.org> <4EB3E820.8070109@pcbsd.org> In-Reply-To: <4EB3E820.8070109@pcbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13901027.6Z4oDvu7jd"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111041432.38852.avilla@freebsd.org> Cc: freebsd-desktop@freebsd.org Subject: Re: CTF bsd.pbi.mk X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 13:32:44 -0000 --nextPart13901027.6Z4oDvu7jd Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Friday 04 November 2011 14:26:56 Kris Moore wrote: > Interesting, can you update your version of port-mgmt/pbi-manager? It is at 0.9.5 already. > If > that doesn't work does running outside of sudo make a difference? It does (the checkout failed due to a firewall, I'll test it again at home): # make pbi =3D=3D=3D> Generating PBI for cabextract =3D=3D> Generating PBI file Building the PBI chroot environment... This may take a while... Using svn://svn.freebsd.org/base/head for sources Assuming a BETA|RC or rarely used FreeBSD version. Using CURRENT! Checking out FreeBSD sources from svn://svn.freebsd.org/base/head pbi_makeport: Subversion checkout failed! Logfile saved:=20 /usr/pbi/.buildWorldLog *** Error code 255 Stop in /usr/ports/archivers/cabextract. Why does it require the SVN checkout, by the way? I'm already tracking=20 9-stable (a "rarely used FreeBSD version"?) in /usr/src... =2D-=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla He was so narrow-minded he could see through a keyhole with both=20 eyes. --nextPart13901027.6Z4oDvu7jd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iJwEAAECAAYFAk6z6XYACgkQ3xiC6kQ1CoviFgP/UuJDxddO7hlWYFNdfJKs1atD yLxCMrx680Jb3t+i7VNWEW2uBhO+Rd4KRmoH2wXhthd5geKf7/O87FDlGtgIybh1 ZMbAeSDuQnqZttfyIe2E1PVva0ziHsxgGFRpnq+eNi0vrWg7c+cBhJQmKdppKdTF QOz77UdhWIzbcS+NDdQ= =5F1v -----END PGP SIGNATURE----- --nextPart13901027.6Z4oDvu7jd--