e244 [Solved] PortDowngrade Trouble - 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 September 11th, 2012, 21:04
Ruler2112's Avatar
Ruler2112 Ruler2112 is offline
Member
 
Join Date: Sep 2009
Location: Michigan, USA
Posts: 408
Thanks: 11
Thanked 23 Times in 21 Posts
Default PortDowngrade Trouble

When updating my 8.2 system in an attempt to fix a problem, LibreOffice stopped working. I found mention of portdowngrade online, which purports to revert a given port to a previous version. Since LibreOffice 3.4.3_2 worked perfectly on my system until this mess started, I'd like to downgrade it to that version, recompile, and be happy. Unfortunately, I get the following when trying to run it and have no idea how to proceed.

I've never used CVS before and while I know it's related to source code storage for open source projects, that pretty much exhausts my knowledge about it. Given this, I'm sure the solution is relatively simple and I'm hoping somebody here will know the answer.



Code:
Downgrading port: editors/libreoffice

Step 1: Checking out port from CVS repository
No CVS root directory set! Please use the -s option.

cvs checkout: No CVSROOT specified!  Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.
portdowngrade error: Can not check out port editors/libreoffice

An error had occured. If this was an cvs error, try another cvs server.
If this was an cvs login error, try the -o option.
__________________
This message is made up of not less than 90% recycled electrons.

Last edited by Ruler2112; September 14th, 2012 at 19:03.
Reply With Quote
  #2  
Old September 11th, 2012, 21:14
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

Hmm, never heard of portdowngrade. However, one thing puzzles me: Where does it find the old sources to build the old version? As far as I know the FreeBSD ports tree doesn't keep old sources. Maybe that is your problem.
Reply With Quote
  #3  
Old September 12th, 2012, 09:58
t1066 t1066 is offline
Member
 
Join Date: Jun 2010
Posts: 144
Thanks: 3
Thanked 26 Times in 25 Posts
Default

You should look through the last few lines of the Makefile of portdowngrade. Then rebuild portdowngrade accordingly.
Reply With Quote
  #4  
Old September 12th, 2012, 17:20
Ruler2112's Avatar
Ruler2112 Ruler2112 is offline
Member
 
Join Date: Sep 2009
Location: Michigan, USA
Posts: 408
Thanks: 11
Thanked 23 Times in 21 Posts
Default

No idea where it gets the sources from, though I honestly don't too much care if I can go back to a version of LibreOffice that worked.

I did read that message when it was echoed to the screen during the build. Do I need to use a special CVS server as default? If so, could you recommend what one to use? I figured by the wording that it'd use a 'normal' server by default and since I don't know any better, accepted the default. The handbook page referenced doesn't help much given my extremely limited knowledge of CVS.

Code:
.if !defined(DEFAULT_CVS_SERVER)
  @${ECHO_MSG} ""
  @${ECHO_MSG} "Press CTRL-C and define DEFAULT_CVS_SERVER"
  @${ECHO_MSG} "(e.g. make DEFAULT_CVS_SERVER=\":pserver:anoncvs@anoncvs. ... .FreeBSD.org:/home/ncvs\" install)"
  @${ECHO_MSG} "if you want to use a special CVS server as default. See"
  @${ECHO_MSG} "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html"
  @${ECHO_MSG} "for a list of possible cvs server"
  @${ECHO_MSG} ""
  @sleep 3
.endif
__________________
This message is made up of not less than 90% recycled electrons.
Reply With Quote
  #5  
Old September 12th, 2012, 17:55
Ruler2112's Avatar
Ruler2112 Ruler2112 is offline
Member
 
Join Date: Sep 2009
Location: Michigan, USA
Posts: 408
Thanks: 11
Thanked 23 Times in 21 Posts
Default

Figured it out. For those with the same problem in the future, I found a web page with the information needed. After rebuilding portdowngrade with the parameters shown on that page (make DEFAULT_CVS_SERVER=\":pserver:anoncvs@anoncvs.tw.f reebsd.org:/home/ncvs\") and reinstalling, I re-ran portdowngrade editors/libreoffice. While I got a lot of the following errors, they didn't seem to affect anything but the display.

Code:
cvs checkout: warning: failed to open /root/.cvspass for reading: No such file or directory
Hit space a couple times to get back to the latest version of 3.4.3_2, selected that line number, and confirmed - the port's Makefile now shows as this version! Rebuilding now - hopefully, this will get LO back running.
__________________
This message is made up of not less than 90% recycled electrons.
Reply With Quote
  #6  
Old September 14th, 2012, 19:02
Ruler2112's Avatar
Ruler2112 Ruler2112 is offline
Member
 
Join Date: Sep 2009
Location: Michigan, USA
Posts: 408
Thanks: 11
Thanked 23 Times in 21 Posts
Default

While my previous post solved the portdowngrade problem, it did not remedy the situation as I then got build errors, most likely due to there being more updated software than the port expected. Thankfully, I got a response from the maintainer of the libreoffice port and his suggestion proved to be the solution. For those having trouble building/running LibreOffice on an 8.x system, try make WITH_GCC=yes and then make WITH_GCC=yes install - LibreOffice is now running on my system after those two commands.
__________________
This message is made up of not less than 90% recycled electrons.
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
UDP Trouble grabes Networking 1 November 9th, 2010 02:54
Portdowngrade Problems ter2007 Installation and Maintenance of FreeBSD Ports or Packages 10 September 19th, 2010 16:54
big trouble waspiX Installing & Upgrading 6 June 16th, 2010 12:01
[Solved] trouble with pf and NAT wonslung Networking 5 September 14th, 2009 18:43
[Solved] portdowngrade - help Plague Installation and Maintenance of FreeBSD Ports or Packages 2 January 27th, 2009 23:45


All times are GMT +1. The time now is 02:59.


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