DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default Updating Packages on -current

4.3-current

I get an error when I tried to update a package:
Code:
root@reflux~#pkg_add -iu clamav  
Candidates for updating bzip2-1.0.4 -> bzip2-1.0.5
Candidates for updating zoo-2.10.1p1 -> zoo-2.10.1p1                                                                            
Candidates for updating lha-1.14i.ac20050924.1 -> lha-1.14i.ac20050924.1                                                        
Candidates for updating arc-5.21op0 -> arc-5.21op0                                                                              
Candidates for updating clamav-0.92.1 -> clamav-0.93                                                                            
Candidates for updating unzip-5.52 -> unzip-5.52p0                                                                              
Candidates for updating libiconv-1.9.2p5 -> libiconv-1.12                                                                       
Looking for updates: complete                                                                                                   
Running the equivalent of pkg_add -r bzip2-1.0.5 zoo-2.10.1p1 lha-1.14i.ac20050924.1 arc-5.21op0 clamav-0.93 unzip-5.52p0 libiconv-1.12
Can't install bzip2-1.0.5: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install zoo-2.10.1p1: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install lha-1.14i.ac20050924.1: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install arc-5.21op0: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install unzip-5.52p0: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install libiconv-1.12: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install clamav-0.93: can't resolve libiconv-1.12,unzip-5.52p0
Can't install unzip-5.52p0: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
Can't install libiconv-1.12: lib not found c.45.0
c.45.0: partial match in /usr/lib: major=43, minor=0 (bad major)
I don't really want to reinstall this box if I don't have to..

I have another box that I am replacing with a -current one and
just built a new box with a snapshot from June 8,2008..
No issues updating packages on this one..

Maybe the question I should be asking is:

What are the best practices in following -current..?


What I do on -stable
- update src
- rebuild kernel
- update ports (when needed)
- make build (rebuild all the binaries)

It seems like the same logic should apply to -current..?

Not too much info here regarding best practices..
http://openbsd.fries.netfaq/current.html

rk
__________________
All posts sent on ReCycled Electrons...

Last edited by roundkat; 12th June 2008 at 10:45 PM.
Reply With Quote
  #2   (View Single Post)  
Old 13th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The reason for the failure to update the package is an update to libc, which makes the package out-of-date.

Snapshots of the OS are created on an as-needed basis. For popular architectures during normal day-to-day development periods, this may be daily, or every few days. But during hackathons, the frequency of snapshots may be every several hours. A hackathon is going on right now in Edmonton -- see the OpenBSD Journal for some recent information.

Snapshot packages, on the other hand, are updated less frequently. Understand that there are around 5000 packages to build, and that it can take days, depending on architecture and build platforms. On popular archs, this may be every couple of weeks. On less-popular archs, there are no snapshot packages created at all. On those architectures, -current users must build all their packages from ports themselves.

Snapshot packages are created for convenience. There is no synchronization with any particular snap of the OS.

The best practice for those who use snapshot packages is, in my humble opinion:
  1. Log console output, using script(1) or a similar facility
  2. Use "# pkg_add -iu" to update those packages which will update cleanly.
  3. Review the console output, and manually build packages from ports which are out of sync and fail to update.
  4. Use "# pkg_add -ir <list of packages>" for those packages which failed to update due to a dependent package which was out of sync but will update cleanly once the dependent package is updated.
  5. Run ports/infrastructure/build/out-of-date, and build any out-of-date packages for any ports which do not have packages built for them, either due to FLAVOR or licensing. I ignore packages marked out-of-date if they updated cleanly from the most recent snapshot package updates.
Reply With Quote
  #3   (View Single Post)  
Old 13th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Much Thanks for the very informative and very helpful post..

Here is what I did ..

1. updated src
2. rebuilt kernel
3. installed and rebooted with new kernel
4. make build to rebuild binaries
5. pkg_add -ui

No more libc errors.. The update did remove and reinstall the same
versions of packages but I am guessing because of the libc
error..

It sure looks like
rebuilding the binaries with the most current src fixed the issue..

If that is the case then I can probably expect future
breakage (term used loosely) on occasion.. ?

All of my packages upgraded without incident..

