11d53 upgrading devel/pkgconfig to devel/pkgconf - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

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

Reply
 
Thread Tools Display Modes
  #1  
Old July 27th, 2012, 13:22
foghorn foghorn is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default upgrading devel/pkgconfig to devel/pkgconf

Today I updated my system with portsnap fetch update; portmaster -a, but it ran into an error:
Code:
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).
pkg_delete(1) 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-.../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 portmaster -o devel/pkg-config devel/pkgconf
Which outputs:
Code:
===>>> The first argument to -o must be a directory in /usr/ports
Indeed, the devel/pkg-config directory does not exist any more, presumably from updating my ports tree earlier. The pkgconf folder is there though, as expected.

How do I go from here?
Reply With Quote
  #2  
Old July 27th, 2012, 13:30
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 701 Times in 579 Posts
Default

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

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3  
Old July 27th, 2012, 13:40
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,264
Thanks: 42
Thanked 218 Times in 164 Posts
Default

From /usr/ports/UPDATING:

Quote:
Code:
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:

# pkg_delete -f pkg-config
# cd /usr/ports/devel/pkgconf && make install clean
__________________
Powered by BareBSD
Reply With Quote
  #4  
Old July 27th, 2012, 13:44
kpa kpa is offline
Senior Member
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 1,982
Thanks: 44
Thanked 460 Times in 390 Posts
Default

If nothing else works you can forcefully uninstall pkg-config, 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 pkg-config/pkgconf
Reply With Quote
  #5  
Old July 27th, 2012, 14:04
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

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

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

The UPDATING 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.
Reply With Quote
  #6  
Old July 27th, 2012, 14:11
foghorn foghorn is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks everyone for the info, i think this should fix it.
Reply With Quote
  #7  
Old July 28th, 2012, 04:51
ljboiler ljboiler is offline
Junior Member
 
Join Date: Jun 2009
Location: Saint Louis area, MO, USA
Posts: 10
Thanks: 2
Thanked 4 Times in 3 Posts
Default

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

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

Last edited by phoenix; July 28th, 2012 at 23:45. Reason: Please format your posts!
Reply With Quote
  #8  
Old July 28th, 2012, 05:01
kpa kpa is offline
Senior Member
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 1,982
Thanks: 44
Thanked 460 Times in 390 Posts
Default

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

# portupgrade -v -o devel/pkgconf pkg-config

By forced deinstall I meant something like:

# pkg_delete -fx pkg-config
# portmaster --check-depends

The second command would then ask if the dependencies to non existing pkg-config should be kept, you would answer no.
Reply With Quote
  #9  
Old July 28th, 2012, 16:35
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,264
Thanks: 42
Thanked 218 Times in 164 Posts
Default

Quote:
Originally Posted by ljboiler View Post
Has anyone actually done the forced deinstall of old / install of new package?
Read post#3
__________________
Powered by BareBSD
Reply With Quote
Reply

Tags
pkgconfig, ports update

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail upgrading devel/m4 juanjico Installation and Maintenance of FreeBSD Ports or Packages 2 April 27th, 2013 23:15
Using samba4-devel Johnny2Bad Web & Network Services 3 November 7th, 2012 18:05
devel/kBuild-devel (req. for VirtualBox) bbzz Installation and Maintenance of FreeBSD Ports or Packages 2 April 28th, 2012 16:56
[Solved] devel/gcc not building xibo Installation and Maintenance of FreeBSD Ports or Packages 3 April 1st, 2012 21:29
Where to get libjpeg-devel? fred6633 Installation and Maintenance of FreeBSD Ports or Packages 4 June 1st, 2009 11:40


All times are GMT +1. The time now is 05:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0