pkgsrc question

Ezra Drummond ezra at cwjamaica.com
Thu Mar 22 18:04:11 PDT 2007


Kevin L. Kane wrote:
Based on what i've been reading i should be able to create a binary
package of something after its installed, however if i do 'bmake
package' after i already did 'bmake install' it fails with errors, and
the only way to fix this is to 'pkg_delete <package>' and then do
'bmake package'(which not only creates the binary package but installs
as well and will fail to create the binary package if it cannot
install).  Is this normal, the documentation I look at for netbsd
seems to suggest that i can cd into a package dir, then do this:
bmake
bmake install
bmake package
however on dfly that same sequence results in breakage, heres some
example output:
prometheus# cd /usr/pkgsrc/misc/screen
prometheus# bmake install
LOTS OF OUTPUT SCREEN INSTALLS WORKS FINE then:

prometheus# bmake package
WARNING: [depends.mk] Unknown object format for installed package
digest-20050731
=> Required installed package digest>=20010302: digest-20050731 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Installing for screen-4.0.3
ERROR: screen-4.0.3 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete screen-4.0.3" and "/usr/pkg/bin/bmake reinstall"
ERROR:       to upgrade properly
ERROR:     - "/usr/pkg/bin/bmake update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/usr/pkg/bin/bmake replace" to replace only the package 
without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/misc/screen
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/misc/screen
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/misc/screen
prometheus#
Any thoughts?

Install /usr/pkgsrc/pkgtool/pkg_tarup and then do a man pkg_tarup to 
learn how to use it.





More information about the Users mailing list