a9f1 Upgrading just a few binaries from _9 to CURRENT (risky maybe) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Miscellaneous > Howtos & FAQs (Moderated)

Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

Reply
 
Thread Tools Display Modes
  #1  
Old September 5th, 2012, 03:32
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,387
Thanks: 60
Thanked 145 Times in 130 Posts
Default Upgrading just a few binaries from _9 to CURRENT (risky maybe)

A.. Be sure to have backups and have tested that they work...
B... I neglected to read UPDATING from (somewhere (svnweb?)) and should have...
...sometimes it mentions breakages in advance.

Code:
*default host=cvsup4.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

src-all
Assume we are running STABLE_9 (RELENG_9) and want the latest CURRENT date, dd, df, pwd...
With the above supfile.BIN_CURRENT in /usr/ports
( I've done this today, but something more, say, /sbin may incur system breakage...)
Code:
cd /usr/ports
csup -g -L 2 -i src/bin supfile.BIN_CURRENT
# completes?
cd /usr/src/bin/date
make depend
make install
cd /usr/src/bin/dd
make depend
make install
# etc...
A slight chance this may be useful. (I restored ls from backup after this procedure
today because it broke color completion, explicity; maybe a kernel option or HINTS or something... ).
OTOH I noticed no change in the mentioned binaries' results. The man pages maybe are more recent
as a result maybe.
__________________
Using /lookat/ with zsh/grep/find/aliases/pipes/portmaster and /var/db/pkg/ flat files to meteorically speed port installs/upgrades forever hopefully...

Last edited by jb_fvwm2; September 5th, 2012 at 03:40. Reason: forgot UPDATING
Reply With Quote
  #2  
Old September 5th, 2012, 12:21
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,015
Thanks: 44
Thanked 467 Times in 397 Posts
Default

Why would anyone do this? As far as I know it's not guaranteed that 10-CURRENT binaries will work on earlier kernels because some of them may depend on kernel data structures that can be very different between major versions of FreeBSD. The only guarantee is that 9.x or 9-STABLE binaries will work on 10-CURRENT kernel (this guarantee may be further limited to binaries that are needed for installworld and updating /etc/), otherwise it wouldn't be possible to boot with freshly compiled and installed 10-CURRENT kernel while the world is still at 9.x or 9-STABLE when you do a source based upgrade.

Last edited by kpa; September 5th, 2012 at 14:44.
Reply With Quote
  #3  
Old September 5th, 2012, 15:53
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,387
Thanks: 60
Thanked 145 Times in 130 Posts
Default

I did it in this case to update setfacl, which now should work as expected ( a bug fix) and has a manpage of Sept 2 2012 (with examples!) (... not that I'd use it soon...). I've done something similar [but using v9 sources] , but on a wider scale, when updating from v6 to v9 directly [1] , and the upgrade could not complete due to missing binaries/directories.
[1] and/or cloning one v9 to another v9 piecemeal with rsync during which some parts did not copy right or were mistakenly skipped... (a third time, some binary just quit working suddenly and I reinstalled it. That case also used the v9 sources though, so this case one would not do very often if at all. )
I put the howto up mainly as a template for persons maybe saving the syntax for
reference or during a search of the forums... You are correct that there is no guarantee, that is why a tested backup procedure should be in place before any similar partial
upgrade is done.
__________________
Using /lookat/ with zsh/grep/find/aliases/pipes/portmaster and /var/db/pkg/ flat files to meteorically speed port installs/upgrades forever hopefully...
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
Creating executable binaries from ports ashleyd Installation and Maintenance of FreeBSD Ports or Packages 0 February 4th, 2012 14:04
Running SCO binaries jcborland Porting New Software 13 August 22nd, 2011 20:26
Other Package Binaries for 8.1 RELEASE: where to obtain? radical Installation and Maintenance of FreeBSD Ports or Packages 11 September 27th, 2010 04:22
[Solved] Upgrading -CURRENT with buildworld adamk Installing & Upgrading 10 August 15th, 2010 03:01
fuse-sshfs and linux binaries mrgz Web & Network Services 5 May 1st, 2010 19:46


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


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