There was some package installation notes on which packages to check
and some packages put out the standard configuration instructions (like
postfix)

I will check all these to make sure everything is still working..

I will post the output in the next post..

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #4   (View Single Post)  
Old 13th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Output:
Here is the ouput
Code:
root@reflux~#pkgadd -iu
Candidates for updating amavisd-new-2.5.3 -> amavisd-new-2.5.3
Candidates for updating arc-5.21op0 -> arc-5.21op0
Candidates for updating autoconf-2.57p1 -> autoconf-2.57p2
Candidates for updating autoconf-2.59p2 -> autoconf-2.59p3
Candidates for updating autoconf-2.61p2 -> autoconf-2.61p3
Candidates for updating bzip2-1.0.4 -> bzip2-1.0.5
Candidates for updating cabextract-1.2 -> cabextract-1.2
Candidates for updating clamav-0.92.1 -> clamav-0.93
Candidates for updating curl-7.17.1 -> curl-7.18.1
Candidates for updating cyrus-sasl-2.1.22p2 -> cyrus-sasl-2.1.22p4
Candidates for updating gettext-0.16.1 -> gettext-0.16.1
Candidates for updating gmake-3.80p1 -> gmake-3.80p1
Candidates for updating gnupg-1.4.8 -> gnupg-1.4.9                     
Candidates for updating gperf-3.0.1 -> gperf-3.0.1                     
Candidates for updating lha-1.14i.ac20050924.1 -> lha-1.14i.ac20050924.1
Candidates for updating libdnet-1.10p2 -> libdnet-1.10p2               
Candidates for updating libiconv-1.9.2p5 -> libiconv-1.12              
Candidates for updating libidn-1.1 -> libidn-1.1                       
Candidates for updating libltdl-1.5.22p3 -> libltdl-1.5.26             
Candidates for updating libtool-1.5.22p14 -> libtool-1.5.26p0          
Candidates for updating libxml-2.6.30 -> libxml-2.6.32                 
Candidates for updating logsentry-1.1.1p2 -> logsentry-1.1.1p2         
Candidates for updating lua-5.1.2p1 -> lua-5.1.3                       
Candidates for updating lzop-1.01 -> lzop-1.01                         
Candidates for updating metaauto-0.7 -> metaauto-0.9                   
Candidates for updating nasm-0.98.38p0 -> nasm-2.02                    
Candidates for updating nmap-4.53 -> nmap-4.62p0                       
Candidates for updating p5-Convert-TNEF-0.17p0 -> p5-Convert-TNEF-0.17p0
Candidates for updating p5-IO-Socket-SSL-1.12 -> p5-IO-Socket-SSL-1.12 
Candidates for updating p5-MIME-tools-5.420p1 -> p5-MIME-tools-5.426           
Candidates for updating p5-Mail-SPF-Query-1.999.1p0 -> p5-Mail-SPF-Query-1.999.1p0
Candidates for updating p5-Mail-SpamAssassin-3.2.4 -> p5-Mail-SpamAssassin-3.2.4
Candidates for updating p5-Net-DNS-0.61 -> p5-Net-DNS-0.63                     
Candidates for updating p5-Net-SSLeay-1.30p0 -> p5-Net-SSLeay-1.32             
Candidates for updating p5-Unix-Syslog-1.0 -> p5-Unix-Syslog-1.0               
Candidates for updating pcre-7.5p0 -> pcre-7.6                                 
Candidates for updating pftop-0.7 -> pftop-0.7                                 
Candidates for updating php5-core-5.2.5p2 -> php5-core-5.2.6                   
Candidates for updating postfix-2.5.0-sasl2 -> postfix-2.5.2-sasl2             
Candidates for updating re2c-0.13.1 -> re2c-0.13.1                             
Candidates for updating ripole-0.2.0 -> ripole-0.2.0p0                         
Candidates for updating rsync-2.6.9 -> rsync-3.0.2                             
Candidates for updating smartmontools-5.37p0 -> smartmontools-5.38             
Candidates for updating squid-2.6.STABLE18 -> squid-2.6.STABLE18p0             
Candidates for updating unzip-5.52 -> unzip-5.52p0                             
Candidates for updating wget-1.10.2p1 -> wget-1.10.2p1                         
Candidates for updating zip-2.32 -> zip-2.32                                   
Candidates for updating zoo-2.10.1p1 -> zoo-2.10.1p1                           
Looking for updates: complete                                                  
Cannot find updates for freeze-2.5 unarj-2.43 unrar-3.78p0
Proceed? [y/N] y
Running the equivalent of pkg_add -r amavisd-new-2.5.3 arc-5.21op0 autoconf-2.57p2 autoconf-2.59p3 autoconf-2.61p3 bzip2-1.0.5 cabextract-1.2 clamav-0.93 curl-7.18.1 cyrus-sasl-2.1.22p4 gettext-0.16.1 gmake-3.80p1 gnupg-1.4.9 gperf-3.0.1 lha-1.14i.ac20050924.1 libdnet-1.10p2 libiconv-1.12 libidn-1.1 libltdl-1.5.26 libtool-1.5.26p0 libxml-2.6.32 logsentry-1.1.1p2 lua-5.1.3 lzop-1.01 metaauto-0.9 nasm-2.02 nmap-4.62p0 p5-Convert-TNEF-0.17p0 p5-IO-Socket-SSL-1.12 p5-MIME-tools-5.426 p5-Mail-SPF-Query-1.999.1p0 p5-Mail-SpamAssassin-3.2.4 p5-Net-DNS-0.63 p5-Net-SSLeay-1.32 p5-Unix-Syslog-1.0 pcre-7.6 pftop-0.7 php5-core-5.2.6 postfix-2.5.2-sasl2 re2c-0.13.1 ripole-0.2.0p0 rsync-3.0.2 smartmontools-5.38 squid-2.6.STABLE18p0 unzip-5.52p0 wget-1.10.2p1 zip-2.32 zoo-2.10.1p1
arc-5.21op0 (extracting): complete                                                   
arc-5.21op0 (deleting): complete                                                     
arc-5.21op0 (installing): complete                                                   
bzip2-1.0.5 (extracting): complete                                                   
bzip2-1.0.4 (deleting): complete                                                     
bzip2-1.0.5 (installing): complete                                                   
cabextract-1.2 (extracting): complete                                                
cabextract-1.2 (deleting): complete                                                  
cabextract-1.2 (installing): complete                                                
lha-1.14i.ac20050924.1 (extracting): complete                                        
lha-1.14i.ac20050924.1 (deleting): complete                                          
lha-1.14i.ac20050924.1 (installing): complete                                        
lzop-1.01 (extracting): complete                                                     
lzop-1.01 (deleting): complete                                                       
lzop-1.01 (installing): complete                                                     
ripole-0.2.0p0 (extracting): complete                                                
ripole-0.2.0 (deleting): complete                                                    
ripole-0.2.0p0 (installing): complete                                                
unzip-5.52p0 (extracting): complete                                                  
unzip-5.52 (deleting): complete                                                      
unzip-5.52p0 (installing): complete                                                  
zoo-2.10.1p1 (extracting): complete                                                  
zoo-2.10.1p1 (deleting): complete                                                    
zoo-2.10.1p1 (installing): complete                                                  
p5-MIME-tools-5.426 (extracting): complete                                           
p5-MIME-tools-5.420p1 (deleting): complete                                           
p5-MIME-tools-5.426 (installing): complete                                           
p5-Convert-TNEF-0.17p0 (extracting): complete                                        
p5-Convert-TNEF-0.17p0 (deleting): complete                                          
p5-Convert-TNEF-0.17p0 (installing): complete                                        
re2c-0.13.1 (extracting): complete                                                   
re2c-0.13.1 (deleting): complete                                                     
re2c-0.13.1 (installing): complete                                                   
p5-Net-DNS-0.63 (extracting): complete                                               
p5-Net-DNS-0.61 (deleting): complete                                                 
p5-Net-DNS-0.63 (installing): complete                                               
p5-Mail-SPF-Query-1.999.1p0 (extracting): complete                                   
p5-Mail-SPF-Query-1.999.1p0 (deleting): complete                                     
p5-Mail-SPF-Query-1.999.1p0 (installing): complete                                   
libiconv-1.12 (extracting): complete                                                        
libiconv-1.9.2p5 (deleting): complete                                                       
libiconv-1.12 (installing): complete                                                        
gettext-0.16.1 (extracting): complete                                                       
gettext-0.16.1 (deleting): complete                                                         
gettext-0.16.1 (installing): complete                                                       
libidn-1.1 (extracting): complete                                                           
libidn-1.1 (deleting): complete                                                             
libidn-1.1 (installing): complete                                                           
curl-7.18.1 (extracting): complete                                                          
curl-7.17.1 (deleting): complete                                                            
curl-7.18.1 (installing): complete                                                          
gnupg-1.4.9 (extracting): complete                                                          
gnupg-1.4.8 (deleting): complete                                                            
gnupg-1.4.9 (installing): complete                                                          
p5-Net-SSLeay-1.32 (extracting): complete                                                   
p5-Net-SSLeay-1.30p0 (deleting): complete                                                   
p5-Net-SSLeay-1.32 (installing): complete                                                   
p5-IO-Socket-SSL-1.12 (extracting): complete                                                
p5-IO-Socket-SSL-1.12 (deleting): complete                                                  
p5-IO-Socket-SSL-1.12 (installing): complete                                                
p5-Mail-SpamAssassin-3.2.4 (extracting): complete                                           
p5-Mail-SpamAssassin-3.2.4 (deleting): complete                                             
p5-Mail-SpamAssassin-3.2.4 (installing): complete                                           
p5-Unix-Syslog-1.0 (extracting): complete                                                   
p5-Unix-Syslog-1.0 (deleting): complete                                                     
p5-Unix-Syslog-1.0 (installing): complete                                                   
amavisd-new-2.5.3 (extracting): complete                                                    
amavisd-new-2.5.3 (deleting): complete                                                      
amavisd-new-2.5.3 (installing): complete                                                    
metaauto-0.9 (extracting): complete                                                         
metaauto-0.7 (deleting): complete                                                           
metaauto-0.9 (installing): complete                                                         
autoconf-2.57p2 (extracting): complete                                                      
autoconf-2.57p1 (deleting): complete                                                        
autoconf-2.57p2 (installing): complete                                                      
autoconf-2.59p3 (extracting): complete                                                      
autoconf-2.59p2 (deleting): complete                                                        
autoconf-2.59p3 (installing): complete                                                      
autoconf-2.61p3 (extracting): complete                                                      
autoconf-2.61p2 (deleting): complete                                                        
autoconf-2.61p3 (installing): complete                                                      
clamav-0.93 (extracting): complete                                                          
clamav-0.92.1 (deleting): complete                                                          
clamav-0.93 (installing): complete                                                          
cyrus-sasl-2.1.22p4 (extracting): complete                                                  
cyrus-sasl-2.1.22p2 (deleting): complete                                                    
cyrus-sasl-2.1.22p4 (installing): complete                                                  
gmake-3.80p1 (extracting): complete                                                         
gmake-3.80p1 (deleting): complete                                                           
gmake-3.80p1 (installing): complete                                                         
gperf-3.0.1 (extracting): complete                                                          
gperf-3.0.1 (deleting): complete                                                            
gperf-3.0.1 (installing): complete                                                          
libdnet-1.10p2 (extracting): complete                                                       
libdnet-1.10p2 (deleting): complete                                                         
libdnet-1.10p2 (installing): complete                                                       
libltdl-1.5.26 (extracting): complete                                                       
libltdl-1.5.22p3 (deleting): complete                                                       
libltdl-1.5.26 (installing): complete                                                       
libtool-1.5.26p0 (extracting): complete                                                     
libtool-1.5.22p14 (deleting): complete                                                      
libtool-1.5.26p0 (installing): complete                                                     
New package libxml-2.6.32 contains potentially unsafe operations
        @exec /usr/local/share/libxml2/rebuild
