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 26th May 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default error messages

Using "portupgrade -R" I get this message for several pkgs.

=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/gnome2 and try again.
*** Error code 1

Stop in /usr/ports/www/epiphany.
*** Error code 1

Stop in /usr/ports/www/epiphany.
*** Error code 1

Stop in /usr/ports/www/epiphany.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.60173.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=epiphany-2.20.1 UPGRADE_PORT_VER=2.20.1 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/epiphany (epiphany-2.20.1) (checksum mismatch)


Do I have to edit /usr/bin/script and if so ,what exactly should I edit and how,sorry about my constant posting but BSD has really got a grip on me.
Im sure all the info is in the error message but I dont know which bits I need.
Reply With Quote
  #2   (View Single Post)  
Old 26th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

Try: # cd /usr/ports/www/epiphany && make distclean
__________________
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 26th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

you can manually delete epiphany from your distfiles and try again
Reply With Quote
  #4   (View Single Post)  
Old 26th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

That is what make distclean does ....
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 26th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

/usr/bin/script is a binary, editing it would mean fetching FreeBSD source code, editing the *.c source files in /usr/src/usr.bin/script and recompiling and installing it.

www/epiphany (epiphany-2.20.1) (checksum mismatch)

Do like Carpetsmoker directed, cleaning old distfiles and keeping the ports tree up to date (csup/portsnap) can be a handy thing.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #6   (View Single Post)  
Old 26th May 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default

Carpetsmoker.

Did as you suggested,and it worked fine,thanks once again.


TerryP

And thanks for your input,I will check the handbook for csup/portsnap.and see how it works.
Reply With Quote
  #7   (View Single Post)  
Old 27th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

But I never like delete some file from disitfiles , because I think I need it sometimes , so I cut it to another directory and after I install package I past it again to disitfiles directory , because I think I will use it another time.
Reply With Quote
  #8   (View Single Post)  
Old 27th May 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

/port/#
#cat distinfo #what file(s) is (are) mischecksummed?
#/bin/rm -v ../../distfiles/SOME_FILE
#make checksum
.....................................
one quick way to remove one file, if the new checksum
is good
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #9   (View Single Post)  
Old 28th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

If you have a problem with cleaning out distfiles back stuff up.

I'm not a rocket scientist when it comes to ports, heck spent most of my time backtracking through makefiles to learn things I really wanted to know...


/usr/ports/distfiles seems to hold copies of downloaded source code from ports you have built/tried to build. /usr/ports/cat/port/distinfo gives checksums on those files.

You can get old copies of a ports Makefiles and distinfo's from CVS (what ever versions) by looking them up on www.freebsd.org/ports, you can also redownload any thing that is still downloadable off the 'net.


A simple way to backup the distfiles:
Code:
tar -C /usr/ports -cf - distfiles | bzip2  > /tmp/distfiles.tar.gz

I selected bzip2 for the example because of the compression rate and out of box shipping with FreeBSD, use whatever you like.


Note: You could use tar's -j switch to tar and skip the | bzip2, I usually use the pipe because OpenBSDs tar lacks it and I some times like to choose other compressors then -z/|gzip and -j/|bzip2. Hence why I wrote it that way
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 30th May 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default

Sorry to reopen this thread,which I thought we had solved,but after trying everything that worked before, I am getting this error message:


Stop in /usr/ports/x11/gnome-applets.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.82945.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnome-applets-2.20.0 UPGRADE_PORT_VER=2.20.0 make reinstall
---> Restoring the old version
** Fix the installation problem and try again.
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 624 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! x11/gnome-applets (gnome-applets-2.20.0) (install error)
** Could not clean up temporary directory: Directory not empty - /var/tmp/portupgradeq8B7PbCC
Reply With Quote
Old 30th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

You didn't post the actual error message ... Which is further up
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 30th May 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default

