DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th October 2012
nico_h nico_h is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Thanked 0 Times in 0 Posts
Question question about updating/upgrading a port

Hello everyone,

I'm still relatively new to freebsd and I can't find the answer to one question : when I installed some ports (make install clean in the right directories) there was one that required fping as a dependency, so fping was also compiled and installed.

Before installing these ports (and fping) I read the UPDATING file where I found an info about fping ; I did exactly what was told there and everything looked good.

(Little) problem : now when I run pkg_version -v, it says :

Code:
fping+ipv6-2.4b2                    !   Comparison failed
fping-3.4                           =   up-to-date with port
If I run portmaster -a, it says it needs to reinstall fping, so I let it do that, at the end portmaster says everything was done successfully but if I run pkg_version -v again, it gives the same result.

I tried to change the config options (cd /usr/ports/net/fping && make config), added the ipv6 options, reinstalled, then removed the ipv6 option, reinstalled : no effect.

The problem doesn't look very bad to me, but still, I'm quite curious about what's wrong there with fping.

I don't know anymore where to look for, maybe the answer is simple and my research is wrong ? Thanks for any hint !

Have a nice day folks
Reply With Quote
  #2   (View Single Post)  
Old 29th October 2012
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,070
Thanked 198 Times in 156 Posts
Default

Can you post the output of this command:
% pkg_info -arR

This will show all dependencies for all your installed ports.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 30th October 2012
nico_h nico_h is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Thanked 0 Times in 0 Posts
Default