proceed with update anyways? [y/N/a] y
libxml-2.6.32 (extracting): complete                                                        
libxml-2.6.30 (deleting): complete                                                          
libxml-2.6.32 (installing): complete                                                        
logsentry-1.1.1p2 (extracting): complete                                                    
logsentry-1.1.1p2 (deleting): complete                                                      
logsentry-1.1.1p2 (installing): complete                                                    
lua-5.1.3 (extracting): complete                                                               
lua-5.1.2p1 (deleting): complete                                                               
lua-5.1.3 (installing): complete                                                               
nasm-2.02 (extracting): complete                                                               
nasm-0.98.38p0 (deleting): complete                                                            
nasm-2.02 (installing): complete                                                               
pcre-7.6 (extracting): complete                                                                
pcre-7.5p0 (deleting): complete                                                                
pcre-7.6 (installing): complete                                                                
nmap-4.62p0 (extracting): complete                                                             
nmap-4.53 (deleting): complete                                                                 
nmap-4.62p0 (installing): complete                                                             
pftop-0.7 (extracting): complete                                                               
pftop-0.7 (deleting): complete                                                                 
pftop-0.7 (installing): complete                                                               
New package php5-core-5.2.6 contains potentially unsafe operations
        @exec install -d /var/www/conf/php5/
        @exec install -d /var/www/conf/php5.sample/
