Opened 9 years ago

Closed 9 years ago

#49222 closed defect (fixed)

Problems upgrading root6 (after installation step)

Reported by: graziosi.angelo@… Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cjones051073 (Chris Jones)
Port: root6

Description

When I upgraded to El capitan, the upgrade of root6 went very well. No problem.

Today there was a new version of root6. It ws built and installed ok, but then there were problems:

$ sudo port outdated
The following installed ports are outdated:
glib2                          2.44.1_1 < 2.46.0_0
root6                          6.04.02.99_0 < 6.04.04_0
xorg-kbproto                   1.0.6_0 < 1.0.7_0
xorg-libfontenc                1.1.2_0 < 1.1.3_0
xorg-libXaw                    1.0.12_0 < 1.0.13_0
xorg-libxcb                    1.11_1 < 1.11.1_0
xorg-libXi                     1.7.4_0 < 1.7.5_0
xorg-libxkbfile                1.0.8_0 < 1.0.9_0
xorg-libXrandr                 1.4.2_0 < 1.5.0_0
xorg-libXt                     1.1.4_0 < 1.1.5_0
xorg-randrproto                1.4.1_0 < 1.5.0_0
xorg-xproto                    7.0.27_1 < 7.0.28_0
xrender                        0.9.8_0 < 0.9.9_0


$ sudo port upgrade outdated
--->  Computing dependencies for glib2
--->  Fetching archive for glib2
[...]
--->  Computing dependencies for root6
--->  Fetching archive for root6
[...]
--->  Attempting to fetch root-6-04-04.tar.gz from https://github.com/root-mirror/root/tarball/v6-04-04
      [•   •   •   •   •   •   •   •   •   ]   71.9 MiB     speed: 183.4 KiB/s
[...]
itory/macports/distfiles/root6
Error: org.macports.fetch for port root6 returned: fetch failed
Please see the log file for port root6 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_root6/root6/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets


$ sudo port clean root6

$ sudo port upgrade outdated
-->  Computing dependencies for root6
--->  Fetching archive for root6
--->  Attempting to fetch root6-6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/root6
[...]
--->  Attempting to fetch root-6-04-04.tar.gz from https://github.com/root-mirror/root/tarball/v6-04-04
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
--->  Building root6
--->  Staging root6 into destroot
--->  Installing root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Computing dependencies for root6
--->  Deactivating root6 @6.04.02.99_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Activating root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
======================================================================================
  To make root6 your default root version, run 'sudo port select root root6'
======================================================================================
--->  Cleaning root6
--->  Computing dependencies for xorg-libfontenc
--->  Fetching archive for xorg-libfontenc
--->  Attempting to fetch xorg-libfontenc-1.1.3_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/xorg-libfontenc
--->  Attempting to fetch xorg-libfontenc-1.1.3_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/xorg-libfontenc
--->  Attempting to fetch xorg-libfontenc-1.1.3_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/xorg-libfontenc
--->  Fetching distfiles for xorg-libfontenc
--->  Attempting to fetch libfontenc-1.1.3.tar.bz2 from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/xorg-libfontenc
--->  Attempting to fetch libfontenc-1.1.3.tar.bz2 from http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/
--->  Verifying checksums for xorg-libfontenc
--->  Extracting xorg-libfontenc
--->  Configuring xorg-libfontenc
--->  Building xorg-libfontenc
--->  Staging xorg-libfontenc into destroot
--->  Installing xorg-libfontenc @1.1.3_0
--->  Cleaning xorg-libfontenc
--->  Computing dependencies for xorg-libfontenc
--->  Deactivating xorg-libfontenc @1.1.2_0
--->  Cleaning xorg-libfontenc
--->  Activating xorg-libfontenc @1.1.3_0
--->  Cleaning xorg-libfontenc
--->  Computing dependencies for xorg-libxkbfile
--->  Fetching archive for xorg-libxkbfile
--->  Attempting to fetch xorg-libxkbfile-1.0.9_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/xorg-libxkbfile
--->  Attempting to fetch xorg-libxkbfile-1.0.9_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/xorg-libxkbfile
--->  Attempting to fetch xorg-libxkbfile-1.0.9_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/xorg-libxkbfile
--->  Fetching distfiles for xorg-libxkbfile
--->  Attempting to fetch libxkbfile-1.0.9.tar.bz2 from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/xorg-libxkbfile
--->  Attempting to fetch libxkbfile-1.0.9.tar.bz2 from http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/
--->  Verifying checksums for xorg-libxkbfile
--->  Extracting xorg-libxkbfile
--->  Configuring xorg-libxkbfile
--->  Building xorg-libxkbfile
--->  Staging xorg-libxkbfile into destroot
--->  Installing xorg-libxkbfile @1.0.9_0
--->  Cleaning xorg-libxkbfile
--->  Computing dependencies for xorg-libxkbfile
--->  Deactivating xorg-libxkbfile @1.0.8_0
--->  Cleaning xorg-libxkbfile
--->  Activating xorg-libxkbfile @1.0.9_0
--->  Cleaning xorg-libxkbfile
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 444 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     root6 @6.04.04 +avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Computing dependencies for root6
--->  Cleaning root6
--->  Scanning binaries for linking errors
--->  Found 444 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     root6 @6.04.04 +avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Computing dependencies for root6
--->  Fetching distfiles for root6
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
--->  Building root6
--->  Staging root6 into destroot
--->  Deactivating root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Uninstalling root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Computing dependencies for root6
--->  Installing root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Activating root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
======================================================================================
  Making root6 your default root version. To change this run 'sudo port select root'