main.c:20:40: error: libgweather/gweather-gconf.h: No such file or directory
main.c:21:40: error: libgweather/gweather-prefs.h: No such file or directory
In file included from main.c:23:
gweather.h:31: error: expected specifier-qualifier-list before 'WeatherInfo'
main.c: In function 'gweather_applet_new':
main.c:41: error: 'GWeatherApplet' has no member named 'gweather_info'
main.c:42: error: 'GWeatherApplet' has no member named 'gconf'
main.c:46: error: 'GWeatherApplet' has no member named 'gweather_pref'
main.c:46: error: 'GWeatherApplet' has no member named 'gconf'
gmake[2]: *** [main.o] Error 1
gmake[2]: Leaving directory `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
gmake: *** [install-recursive] Error 1
*** Error code 2

Stop in /usr/ports/x11/gnome-applets.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.82945.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnome-applets-2.20.0 UPGRADE_PORT_VER=2.20.0 make reinstall
---> Restoring the old version
** Fix the installation problem and try again.
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 624 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! x11/gnome-applets (gnome-applets-2.20.0) (install error)


Went back as far as the first error entry,hope this is o/k.
Reply With Quote
Old 30th May 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

*guessing*
"make run-depends-list" in /gnome2/ needs libgweather and
you don't have it properly installed?
....................
gnome-bumping is where I would least use portupgrade, I do it
manually (slower!) so that I can deal with issues as they arise.
...................
each version adds (sometimes deletes ) dependencies AFAIK
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
Old 4th June 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default

jb_daefo

Sorry I have been so long in replying,had a family problem.What should I do to resolve this error,checked the makefile in /usr/ports/net/libgweather and everything seems o/k,what do you think.


# New ports collection makefile for: libgweather
# Date created: 14th Jan 2008
# Whom: Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD: ports/net/libgweather/Makefile,v 1.4 2008/05/26 22:25:03 mezz Exp $
# $MCom: ports/net/libgweather/Makefile,v 1.7 2008/03/11 11:45:48 ahze Exp $
#

PORTNAME= libgweather
PORTVERSION= 2.22.2
CATEGORIES= net gnome
MASTER_SITES= GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT= Library to accessing online weather informations

USE_GETTEXT= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack intlhack gtk20 gnomevfs2 ltverhack
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS= gweather.schemas

.include <bsd.port.mk>
Reply With Quote
Old 5th June 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

cd /usr/ports/.../libgweather
/bin/rm -rf work
make deinstall
make install
??
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
Old 5th June 2008
delboy's Avatar
delboy delboy is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 63
Thanked 0 Times in 0 Posts
Default

Thanks for the code,but I'm afraid it did'nt change anything,still getting the same error message.Gnome-applets is the only pkg in ports to be updated,I just dont know what is preventing it from being updated.
Reply With Quote
Old 6th June 2008
c0d3x c0d3x is offline
New User
 
Join Date: May 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default

Hi I had encountered the exact same problem as you delboy but have managed to successfully resolve the problem.

Have you checked the UPDATING doc in /usr/ports? there is some useful steps in there which helps resolve the problem.

Basically I ended up deinstalling gnome-applets from my system and running the 3 steps listed in the UPDATING document. I then deinstalled libgweather and installed it again (as per jb_daefo's post). After that I went to /usr/ports/x11/gnome2 and ran make reinstall which then went through and reinstalled gnome-applets and it's dependants.

Am sure this was probably not the correct way to get it to work, but it certainly worked for me.

On a totally separate note I would just like to say how very impressed I am with FreeBSD as an OS and as a community. Having never heard of it until about a month ago I have fallen in love with it and subsequently now installed it on all 3 of my laptops (doubling up with Vista on one of them) and even managed to get my 3945ABG wireless working on it (well I was impressed anyway haha).

Anyway, I hope my method helps you too

Chris
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
strange kernel messages chavez243 FreeBSD General 4 19th August 2008 01:21 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM
portmaster: "Terminated" messages anomie FreeBSD General 3 20th June 2008 02:59 PM
unable to read messages ocicat Feedback and Suggestions 1 3rd May 2008 08:01 AM
Importing private messages? BSDfan666 Feedback and Suggestions 2 2nd May 2008 09:22 PM


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


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