proceed with update anyways? [y/N/a] y
Old package php5-core-5.2.5p2 contains potentially unsafe operations
        @unexec rm -fr /var/www/conf/php5/
        @unexec rm -fr /var/www/conf/php5.sample/
proceed with update anyways? [y/N/a] y
php5-core-5.2.6 (extracting): complete                                                         
php5-core-5.2.5p2 (deleting): complete                                                         
php5-core-5.2.6 (installing): complete                                                         
New package postfix-2.5.2-sasl2 contains potentially unsafe operations
        @exec PREFIX=/usr/local SYSCONFDIR=/etc /usr/local/sbin/postfix-install
proceed with update anyways? [y/N/a] y
Old package postfix-2.5.0-sasl2 contains potentially unsafe operations
        @unexec /usr/local/sbin/postfix stop
        @unexec /usr/local/sbin/postfix-disable
        @unexec rm -f /etc/mailer.conf.postfix
proceed with update anyways? [y/N/a] y
postfix-2.5.2-sasl2 (extracting): complete                                                     
postfix/postfix-script: stopping the Postfix mail system
postfix-2.5.0-sasl2 (deleting): complete                                                       
6025fix-2.5.2-sasl2 (installing)|********************************************************| 100%
6025
postfix-2.5.2-sasl2 (installing): complete                                                     
rsync-3.0.2 (extracting): complete                                                             
rsync-2.6.9 (deleting): complete                                                               
rsync-3.0.2 (installing): complete                                                             
smartmontools-5.38 (extracting): complete                                                      
smartmontools-5.37p0 (deleting): complete                                                      
smartmontools-5.38 (installing): complete                                                      
New package squid-2.6.STABLE18p0 contains potentially unsafe operations
        @exec ln -sf /var/squid/logs/squid.pid /var/run/squid.pid
