making packages
I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer?
Re: making packages
On Fri, May 11, 2012 at 3:15 PM, Dimitry T dimitryr...@hotmail.com wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? IIRC make package-depends should do the trick. -- chs,
Re: making packages
make package-depends won't work, with make package depends give same results. From: christer.solsko...@gmail.com Date: Fri, 11 May 2012 15:29:49 +0200 Subject: Re: making packages To: dimitryr...@hotmail.com CC: misc@openbsd.org On Fri, May 11, 2012 at 3:15 PM, Dimitry T dimitryr...@hotmail.com wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? IIRC make package-depends should do the trick. -- chs,
Re: making packages
On Friday 11 May 2012 15:15:23 Dimitry T wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? Do you have those dependencies already installed on the build machine before making that package? If so, they won't be build. If you make the packages on a clean system, all deps will be build. Ofcourse this includes the build-depends. gr Renzo
Re: making packages
On Fri, May 11, 2012 at 05:24:43PM +0200, Renzo Fabriek wrote: On Friday 11 May 2012 15:15:23 Dimitry T wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? Do you have those dependencies already installed on the build machine before making that package? If so, they won't be build. If you make the packages on a clean system, all deps will be build. Ofcourse this includes the build-depends. If the dependencies are already installed, you can recreate the package from /var/db/pkg. See pkg_create(1) In general, when you want to build several things at once, use dpb(1). In particular, it *will* build all packages.
Re: making packages
I use make install on port xfce4-session, and after that make package. Date: Fri, 11 May 2012 17:39:51 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 05:24:43PM +0200, Renzo Fabriek wrote: On Friday 11 May 2012 15:15:23 Dimitry T wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? Do you have those dependencies already installed on the build machine before making that package? If so, they won't be build. If you make the packages on a clean system, all deps will be build. Ofcourse this includes the build-depends. If the dependencies are already installed, you can recreate the package from /var/db/pkg. See pkg_create(1) In general, when you want to build several things at once, use dpb(1). In particular, it *will* build all packages.
Re: making packages
Can pkg_create -Pf /var/db/pkg/xfce4-session-4.8.2 be enought? From: dimitryr...@hotmail.com To: es...@nerim.net; rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages Date: Fri, 11 May 2012 16:25:39 + I use make install on port xfce4-session, and after that make package. Date: Fri, 11 May 2012 17:39:51 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 05:24:43PM +0200, Renzo Fabriek wrote: On Friday 11 May 2012 15:15:23 Dimitry T wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? Do you have those dependencies already installed on the build machine before making that package? If so, they won't be build. If you make the packages on a clean system, all deps will be build. Ofcourse this includes the build-depends. If the dependencies are already installed, you can recreate the package from /var/db/pkg. See pkg_create(1) In general, when you want to build several things at once, use dpb(1). In particular, it *will* build all packages.
Re: making packages
On Friday 11 May 2012 18:25:39 Dimitry T wrote: I use make install on port xfce4-session, and after that make package. make install already builds the package. Which offcourse is needed to do the install part. As for pkg_create. The manual explains that very well, it even provides an example. I don't repeat it here. Just look a bit further. But as far as I can see you'll have to do that for every package. Still much faster than compiling. Date: Fri, 11 May 2012 17:39:51 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 05:24:43PM +0200, Renzo Fabriek wrote: On Friday 11 May 2012 15:15:23 Dimitry T wrote: I want to create packages from compiled port, copy to usb and install on another computer. After trying with make package in xfce4-session port tree i got only one package. How to include all dependencies and all needed to install the application on another computer? Do you have those dependencies already installed on the build machine before making that package? If so, they won't be build. If you make the packages on a clean system, all deps will be build. Ofcourse this includes the build-depends. If the dependencies are already installed, you can recreate the package from /var/db/pkg. See pkg_create(1) In general, when you want to build several things at once, use dpb(1). In particular, it *will* build all packages.
Re: making packages
On Fri, May 11, 2012 at 07:48:15PM +0200, Renzo Fabriek wrote: As for pkg_create. The manual explains that very well, it even provides an example. I don't repeat it here. Just look a bit further. But as far as I can see you'll have to do that for every package. Still much faster than compiling. Well, shell is good, e.g., for f in /var/db/pkg/*/+CONTENTS do pkg_create -f $f done (generally done as root if any file in any package may be unreadable as normal user).
Re: making packages
Thanks on shellcode. Ofc i try example in man page pkg_create -f /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS but that create only one xfce4-session package without depends. This shellcode do same as pkg_create -f /var/db/pkg/*/+CONTENTS, but i want only xfce4-session. Date: Fri, 11 May 2012 21:29:59 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 07:48:15PM +0200, Renzo Fabriek wrote: As for pkg_create. The manual explains that very well, it even provides an example. I don't repeat it here. Just look a bit further. But as far as I can see you'll have to do that for every package. Still much faster than compiling. Well, shell is good, e.g., for f in /var/db/pkg/*/+CONTENTS do pkg_create -f $f done (generally done as root if any file in any package may be unreadable as normal user).
Re: making packages
On Friday 11 May 2012 22:12:36 Dimitry T wrote: Thanks on shellcode. Ofc i try example in man page pkg_create -f /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS but that create only one xfce4-session package without depends. This shellcode do same as pkg_create -f /var/db/pkg/*/+CONTENTS, but i want only xfce4-session. I think I found a way with pkg_add and PKG_CACHE. Provided that you have made all packages installed on your current system. (assuming all needed packages are installed) Please read the pkg_add manual for the explanation of -U and PKG_CACHE. I'm doing homework which you could do yourself. sudo pkg add -U your_package Before you do that you have set export PKG_CACHE=/the/packages/you/need/ After that you find the necesary packages in /the/packages/you/need/. Date: Fri, 11 May 2012 21:29:59 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 07:48:15PM +0200, Renzo Fabriek wrote: As for pkg_create. The manual explains that very well, it even provides an example. I don't repeat it here. Just look a bit further. But as far as I can see you'll have to do that for every package. Still much faster than compiling. Well, shell is good, e.g., for f in /var/db/pkg/*/+CONTENTS do pkg_create -f $f done (generally done as root if any file in any package may be unreadable as normal user).
Re: making packages
Ok, I obviously made bba mess. I know how to install packages, but don't know how to make it. This is full story. On one computer i compile from ports xfce4-session and some other ports. I want to make package for xfce4-session, exaile and few another who are already compiled from ports with make install. After that i will copy packages to usb and install on another computers. Because i wanted to practice and make packages I deleted all existing in /usr/ports/packages. If i try with make package or pkg_create -f /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS I get just one package xfce4-session-4.8.2p2.tgz without depends. Sorry and thanks on homework i try to learn, but only a few days ago i arrived in bsd world. From: rfabr...@nerdshack.com To: misc@openbsd.org Subject: Re: making packages Date: Fri, 11 May 2012 23:21:28 +0200 On Friday 11 May 2012 22:12:36 Dimitry T wrote: Thanks on shellcode. Ofc i try example in man page pkg_create -f /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS but that create only one xfce4-session package without depends. This shellcode do same as pkg_create -f /var/db/pkg/*/+CONTENTS, but i want only xfce4-session. I think I found a way with pkg_add and PKG_CACHE. Provided that you have made all packages installed on your current system. (assuming all needed packages are installed) Please read the pkg_add manual for the explanation of -U and PKG_CACHE. I'm doing homework which you could do yourself. sudo pkg add -U your_package Before you do that you have set export PKG_CACHE=/the/packages/you/need/ After that you find the necesary packages in /the/packages/you/need/. Date: Fri, 11 May 2012 21:29:59 +0200 From: es...@nerim.net To: rfabr...@nerdshack.com CC: misc@openbsd.org Subject: Re: making packages On Fri, May 11, 2012 at 07:48:15PM +0200, Renzo Fabriek wrote: As for pkg_create. The manual explains that very well, it even provides an example. I don't repeat it here. Just look a bit further. But as far as I can see you'll have to do that for every package. Still much faster than compiling. Well, shell is good, e.g., for f in /var/db/pkg/*/+CONTENTS do pkg_create -f $f done (generally done as root if any file in any package may be unreadable as normal user).
Re: making packages out of the portstree
okay, i updated all versions to recent -current and now pkg_add works like expected; the versions were too different, obviously. sorry for the noise. Marc Espie schrieb: On Wed, Oct 12, 2005 at 05:04:56PM +0200, Marc Peters wrote: hi all, i wanted to install a package on an box, which i built out of the portstree via make package. everything goes fine and the package is available in /usr/ports/packages/i386/cdrom/ and ../ftp/. i copied the .tgz to the machine, where i wanted to install it on, but it failed with the following error: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi i looked untarred it and looked through +CONTENTS and found following lines regarding @pkgpath: @pkgpath sysutils/nut,no_cgi @pkgpath sysutils/nut,snmp @pkgpath sysutils/nut,no_cgi,snmp in other packages' +CONTENT, e.g. wget from ftp.openbsd.org, there are no lines referring to this pkgpath. am i missing something in the buildprocess for a package? i read the man page of bsd.port.mk(5), ports(7) and pkg_add(1) but didn't find anything regarding this element and how to turn this of in the process of make package and i didn't find anything in the archives of marc.theaimsgroup.com regarding this problem. @pkgpath is a fairly recent addition to the package tools. The stuff on the machines you built packages on obviously knows about it, since pkg_create was able to create the packages. The machines you try to add the package on doesn't know about it. -stable vs. -current looks like the more likely explanation. You won't find a way to turn this off. The OpenBSD ports tree doesn't work that way, you don't turn stuff off. @pkgpath is a very useful addition for the update process...
making packages out of the portstree
hi all, i wanted to install a package on an box, which i built out of the portstree via make package. everything goes fine and the package is available in /usr/ports/packages/i386/cdrom/ and ../ftp/. i copied the .tgz to the machine, where i wanted to install it on, but it failed with the following error: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi i looked untarred it and looked through +CONTENTS and found following lines regarding @pkgpath: @pkgpath sysutils/nut,no_cgi @pkgpath sysutils/nut,snmp @pkgpath sysutils/nut,no_cgi,snmp in other packages' +CONTENT, e.g. wget from ftp.openbsd.org, there are no lines referring to this pkgpath. am i missing something in the buildprocess for a package? i read the man page of bsd.port.mk(5), ports(7) and pkg_add(1) but didn't find anything regarding this element and how to turn this of in the process of make package and i didn't find anything in the archives of marc.theaimsgroup.com regarding this problem. can anyone point me in the right direction? tia, marc
Re: making packages out of the portstree
Hello! On Wed, Oct 12, 2005 at 05:04:56PM +0200, Marc Peters wrote: hi all, i wanted to install a package on an box, which i built out of the portstree via make package. everything goes fine and the package is available in /usr/ports/packages/i386/cdrom/ and ../ftp/. i copied the .tgz to the machine, where i wanted to install it on, but it failed with the following error: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi I'd guess you're using a newer OpenBSD installation to build the port/package compared to the installation you try to pkg_add the package. [...] Kind regards, Hannah.
Re: making packages out of the portstree
On 10/12/05, Marc Peters [EMAIL PROTECTED] wrote: hi all, i wanted to install a package on an box, which i built out of the portstree via make package. everything goes fine and the package is available in /usr/ports/packages/i386/cdrom/ and ../ftp/. i copied the .tgz to the machine, where i wanted to install it on, but it failed with the following error: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi can anyone point me in the right direction? You must be using the current port tree with a stable release. This does not work. Eric.
Re: making packages out of the portstree
Quoting Marc Peters [EMAIL PROTECTED]: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi Make sure all your systems are running the same version of OpenBSD, and you're not using -current ports with a -stable/-release OS.
Re: making packages out of the portstree
On Wed, Oct 12, 2005 at 05:04:56PM +0200, Marc Peters wrote: hi all, i wanted to install a package on an box, which i built out of the portstree via make package. everything goes fine and the package is available in /usr/ports/packages/i386/cdrom/ and ../ftp/. i copied the .tgz to the machine, where i wanted to install it on, but it failed with the following error: # pkg_add nut-2.0.0p0.tgz Unknown element: @pkgpath sysutils/nut,no_cgi i looked untarred it and looked through +CONTENTS and found following lines regarding @pkgpath: @pkgpath sysutils/nut,no_cgi @pkgpath sysutils/nut,snmp @pkgpath sysutils/nut,no_cgi,snmp in other packages' +CONTENT, e.g. wget from ftp.openbsd.org, there are no lines referring to this pkgpath. am i missing something in the buildprocess for a package? i read the man page of bsd.port.mk(5), ports(7) and pkg_add(1) but didn't find anything regarding this element and how to turn this of in the process of make package and i didn't find anything in the archives of marc.theaimsgroup.com regarding this problem. @pkgpath is a fairly recent addition to the package tools. The stuff on the machines you built packages on obviously knows about it, since pkg_create was able to create the packages. The machines you try to add the package on doesn't know about it. -stable vs. -current looks like the more likely explanation. You won't find a way to turn this off. The OpenBSD ports tree doesn't work that way, you don't turn stuff off. @pkgpath is a very useful addition for the update process...