Thanks for your reply ! Hum, I guess the only interesting part is the one about fping (nevertheless I've put the complete output at the end of this post) :

Code:
Information for fping+ipv6-2.4b2:

Depends on:

Information for fping-3.4:

Depends on:
This shows that very strangely, fping doesn't seem to be required at all. I don't understand then where it comes from : I don't know this package and am absolutely sure I did not install it myself.

So, could just removing fping be the solution of the problem ? This shouldn't break anything, according to pkg_info. But if it was put there during the install process, then it could be a bad idea though ?

I've noticed that ping is on the system but not in the port (does it mean ping belongs to the "base system" ?).

If this could be useful, here is also the output of portmaster -l :
Code:
===>>> Root ports (No dependencies, not depended on)
===>>> cvsup-without-gui-16.1h_4
===>>> dmidecode-2.11
===>>> fping+ipv6-2.4b2
===>>> fping-3.4
===>>> libtool-2.4.2
===>>> ncftp-3.2.5
===>>> ntp-4.2.6p5_1
===>>> portmanager-0.4.1_9
===>>> portmaster-3.14_6
===>>> rsync-3.0.9_2
===>>> screen-4.0.3_14
===>>> smartmontools-6.0
===>>> 12 root ports

===>>> Trunk ports (No dependencies, are depended on)
===>>> autoconf-wrapper-20101119
===>>> automake-wrapper-20101119
===>>> libiconv-1.14
===>>> libpcap-1.3.0
===>>> libsigsegv-2.10
===>>> pcre-8.31_1
===>>> perl-5.14.2_2
===>>> pkgconf-0.8.9
===>>> pth-2.0.7
===>>> 9 trunk ports

===>>> Branch ports (Have dependencies, are depended on)
===>>> autoconf-2.69
===>>> gettext-0.18.1.1
===>>> libassuan-2.0.3
===>>> libgcrypt-1.5.0_1
===>>> libgpg-error-1.10
===>>> libidn-1.25
===>>> libksba-1.3.0
===>>> libsmi-0.4.8
===>>> m4-1.4.16_1,1
===>>> p5-Locale-gettext-1.05_3
===>>> popt-1.16
===>>> 11 branch ports

===>>> Leaf ports (Have dependencies, not depended on)
===>>> automake-1.12.4
===>>> bash-4.2.37
===>>> bison-2.5.1,1
===>>> gmake-3.82_1
===>>> gnupg-2.0.19_2
===>>> help2man-1.40.12
===>>> logrotate-3.7.9
===>>> lynx-2.8.7.2,1
===>>> proftpd-1.3.4b
===>>> tcpdump-4.3.0
===>>> vim-lite-7.3.669
===>>> wget-1.13.4_1
===>>> 12 leaf ports

===>>> 44 total installed ports
It also shows that fping (nor fping-ipv6) has nothing to do with any other port.


Here is the complete output of pkg_info -arR:

Code:
Information for autoconf-2.69:

Depends on:
Dependency: perl-5.14.2_2
Dependency: libsigsegv-2.10
Dependency: m4-1.4.16_1,1
Dependency: autoconf-wrapper-20101119
Required by:
automake-1.12.4



Information for autoconf-wrapper-20101119:

Depends on:
Required by:
autoconf-2.69
automake-1.12.4



Information for automake-1.12.4:

Depends on:
Dependency: perl-5.14.2_2
Dependency: libsigsegv-2.10
Dependency: m4-1.4.16_1,1
Dependency: automake-wrapper-20101119
Dependency: autoconf-wrapper-20101119
Dependency: autoconf-2.69

Information for automake-wrapper-20101119:
Depends on:
Required by:
automake-1.12.4



Information for bash-4.2.37:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1

Information for bison-2.5.1,1:

Depends on:
Dependency: libsigsegv-2.10
Dependency: m4-1.4.16_1,1
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1

Information for cvsup-without-gui-16.1h_4:

Depends on:

Information for dmidecode-2.11:

Depends on:

Information for fping+ipv6-2.4b2:

Depends on:

Information for fping-3.4:

Depends on:

Information for gettext-0.18.1.1:

Depends on:
Dependency: libiconv-1.14
Required by:
wget-1.13.4_1
gmake-3.82_1
p5-Locale-gettext-1.05_3
help2man-1.40.12
proftpd-1.3.4b
vim-lite-7.3.669
bison-2.5.1,1
libidn-1.25
bash-4.2.37
lynx-2.8.7.2,1
popt-1.16
logrotate-3.7.9
libgpg-error-1.10
libgcrypt-1.5.0_1
libksba-1.3.0
gnupg-2.0.19_2
libassuan-2.0.3



Information for gmake-3.82_1:
Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1


Information for gnupg-2.0.19_2:

Depends on:
Dependency: pth-2.0.7
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: libgpg-error-1.10
Dependency: libksba-1.3.0
Dependency: libgcrypt-1.5.0_1
Dependency: libassuan-2.0.3

Information for help2man-1.40.12:

Depends on:
Dependency: perl-5.14.2_2
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: p5-Locale-gettext-1.05_3

Information for libassuan-2.0.3:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: libgpg-error-1.10
Required by:
gnupg-2.0.19_2



Information for libgcrypt-1.5.0_1:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: libgpg-error-1.10
Required by:
gnupg-2.0.19_2



Information for libgpg-error-1.10:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Required by:
libgcrypt-1.5.0_1
libksba-1.3.0
gnupg-2.0.19_2
libassuan-2.0.3



Information for libiconv-1.14:

Depends on:
Required by:
gettext-0.18.1.1
gmake-3.82_1
help2man-1.40.12
p5-Locale-gettext-1.05_3
proftpd-1.3.4b
wget-1.13.4_1
vim-lite-7.3.669

bison-2.5.1,1
libidn-1.25
bash-4.2.37
lynx-2.8.7.2,1
popt-1.16
logrotate-3.7.9
libgpg-error-1.10
libgcrypt-1.5.0_1
libksba-1.3.0
gnupg-2.0.19_2
libassuan-2.0.3



Information for libidn-1.25:

Depends on:
Dependency: pkgconf-0.8.9
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Required by:
wget-1.13.4_1



Information for libksba-1.3.0:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: libgpg-error-1.10
Required by:
gnupg-2.0.19_2

Information for libpcap-1.3.0:

Depends on:
Required by:
tcpdump-4.3.0



Information for libsigsegv-2.10:

Depends on:
Required by:
m4-1.4.16_1,1
autoconf-2.69
automake-1.12.4
bison-2.5.1,1



Information for libsmi-0.4.8:

Depends on:
Dependency: pkgconf-0.8.9
Required by:
tcpdump-4.3.0



Information for libtool-2.4.2:

Depends on:

Information for logrotate-3.7.9:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: popt-1.16

Information for lynx-2.8.7.2,1:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1

Information for m4-1.4.16_1,1:

Depends on:
Dependency: libsigsegv-2.10
Required by:
autoconf-2.69
automake-1.12.4
bison-2.5.1,1



Information for ncftp-3.2.5:

Depends on:

Information for ntp-4.2.6p5_1:

Depends on:

Information for p5-Locale-gettext-1.05_3:

Depends on:
Dependency: perl-5.14.2_2
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Required by:
help2man-1.40.12



Information for pcre-8.31_1:

Depends on:
Required by:
proftpd-1.3.4b



Information for perl-5.14.2_2:

Depends on:
Required by:
autoconf-2.69
help2man-1.40.12
p5-Locale-gettext-1.05_3
automake-1.12.4



Information for pkgconf-0.8.9:

Depends on:
Required by:
libsmi-0.4.8
wget-1.13.4_1
libidn-1.25
tcpdump-4.3.0



Information for popt-1.16:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Required by:
logrotate-3.7.9



Information for portmanager-0.4.1_9:

Depends on:

Information for portmaster-3.14_6:

Depends on:

Information for proftpd-1.3.4b:

Depends on:
Dependency: pcre-8.31_1
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1

Information for pth-2.0.7:

Depends on:
Required by:
gnupg-2.0.19_2



Information for rsync-3.0.9_2:

Depends on:

Information for screen-4.0.3_14:

Depends on:

Information for smartmontools-6.0:

Depends on:

Information for tcpdump-4.3.0:

Depends on:
Dependency: libpcap-1.3.0
Dependency: pkgconf-0.8.9
Dependency: libsmi-0.4.8

Information for vim-lite-7.3.669:

Depends on:
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1

Information for wget-1.13.4_1:

Depends on:
Dependency: pkgconf-0.8.9
Dependency: libiconv-1.14
Dependency: gettext-0.18.1.1
Dependency: libidn-1.25
Reply With Quote
  #4   (View Single Post)  
Old 30th October 2012
nico_h nico_h is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Thanked 0 Times in 0 Posts
Default upgrade to pkgng

I did the upgrade, following the indications of UPDATING :

Code:
  # make -C /usr/ports/ports-mgmt/pkg install clean
  # make -C /usr/ports/ports-mgmt/portmaster config build deinstall install clean
  # echo 'WITH_PKGNG=yes' >> /etc/make.conf
  # pkg2ng
The only problem was at the end (pkg2ng output) :
Code:
!!! Some packages failed to register !!!
Failed packages:  fping-3.4
There was a more detailed message above about fping but the console I use has a little bug and I can't get this message back unfortunately...
Reply With Quote
  #5   (View Single Post)  
Old 30th October 2012
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

Not using pkg2ng yet.... fixes (such as your very first post) I think are harder to figure out with the use of the new pkg manager than v9's default (Unless someone puts up a flowchart with problems > solutions. OTOH I've not read all the man pages recently.)
Does the port actually work? In the meantime that is probably what matters...
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #6   (View Single Post)  
Old 30th October 2012
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by nico_h View Post
I did the upgrade, following the indications of UPDATING :

