Some questions about pkgng

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Some questions about pkgng

Postby ORTO-DOX » 08 Feb 2013, 09:37

Hi all!
I have a questions with new generation package manager pkgng. Maybe I'm do something terrible wrong and now I'm in stuck.
I have FreeBSD 9.1-PRERELEASE #0: Thu Sep 6. First of all I'm proceed steps from [FILE]/usr/ports/UPDATING[/FILE] to date 20121010. After that I'm [FILE]portupgrade -ak[/FILE] (and all notes from UPDATING 10.11.2012 to 01.02.2013)

All proceeds ok, and there is new KDE in ports tree appears.
I'm do
[cmd=#]pkg_deinstall -f ...[/cmd] as notes in UPDATING and try to [FILE]portupgrade -ak[/FILE]
I get error:
Code: Select all
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... USING PKGNG
- 1086 packages found (-0 +0)  done]
USING PKGNG
Stale dependency: kde-4.8.4 --> kdenetwork-4.8.4_1 -- manually run 'pkgdb -F' to fix, or specify -O to force.

I'm try [FILE]pkgdb -F[/FILE]:
Code: Select all
USING PKGNG
pkgdb -F not supported with PKGNG yet. Use 'pkg check' directly.

After that I'm read [pman=8]pkg-check[/pman] and try [FILE]pkg check -d -a[/FILE]:
Code: Select all
x11/kde4 has a missing dependency: x11/kde4-runtime
x11/kde4 has a missing dependency: x11/kde4-workspace
x11/kde4 has a missing dependency: multimedia/kdemultimedia4
x11/kde4 has a missing dependency: net/kdenetwork4
x11-themes/kdeartwork4 has a missing dependency: x11/kde4-workspace
deskutils/kdeplasma-addons has a missing dependency: x11/kde4-workspace
x11-clocks/kdetoys4 has a missing dependency: x11/kde4-workspace

>>> Missing package dependencies were detected.
>>> Found 4 issue(s) in total with your package database.

pkg: Package 'x11/kde4-runtime' was not found in the repositories
pkg: Package 'x11/kde4-workspace' was not found in the repositories
pkg: Package 'multimedia/kdemultimedia4' was not found in the repositories
pkg: Package 'net/kdenetwork4' was not found in the repositories

>>> Unable to find packages for installation.

After that I don't understand what I need to do and try [FILE]pkg update[/FILE] with such [FILE]pkg.conf[/FILE]:
Code: Select all
PACKAGESITE         : http://pkg.freebsd.org/${ABI}/latest

And I get error:
Code: Select all
Updating repository catalogue
pkg: http://pkg.freebsd.org/freebsd:9:x86:64/latest/repo.txz: No address record


After that I'm see that in [FILE]/usr/ports/UPDATING[/FILE] note about migrating to [FILE]pkgng[/FILE] related to FreeBSD-CURRENT and now I don't understand how can I solve problems and what I need to do.

Please help. If it possible, how can I migrate to old-style ports from that new generation package system?
User avatar
ORTO-DOX
Junior Member
 
Posts: 74
Joined: 24 Oct 2012, 07:24

Postby SirDice » 08 Feb 2013, 09:43

There currently is no official [file]PKGNG[/file] repository.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby ORTO-DOX » 08 Feb 2013, 09:47

What I need to do now?
Or for solve problem with missing dependencies, or for reverting to old ports management.
I think it my mistake to migrate to pkgng not carefully seeing that it needed for -Current, but I do this.
User avatar
ORTO-DOX
Junior Member
 
Posts: 74
Joined: 24 Oct 2012, 07:24

Postby kpa » 08 Feb 2013, 09:48

The stale dependencies are a [port]ports-mgmt/portupgrade[/port] problem, not directly related to PKGNG:

https://github.com/pkgtools/pkgtools/issues/44

http://lists.freebsd.org/pipermail/freebsd-ports/2012-December/080141.html
kpa
MFC'd
 
Posts: 3403
Joined: 05 Jul 2010, 13:19
Location: People's Technocratic Republic of Finland

Postby ORTO-DOX » 08 Feb 2013, 09:51

kpa thanks!
Trying to [FILE]portupgrade -akO[/FILE], I'll write here about results when it ends.
User avatar
ORTO-DOX
Junior Member
 
Posts: 74
Joined: 24 Oct 2012, 07:24

Postby andersbo87 » 26 Feb 2013, 13:26

SirDice wrote:There currently is no official [file]PKGNG[/file] repository.


Do you know if there are any plans to add such an official PKGNG repository? If so, when?
andersbo87
Junior Member
 
Posts: 39
Joined: 23 Jan 2012, 19:11
Location: Sarpsborg, Norway

Postby SirDice » 26 Feb 2013, 13:29

andersbo87 wrote:Do you know if there are any plans to add such an official PKGNG repository? If so, when?


Yes, as far as I know it's going to be the default for 10.0. No idea about the timeframe though. It does work rather well if you set up your own repository.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby andersbo87 » 26 Feb 2013, 13:42

SirDice wrote:Yes, as far as I know it's going to be the default for 10.0. No idea about the timeframe though. It does work rather well if you set up your own repository.


OK, thanks. :D By setting up one's local repository, do you mean pkg create -a?
andersbo87
Junior Member
 
Posts: 39
Joined: 23 Jan 2012, 19:11
Location: Sarpsborg, Norway

Postby SirDice » 26 Feb 2013, 13:47

andersbo87 wrote:OK, thanks. :D By setting up one's local repository, do you mean pkg create -a?


Yes, that should work too. But I meant creating your own packages from ports directly and using [file]pkg repo[/file]. You might want to check out [port]ports-mgmt/poudriere[/port] and [port]ports-mgmt/tinderbox[/port], both should support [FILE]pkgng[/FILE].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby vdubgeek » 26 Feb 2013, 16:35

PC-BSD now has a pkgng repository, for testing purposes. I have tried this on a couple servers, and it appears to work well. The following link gives instructions for configuring to use their repository with FreeBSD. I am only using this to install pkg's, and did not use the instructions to convert to PC-BSD

http://wiki.pcbsd.org/index.php/Turn_FreeBSD_into_PC-BSD
User avatar
vdubgeek
Junior Member
 
Posts: 13
Joined: 05 Apr 2012, 20:49
Location: Grayslake, Illinois USA

Postby andersbo87 » 26 Feb 2013, 21:05

SirDice wrote:Yes, that should work too. But I meant creating your own packages from ports directly and using [file]pkg repo[/file]. You might want to check out [port]ports-mgmt/poudriere[/port] and [port]ports-mgmt/tinderbox[/port], both should support [FILE]pkgng[/FILE].


Thanks for the tip. I'll certainly try [FILE]pkg repo[/FILE] out and see how it works, as well as [port]ports-mgmt/poudriere[/port] and [port]ports-mgmt/tinderbox[/port]. :)
andersbo87
Junior Member
 
Posts: 39
Joined: 23 Jan 2012, 19:11
Location: Sarpsborg, Norway


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: masayoshi and 1 guest