proceed with update anyways? [y/N/a] y
Old package squid-2.6.STABLE18 contains potentially unsafe operations
        @unexec rm -f /var/run/squid.pid
proceed with update anyways? [y/N/a] y
squid-2.6.STABLE18p0 (extracting): complete                                                    
squid-2.6.STABLE18 (deleting): complete                                                        
squid-2.6.STABLE18p0 (installing): complete                                                    
wget-1.10.2p1 (extracting): complete                                                           
wget-1.10.2p1 (deleting): complete                                                             
wget-1.10.2p1 (installing): complete                                                           
zip-2.32 (extracting): complete                                                                
zip-2.32 (deleting): complete                                                                  
zip-2.32 (installing): complete                                                                
Clean shared items: complete                                                                  
< instructions on how to configure packages removed >
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #5   (View Single Post)  
Old 13th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

As a result of the upgrade I had to fix a few things..

1. Postfix was disabled
-- Killed Sendmail
-- re-enabled postfix
-- I have a transport file -- postmap transport
For some reason port 25 was still in use and postfix
would not start..
Reboot fixed it.. Postfix now happy..

Note to self:
find out how to see what process has port X locked..

This way I could avoid the reboot...

2. Amavisd had some changes
-- Fortunately, I had just done an install on another
box and have the current configuration files for
- amavisd.conf
- clamd.conf
- freshclam.conf