======================================================================================
--->  Cleaning root6
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 444 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     root6 @6.04.04 +avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Computing dependencies for root6
--->  Fetching distfiles for root6
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
--->  Building root6
--->  Staging root6 into destroot
--->  Deactivating root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Uninstalling root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Cleaning root6
--->  Computing dependencies for root6
--->  Installing root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
--->  Activating root6 @6.04.04_0+avahi+cocoa+fftw3+fitsio+gcc5+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python34+roofit+soversion+sqlite3+ssl+tmva+vc+xml+xrootd
======================================================================================
  Making root6 your default root version. To change this run 'sudo port select root'
======================================================================================
--->  Cleaning root6
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 444 broken file(s), matching files to ports
Error: Port root6 is still broken after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Port root6 still broken after rebuilding 3 time(s)
    while executing
"error "Port $portname still broken after rebuilding [expr {$broken_port_counts($portname) - 1}] time(s)""
    (procedure "revupgrade_scanandrebuild" line 280)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_upgrade" line 25)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

At this point, I don't know how to do. I never had this situation before.

Angelo

Change History (6)

comment:1 Changed 9 years ago by mojca (Mojca Miklavec)

The problem was already solved, but see:

The commit and revision upgrade didn't proliferate to users. On the other hand the build of the latest version on the buildbot failed because of #49221.

You can fetch the Portfile from SVN or apply the following patch in the meantime:

--- Portfile	(revision 141182)
+++ Portfile	(revision 141191)
@@ -13,6 +13,7 @@
 #github.setup       root-mirror root <sha>
 github.setup        root-mirror root 6-04-04 v
 version             6.04.04
+revision            1
 
 # this could be a better way to set the version (unless we use a sha sum for the git tag ;)
 # version           [string map {- .} $version]
@@ -72,6 +73,7 @@
                     -Drpath=ON \
                     -DCMAKE_INSTALL_PREFIX="${install_prefix}" \
                     -DCMAKE_INSTALL_SYSCONFDIR="${install_prefix}/etc/root" \
+                    -DCMAKE_INSTALL_NAME_DIR="${install_prefix}/lib/root" \
                     -Dfortran=OFF \
                     -Dbuiltin_freetype=ON \
                     -Dbuiltin_glew=OFF \

comment:2 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: jonesc@… added; onesc@… mojca@… removed
Keywords: rev-upgrade removed
Owner: changed from macports-tickets@… to mojca@…
Version: 2.3.4

I'm also fixing a typo in the email. I would close the ticket as (theoretically) resolved in r141188, but I will leave it open just in case other users stumble against the same problem until the updates start flowing in again.

comment:3 in reply to:  2 Changed 9 years ago by graziosi.angelo@…

Replying to mojca@…:

I'm also fixing a typo in the email. I would close the ticket as (theoretically) resolved in r141188, but I will leave it open just in case other users stumble against the same problem until the updates start flowing in again.

Sorry, but I don't understand. I have just done this:

$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.4 installed,
MacPorts base version 2.3.4 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

$ sudo port outdated
No installed ports are outdated.

but:

$ root -l
dyld: Library not loaded: /opt/local/lib/libRint.6.so
  Referenced from: /opt/local/libexec/root6/bin/root.exe
  Reason: image not found

So, how can I fix my MacPorts installation? Please, explain step by step.

Angelo

comment:4 Changed 9 years ago by mojca (Mojca Miklavec)

I can try to explain, but if you are ok asking again on the list, I would suggest you to do so as you might get better answers there (and there might be other users experiencing the same problem).

0.) In my opinion the best temporary solution would be to deactivate the latest root installation and activate the previous working version. I don't think there have been any dramatic changes. You just need to remember to upgrade it again when upgrades start working.

1.) You have to either

2.) You need a patched version of the Portfile. At some temporary place run

svn co https://svn.macports.org/repository/macports/trunk/dports/science/root6

and take the Portfile that you get (either overwrite the file in MacPorts or place it in your local repository).

3.) Run portindex, the port outdated should show you root6 and then sudo port upgrade root6.

(Don't forget to either update or remove the file from local repository after a while.)

comment:5 Changed 9 years ago by cjones051073 (Chris Jones)

... or, just wait until the issue affecting the generation of the port tarball is fixed, which hopefully will not be too long...

comment:6 in reply to:  5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to jonesc@…:

... or, just wait until the issue affecting the generation of the port tarball is fixed, which hopefully will not be too long...

Yes, this was fixed.

Note: See TracTickets for help on using tickets.