DragonFly BSD
DragonFly users List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: No package installation method works

To: Torbjorn Granlund <tg@xxxxxxxxxx>
From: Sascha Wildner <saw@xxxxxxxxx>
Date: Wed, 20 Oct 2010 22:13:01 +0200

On 10/20/2010 21:54, Torbjorn Granlund wrote:
A long term *BSD user, I decided to extend our GNU package nightly test
system setup with Dragonfly BSD.  This is an install under
virtualisation (qemu or Xen).

The actual install went smoothly, but the package install have failed

I found http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/ and have
followed the various methods suggested there.  None works for me.

# uname -a
DragonFly biko-dflybsd64.gmplib.org 2.6-RELEASE DragonFly v2.6.3-RELEASE #10: Mon May  3 09:57:53 PDT 2010     root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src-misc/sys/X86_64_GENERIC  x86_64

Method 1:

     # pkg_radd bash
     pkg_add: Error: package `bash-4.1nb1' was built with a newer pkg_install version
     pkg_add: 1 package addition failed

(As far as I can tell, I am using the latest release of DragonFly.  And
even if I didn't, shouldn't it be possible to install a package with the
existing tools?)

Yea, it's an issue. I know there is a workaround, but I forgot it at the moment. The real solution would be to provide packages that work for 2.6.3.

Method 2:

     # cd /usr
     # make pkgsrc-create
     If problems occur you may have to rm -rf pkgsrc and try again.

     mkdir -p /usr/pkgsrc
     cd /usr/pkgsrc&&  git init
     Initialized empty Git repository in /usr/pkgsrc/.git/
     cd /usr/pkgsrc&&   git remote add origin git://git.dragonflybsd.org/pkgsrc.git
     cd /usr/pkgsrc&&  git fetch origin
     fatal: The remote end hung up unexpectedly
     *** Error code 128

Stop in /usr.

(This is not a temporary problem. I retried this several consecutive days.)

Yes, /usr/Makefile was changed, and it was MFC'd to the 2.6 branch but the ISO is older and we have no ISO reflecting the latest on the 2.6 branch. You can take the /usr/Makefile from here:


which should work.

Method 3 (from docs/handbook/handbook-pkgsrc-sourcetree-using/):

     # cd /usr
     # cvs -d anoncvs@anoncvs.us.netbsd.org:/cvsroot co pkgsrc
     # cd shells/bash
     # make
     Unknown modifier '!'

Unknown modifier '!'

Unknown modifier '!'

     "../../mk/bsd.prefs.mk", line 717: if-less endif
     Unknown modifier 'u'

Variable PKG_OPTIONS is recursive.

(It is not my typo to get netbsd's code.  This is what I am instructed
to do by the DragonFly web at the directory indicated.)

The problem here is that you are using make instead of bmake (which needs to be used for pkgsrc things).


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]