3. Squid was also changed.. haven't gotten that fixed yet..
My squid conf file is only used for remote tunneling so should be
a simple fix..

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #6   (View Single Post)  
Old 13th June 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by roundkat View Post
It sure looks like
rebuilding the binaries with the most current src fixed the issue..
Be aware that your list only updates the kernel. While there is some latitude, you should also consider rebuilding the userland as well. Getting the kernel & userland too far out of synchronization can lead to other problems.
Reply With Quote
  #7   (View Single Post)  
Old 13th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Code:
...Cannot find updates for freeze-2.5 unarj-2.43 unrar-3.78p0...
These ports, for example, do not have packages due to licensing, and appear here because your local ports/packages hierarchy is not in your PKG_PATH. As I recommended, the ports/infrastructure/build/out-of-date script will tell you if packages like these require rebuilding.
Quote:
Originally Posted by roundkat View Post
Note to self:
find out how to see what process has port X locked..
The fstat(1) command can help with that, e.g.:
$ fstat | grep :25
Quote:
Originally Posted by ocicat View Post
Be aware that your list only updates the kernel...
I believe he described a "make build" after rebooting, which would regenerate userland.
Reply With Quote
  #8   (View Single Post)  
Old 13th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Quote:
Originally Posted by jggimi View Post
Code:
...Cannot find updates for freeze-2.5 unarj-2.43 unrar-3.78p0...
These ports, for example, do not have packages due to licensing, and appear here because your local ports/packages hierarchy is not in your PKG_PATH. As I recommended, the ports/infrastructure/build/out-of-date script will tell you if packages like these require rebuilding.The fstat(1) command can help with that, e.g.:[INDENT]$ fstat | grep :25
Thx to both for responses..

jggimi:
The ports you listed are required by amavisd...
-- freeze is really old and won't need to be updated..
-- the other archivers will though..

I didn't forget but I was going step by step..
i.e. changing one thing at at time..

I haven't gotten to that part yet but going there now..

fstat.. that is a new one for me..

ocicat:
I did understand the building the kernel and keeping userland
in "sync" but it was definitely worth mentioning..

My process always includes "make build" after updating the kernel..

Much Thx...
rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #9   (View Single Post)  
Old 13th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

FAQ Upgrade Guide: 4.2 to 4.3 has some answers
http://openbsd.mcom.fr/faq/upgrade43.html

Not all for -current
Most important are the libgc bumps, current should be /usr/lib/libc.so.45.0
whether you made upgrades properly or not, you would end up with a full list ranging from i.e.: libc.so.42.0 to libc.so.45.0

Another ennoying one (among many others) is that some packages rely on /usr/X11R6/lib/libexpat.so.8.0 which on current is /usr/lib/libexpat.so.9.0
(had such a problem with x11/roxterm and the databases/evolution-data-server not upgrading from 2.12 to 2.22).

No big problems as you can symlink a library to the next one (in most cases).
Read the corresponding library file (the one ending in *.la) for hints.

-current code just got changed after the Japan hackaton, now busy including code from the Edmonton hackaton.
If you are not a seasoned -current litterate, stay away from -current for a while, until dust settles.

In OpenBSD, when you pkg_add -u (or make update), failed and/or left-overs of intallations will be written as hidden files under /var/db/pkg
mostly libs, hence

ls -dl /var/db/pkg/.lib*

which you can pkg_delete as any other package, but these are there for a reason: some packages still rely upon and are listed as usual under

/var/db/pkg/.lib* /+REQUIRED_BY


So, you have two choices (as the economists say, 1,2,3

1- Take the long (learning) way, pkg_delete the offenders (+REQUIRED_BY) and pkg_delete the ls -dl /var/db/pkg/.lib* when they are not needed anymore (no mere +REQUIRED_BY).

2- Delete all packages, re-check the FAQ upgrade entries

3- As I say in many cases, best upgrade is newfs.


This situation is very exceptional on OpenBSD, but as any other *nix, there has been a major gettext/libiconv change.
I guess July will have both correctly snapshots and snapshots/packages on the fast track again.


On a speculative note, as libc is marked with version 45, will there ever be an OpenBSD 4.4
If the hackathon codes keep coming in in such high numbers, next version could as well be the 5.0
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 13th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Quote:
Originally Posted by lvlamb View Post
FAQ Upgrade Guide: 4.2 to 4.3 has some answers
http://openbsd.mcom.fr/faq/upgrade43.html
I will check it out..
Quote:

Another annoying one (among many others) is that some packages rely on /usr/X11R6/lib/libexpat.so.8.0 which on current is /usr/lib/libexpat.so.9.0
(had such a problem with x11/roxterm and the databases/evolution-data-server not upgrading from 2.12 to 2.22).

No big problems as you can symlink a library to the next one (in most cases).

Read the corresponding library file (the one ending in *.la) for hints.
This I did not know.. thx

Quote:
-current code just got changed after the Japan hackaton, now busy including code from the Edmonton hackaton.
If you are not a seasoned -current litterate, stay away from -current for a while, until dust settles.
I don't do upgrades on ports /packages but I decided to step out of my comfort zone (-stable) and try -current..
Realizing that there are many new things I would have to learn..
That being said.. I will probably just hold off until then..

Quote:
In OpenBSD, when you pkg_add -u (or make update), failed and/or left-overs of installations will be written as hidden files under /var/db/pkg
mostly libs, hence

ls -dl /var/db/pkg/.lib*

which you can pkg_delete as any other package, but these are there for a reason: some packages still rely upon and are listed as usual under

/var/db/pkg/.lib* /+REQUIRED_BY
I will also look a this..

Quote:
So, you have two choices (as the economists say, 1,2,3

1- Take the long (learning) way, pkg_delete the offenders (+REQUIRED_BY) and pkg_delete the ls -dl /var/db/pkg/.lib* when they are not needed anymore (no mere +REQUIRED_BY).

2- Delete all packages, re-check the FAQ upgrade entries

3- As I say in many cases, best upgrade is newfs.
I am going for option 1 here..

Quote:
This situation is very exceptional on OpenBSD, but as any other *nix, there has been a major gettext/libiconv change.
I guess July will have both correctly snapshots and snapshots/packages on the fast track again.
I am so totally impressed with the "minimal discomfort" of upgrading and
what a stellar job the OpenBSD devs have done..

I *never* do upgrades on anything.. Always reinstall..
As previously stated.. that was my comfort zone..

Quote:
On a speculative note, as libc is marked with version 45, will there ever be an OpenBSD 4.4
If the hackathon codes keep coming in in such high numbers, next version could as well be the 5.0
I can go home now.. as I am not learning anymore today..
My brain is full...

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 13th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Not to worry, OpenBSD 4.5 will be released November 1. OpenBSD release numbers are incremented by 0.1 twice each year. "4.0" was released 6 months after "3.9" as it was the next sequential release number. It had the usual enhancement and improvements.
Reply With Quote
Old 13th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

jggimi obviously meant OpenBSD 4.4, not 4.5.
Reply With Quote
Old 13th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

jggimi is aware of libc.so.45.0 so, I join him when he writes OpenBSD 4.5

My speculation is that there now are so many changes a sequential increment of the version number would not be sufficient to get noticed, hence users not reading upgrading or warnings.

My upgrade (<U> choice) last weekend with -sbapshots as of June 3rd and snapshots/packages as of June 7 was made through
pkg_add -ui
and my system did not break: thumbs up!
But I had in excess of 25 /var/db/pkg/.lib*

----
Edit: right, forgot:
made a fresh install on a WS (sole libc.so.45.0 )
updated ports tree (and make index, just to mention, x11/pbrowser core dumped because /usr/ports/INDEX was corrupt. Must be one of the rare apps reading the INDEX and INDEX is not updated very often. Anyway, just use pbrowser for browsing the tree and get noticed of flavors).
still had the libexpat.so.8.0 problem an had to make a link to libexpat.so.9.0
__________________
da more I know I know I know nuttin'

Last edited by lvlamb; 13th June 2008 at 04:50 PM.
Reply With Quote
Old 14th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Quote:
Originally Posted by lvlamb View Post

My upgrade (<U> choice) last weekend with -sbapshots as of June 3rd and snapshots/packages as of June 7 was made through
pkg_add -ui
and my system did not break: thumbs up!
But I had in excess of 25 /var/db/pkg/.lib*
only have 3 in mine..
Code:
root@reflux~#ls -dl /var/db/pkg/.lib* 
drwxr-xr-x  2 root  wheel  512 Jun 13 06:59 /var/db/pkg/.libs-clamav-0.92.1
drwxr-xr-x  2 root  wheel  512 Jun 13 06:58 /var/db/pkg/.libs-curl-7.17.1
drwxr-xr-x  2 root  wheel  512 Jun 13 07:04 /var/db/pkg/.libs-libiconv-1.9.2p5
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 14th June 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Quote:
Originally Posted by jggimi View Post
The best practice for those who use snapshot packages is, in my humble opinion:
  1. Log console output, using script(1) or a similar facility
  2. Use "# pkg_add -iu" to update those packages which will update cleanly.
  3. Review the console output, and manually build packages from ports which are out of sync and fail to update.
  4. Use "# pkg_add -ir <list of packages>" for those packages which failed to update due to a dependent package which was out of sync but will update cleanly once the dependent package is updated.
  5. Run ports/infrastructure/build/out-of-date, and build any out-of-date packages for any ports which do not have packages built for them, either due to FLAVOR or licensing. I ignore packages marked out-of-date if they updated cleanly from the most recent snapshot package updates.
Updated the 3 ports
- unarj
- unrar
- freeze (even though freeze did not change versions it still needed
to be updated)

this was very easy...

Example
Code:
root@reflux/usr/ports/archivers/freeze#make update

===>  Faking installation for freeze-2.5
install -c -s -o root -g bin -m 555 freeze /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/freeze
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/freeze /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/melt
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/freeze /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/unfreeze
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/freeze /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/fcat
install -c -s -o root -g bin -m 555 statist /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/bin/statist
install -c -o root -g bin -m 444 ./freeze.1 /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/freeze.1
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/freeze.1 /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/melt.1
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/freeze.1 /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/unfreeze.1
ln -f /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/freeze.1 /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/fcat.1
install -c -o root -g bin -m 444 ./statist.1 /usr/ports/archivers/freeze/w-freeze-2.5/fake-i386/usr/local/man/man1/statist.1
===>  Building package for freeze-2.5
Create /usr/ports/packages/i386/all/freeze-2.5.tgz
===> Updating for freeze-2.5
Upgrading from freeze-2.5
freeze-2.5 (extracting): complete                                                                
freeze-2.5 (deleting): complete                                                                  
freeze-2.5 (installing): complete
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 14th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Fwiw, fresh install from
-snapshots OpenBSD 4.3-current (GENERIC) #887: Tue Jun 3 13:36:55 MDT 2008
and
cvs Jun 14 00:54

make install clean on everything
no single warning (but Perl asking me to set some LC env variables).

Sensibly faster than my "upgrade" of last week-end.
Postgresql, motv, browser, java, mail, XFCE4 full, ... working after 18 hours compiling on a Celeron 2.4 MHz, I am in business.

No need for linking to some lost libraries.
Fresh install is the way to go for OpenBSD pre-4.5
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 15th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Snapshot dated June 14 has libc.so.46.0,
when I asked if next OpenBSD would be 5.0 ?

Hard times to get snapshots and packages sync'd currently.
Better wait until the dust settles.
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 15th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Rapid development during Hackathons is normally expected. Even when theo@ calls for testing during Hackations, I recommend those brand new to -current should delay until after the pace of development returns to normal.
Reply With Quote
Old 12th July 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

Quote:
Originally Posted by jggimi View Post
Rapid development during Hackathons is normally expected. Even when theo@ calls for testing during Hackations, I recommend those brand new to -current should delay until after the pace of development returns to normal.
Looks like the Hackathons are over.. and -current has reached
4.4 beta..
Is it safe to upgrade..??
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 12th July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by roundkat View Post
Is it safe to upgrade..??
Yes, & it is encouraged given that problems identified & reported now still may have a chance of being fixed before release.
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
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
Updating FreeBSD carpman FreeBSD Installation and Upgrading 6 26th October 2008 11:49 AM
Problem updating fusefs-kmod Malakim FreeBSD Ports and Packages 6 25th July 2008 12:40 PM


All times are GMT. The time now is 04:21 AM.


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