upgrading devel/pkgconfig to devel/pkgconf

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

upgrading devel/pkgconfig to devel/pkgconf

Postby foghorn » 27 Jul 2012, 12:22

Today I updated my system with portsnap fetch update; [FILE]portmaster -a[/FILE], but it ran into an error:
Code: Select all
pkgconf-0.8.3 conflicts with installed package(s):
      pkg-config-0.25_1
      They install files into the same place.
      Please remove them first with pkg_delete(1).

[man=1]pkg_delete[/man] didn't work due to a mass of dependencies, so I went to google and came up with this: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg43002.html
It tels me to "see UPDATING for instructions". I have no idea where to find this.

So I googled some more and came accross something telling me to run [file]portmaster -o devel/pkg-config devel/pkgconf[/file]
Which outputs:
Code: Select all
===>>> The first argument to -o must be a directory in /usr/ports

Indeed, the [port]devel/pkg-config[/port] directory does not exist any more, presumably from updating my ports tree earlier. The [FILE]pkgconf[/FILE] folder is there though, as expected.

How do I go from here?
foghorn
Junior Member
 
Posts: 6
Joined: 17 Jul 2010, 15:38

Postby phoenix » 27 Jul 2012, 12:30

Read [file]/usr/ports/UPDATING[/file], which should be the first you do after updating the ports tree.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby gkontos » 27 Jul 2012, 12:40

From [FILE]/usr/ports/UPDATING[/FILE]:

Code: Select all
20120726:
  AFFECTS: users of devel/pkg-config
  AUTHOR: bapt@FreeBSD.org

  devel/pkg-config has been replaced by devel/pkgconf

  # portmaster -o devel/pkgconf devel/pkg-config
  or
  # portupgrade -o devel/pkgconf devel/pkg-config


Unfortunately, this didn't work for me either. The solution was to delete the package and reinstall it:

[CMD=""]# pkg_delete -f pkg-config[/CMD]
[CMD=""]# cd /usr/ports/devel/pkgconf && make install clean[/CMD]
Powered by BareBSD
User avatar
gkontos
Senior Member
 
Posts: 1370
Joined: 09 Dec 2009, 08:36
Location: Polidendri, GR

Postby kpa » 27 Jul 2012, 12:44

If nothing else works you can forcefully uninstall [FILE]pkg-config[/FILE], almost none of the ports that are depending on it now actually need it to work. There is ongoing work to strip those unnecessary run time dependencies to [FILE]pkg-config[/FILE]/[FILE]pkgconf[/FILE]
kpa
MFC'd
 
Posts: 3398
Joined: 05 Jul 2010, 13:19
Location: People's Technocratic Republic of Finland

Postby SirDice » 27 Jul 2012, 13:04

I've spoken to a few people on IRC and it seems the first version of [file]UPDATING[/file] had a slight error. It said to do:
[cmd=#]portmaster -o devel/pkg-config devel/pkgconf[/cmd]

But this is the wrong way around. It should be:
[cmd=#]portmaster -o devel/pkgconf devel/pkg-config[/cmd]

The [file]UPDATING[/file] file has been updated but you may still have the 'older' version with the error.
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: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby foghorn » 27 Jul 2012, 13:11

thanks everyone for the info, i think this should fix it.
foghorn
Junior Member
 
Posts: 6
Joined: 17 Jul 2010, 15:38

Postby ljboiler » 28 Jul 2012, 03:51

Using portupgrade, the upgrade will not work regardless of the order of the port names:
[cmd=#]portupgrade -v -o devel/pkgconf devel/pkg-config[/cmd] -> "None has been installed or upgraded"
[cmd=#]portupgrade -v -o devel/pkg-config devel/pkgconf[/cmd] -> "Port directory not found: devel/pkg-config"

Has anyone actually done the forced deinstall of old / install of new package?
ljboiler
Junior Member
 
Posts: 96
Joined: 10 Jun 2009, 23:21
Location: Saint Peters, MO, USA

Postby kpa » 28 Jul 2012, 04:01

[port]ports-mgmt/portmaster[/port] wants a package name as the second argument if there's no port directory anymore. I bet it's the same with [port]ports-mgmt/portupgrade[/port]

[CMD="#"]portupgrade -v -o devel/pkgconf pkg-config[/CMD]

By forced deinstall I meant something like:

[CMD="#"]pkg_delete -fx pkg-config[/CMD]
[CMD="#"]portmaster --check-depends[/CMD]

The second command would then ask if the dependencies to non existing [FILE]pkg-config[/FILE] should be kept, you would answer no.
kpa
MFC'd
 
Posts: 3398
Joined: 05 Jul 2010, 13:19
Location: People's Technocratic Republic of Finland

Postby gkontos » 28 Jul 2012, 15:35

ljboiler wrote:Has anyone actually done the forced deinstall of old / install of new package?


Read post#3
Powered by BareBSD
User avatar
gkontos
Senior Member
 
Posts: 1370
Joined: 09 Dec 2009, 08:36
Location: Polidendri, GR


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 3 guests