Code:
  # make -C /usr/ports/ports-mgmt/pkg install clean
  # make -C /usr/ports/ports-mgmt/portmaster config build deinstall install clean
  # echo 'WITH_PKGNG=yes' >> /etc/make.conf
  # pkg2ng
The only problem was at the end (pkg2ng output) :
Code:
!!! Some packages failed to register !!!
Failed packages:  fping-3.4
There was a more detailed message above about fping but the console I use has a little bug and I can't get this message back unfortunately...
I had problem with perl. I reinstalled with portmaster and was okay. I don't have any problem with new pkgng...
Reply With Quote
  #7   (View Single Post)  
Old 31st October 2012
nico_h nico_h is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Thanked 0 Times in 0 Posts
Default

I have no idea if fping works. I don't think I really need it. The install was done on a server by the provider so some things & settings and a little bit different from the "raw" install. I also have a "raw" freebsd on a local computer and I notice there is no fping installed on it. So I don't know what the fping on the server is for...

But it was a bad idea to switch directly to pkgng... Now the usual commands seem to work differently, for instance pkg_version -v give only one line :
Code:
fping-3.4                           =   up-to-date with port
pkg_info -arR only this one :
Code:
Information for fping-3.4:

Depends on:
EDIT: OK, all the pkg_* are replaced by pkg, see http://wiki.freebsd.org/pkgng

and portmaster -a wants me to install fping :
Code:
===>>> The following actions will be taken if you choose to proceed:
        Install net/fping

===>>> Proceed? y/n [y]
If I say yes, it fails :
Code:
Installing fping-3.4...pkg: fping-3.4 conflicts with fping+ipv6-2.4b2 (installs files into the same place).  Problematic file: /usr/local/man/man8/fping.8.gz
*** Error code 70

Stop in /usr/ports/net/fping.
*** Error code 1

Stop in /usr/ports/net/fping.

===>>> Installation of fping-3.4 (net/fping) failed
===>>> Aborting update

===>>> Update for net/fping failed
===>>> Aborting update

Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> net/fping
If I delete it :
Code:
# pkg_delete fping-3.4
pkg_delete: no such package 'fping' installed
then portmaster still wants me to install it
Code:
===>>> The following actions will be taken if you choose to proceed:
        Install net/fping

===>>> Proceed? y/n [y]
How to get out of it ?

Last edited by nico_h; 31st October 2012 at 08:01 AM.
Reply With Quote
  #8   (View Single Post)  
Old 31st October 2012
nico_h nico_h is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Thanked 0 Times in 0 Posts
Default kind of resolved

I finally deleted the fping package (the ipv6 one).

pkg_delete from the previous post didn't work because it is replaced by pkg delete :
Code:
# pkg delete fping+ipv6-2.4b2
The following packages will be deinstalled:

        fping+ipv6-2.4b2

The deinstallation will free 33 kB

Proceed with deinstalling packages [y/N]: y
Deleting fping+ipv6-2.4b2...pkg: fopen(/usr/local/man/man8/fping.8.gz): No such file or directory
 done
# portmaster -a
===>>> Gathering distinfo list for installed ports

===>>> Starting check of installed ports for available updates

===>>> All ports are up to date
Reply With Quote
Reply

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
external drive partition question + fdisk question gosha OpenBSD General 15 15th June 2009 02:00 PM
Upgrading from KDE 3.5 to KDE 4.1 ebzzry FreeBSD Ports and Packages 15 28th January 2009 05:03 AM
Apache Port Question / MYSQL casteld73 FreeBSD Ports and Packages 2 2nd November 2008 05:12 PM
Upgrading application not installed in default port directory APACHE ijk FreeBSD Ports and Packages 5 13th July 2008 04:34 PM
cvsup upgrading/updating ports tree Ofloo FreeBSD Ports and Packages 6 25th May 2008 01:32 AM


All times are GMT. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick