Opened 14 years ago

Closed 14 years ago

#25459 closed defect (fixed)

qt4-mac - 4.6.3 Install error

Reported by: jiangdzh@… Owned by: michaelld (Michael Dickens)
Priority: High Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: diegotheblind+macports@…, nerdling (Jeremy Lavergne), soehn@…, dershow, adfernandes (Andrew Fernandes), rostamzaal@…, clusty1@…, marcel-k@…, nicolabrisotto@…, emanuel@…
Port: qt4-mac

Description

I tried to upgrade qt4-mac this morning, but met the following error. (I also tried to uninstall the old version and reinstall, the same problem).

I'm on Mac OS X version 10.6.4, Xcode version 3.2.2 64-bit.

BTW, the log file is also attached.

Thanks

version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main pkgconfig 0.25_0 exists in the ports tree
:debug:main pkgconfig 0.25_0 +universal is the latest installed
:debug:main pkgconfig 0.25_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
:debug:main OS darwin/10.4.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! pkgconfig 0.25_0 >= pkgconfig 0.25_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main qt4_select 0.3_0 exists in the ports tree
:debug:main qt4_select 0.3_0  is the latest installed
:debug:main qt4_select 0.3_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/qt4_select
:debug:main OS darwin/10.4.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
:debug:main only one arch supported, so not adding the default universal variant
:debug:main No need to upgrade! qt4_select 0.3_0 >= qt4_select 0.3_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.5_0 exists in the ports tree
:debug:main zlib 1.2.5_0  is the latest installed
:debug:main zlib 1.2.5_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
...
...
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3/mkspecs/wincewm65professional-msvc2005 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/mkspecs/
:info:destroot cp -f -R /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3/mkspecs/wincewm65professional-msvc2008 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/mkspecs/
:debug:destroot Executing proc-post-org.macports.destroot-destroot-0
:error:destroot Target org.macports.destroot returned: xinstall: Cannot stat: , No such file or directory
:debug:destroot Backtrace: xinstall: Cannot stat: , No such file or directory
    while executing
"$post $targetname"
:info:destroot Warning: the following items did not execute (for qt4-mac): org.macports.activate org.macports.destroot org.macports.install
:notice:destroot Log for qt4-mac is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/main.log

Attachments (2)

main.log.zip (50.7 KB) - added by jiangdzh@… 14 years ago.
Install log file
main.log 2.zip (50.7 KB) - added by jiangdzh@… 14 years ago.

Download all attachments as: .zip

Change History (49)

Changed 14 years ago by jiangdzh@…

Attachment: main.log.zip added

Install log file

comment:1 Changed 14 years ago by diegotheblind+macports@…

Cc: diegotheblind+macports@… added

Cc Me!

comment:2 Changed 14 years ago by michaelld (Michael Dickens)

Owner: changed from macports-tickets@… to michaelld@…

My bad. Forgot a ${destroot} in the installation of select files. I'm checking in a fix right now (to r69297), could you try:

sudo port sync
sudo port -f -o destroot qt4-mac

and see if it make it all the way through. If so, IMHO you can go ahead and install it (same command, just with 'install' instead) & then wait for the next revision before having to recompile (since that takes so long). If not, let me know.

comment:3 Changed 14 years ago by jiangdzh@…

Hi,

I just tried your commands and got the same problem. Again the log file was attached (named as main.log 2.zip)

Thanks very much for your response anyway.

Changed 14 years ago by jiangdzh@…

Attachment: main.log 2.zip added

comment:4 Changed 14 years ago by nerdling (Jeremy Lavergne)

Perhaps the problem is in the select group (I commented out post-destroot in qt4-mac and it still gave the same error in post-destroot).

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:6 Changed 14 years ago by soehn@…

Cc: soehn@… added

Cc Me!

comment:7 Changed 14 years ago by nerdling (Jeremy Lavergne)

When I comment out the post-destroot from the PortGroup (and leave the Portfile untouched) destroot completes successfully.

comment:8 Changed 14 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:9 Changed 14 years ago by nerdling (Jeremy Lavergne)

It seems the select PortGroup wants select.file defined, which it doesn't seem to be. This would be to the ${filespath}/qt4-mac file. Commenting out the post-destroot function in the PortGroup let's destroot proceed and afterwords I manually made the directories and copied the file in. Destroot and Install completed successfully. Activate phase has the comma show up again.

comment:10 Changed 14 years ago by adfernandes (Andrew Fernandes)

Cc: adfernandes@… added

Cc Me!

comment:11 Changed 14 years ago by nerdling (Jeremy Lavergne)

Another thing I've noticed: in the Portfile's post-activate: the first if/else of xinstalls has select_port instead of select_group

comment:12 Changed 14 years ago by rostamzaal@…

I would like to state that I am encountering the very same error when attempting to install qt4-mac-devel. I can provide log files if necessary, but the error is the same.

comment:13 Changed 14 years ago by rostamzaal@…

Cc: rostamzaal@… added

Cc Me!

comment:14 Changed 14 years ago by michaelld (Michael Dickens)

Thanks for all the feedback; I'm working on it right now & will have a fix tonight.

comment:15 Changed 14 years ago by jmroot (Joshua Root)

Keywords: qt4-mac removed
Port: qt4-mac added

comment:16 Changed 14 years ago by clusty1@…

Cc: clusty1@… added

Cc Me!

comment:17 Changed 14 years ago by michaelld (Michael Dickens)

For those developers listening, I think the issue (as pointed to by snc above) is at dports/_resources/port1.0/group/select-1.0.tcl:55

    if {${select.file} != "" || ${select.group} != ""} {
because I've set ${select.group} but not ${select.file} [because I'm not sure which file to install until I know the user's chosen variant (with or without debug)]. This line fails because of the "
", which I think should be "&&" instead since I think one never wants to install a select file in the manner provided by select::install unless both the file and select group are specified. The comment on line 58 even says as much, so I'd be inclined to make that change.

comment:18 Changed 14 years ago by michaelld (Michael Dickens)

That said, commenting out qt4-mac[-devel] Portfile:11 to read

# select.group        ${select_group}

should also take care of the issue and let destroot finish w/o complaining. I'm compiling right now (w/o debug, to speed things up) to fully verify but I think it'll work. If any of you haven't cleaned qt4-mac yet, you can make the above change to the Portfile and then:

sudo port -o destroot qt4-mac

(with whatever variant is necessary) to check w/o having to recompile.

comment:19 Changed 14 years ago by michaelld (Michael Dickens)

Hopefully fixed in r69314. I'm leaving open until I hear a success story :)

comment:20 Changed 14 years ago by michaelld (Michael Dickens)

OK; now -really- hopefully fixed in r69315.

comment:21 Changed 14 years ago by deever@…

Yes, at least here (still 10.5 and with +mysql +no_debug +odbc +psql) it succeeded.

comment:22 Changed 14 years ago by rostamzaal@…

I have proceeded in my own install of qt4-mac-devel, but still cannot activate successfully. The commands I have given are, in sequence,

sudo port sync

sudo port -f -o destroot qt4-mac-devel

and then sudo port install qt4-mac-devel

but I get, in the Activate stage:

---> Computing dependencies for qt4-mac-devel ---> Installing qt4-mac-devel @4.7.0-beta1_0 ---> Activating qt4-mac-devel @4.7.0-beta1_0 Error: Target org.macports.activate returned: shell command failed Log for qt4-mac-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac-devel/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>

Any help would be greatly appreciated! I am running 10.6.3 and latest XCode

comment:23 Changed 14 years ago by rostamzaal@…

have also attached the relevant part of the log, plenty of missing files - should I also install the standard qt4 package in order to have them?

:info:activate Selecting version "qt4-mac-devel" for qt4
:info:activate ln: /opt/local/Library/Frameworks/Qt3Support.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtCore.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDBus.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDeclarative.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDesigner.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDesignerComponents.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtGui.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtHelp.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtMediaServices.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtMultimedia.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtNetwork.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtOpenGL.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtScript.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtScriptTools.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtSql.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtSvg.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtTest.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtWebKit.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtXml.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtXmlPatterns.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/phonon.framework: No such file or directory
:info:activate there were 21 errors selecting version "qt4-mac-devel"!
:info:activate shell command "/opt/local/bin/qt4_select qt4-mac-devel" returned error 5
:error:activate Target org.macports.activate returned: shell command failed
:debug:activate Backtrace: shell command failed
    while executing
"$post $targetname"
:info:activate Warning: the following items did not execute (for qt4-mac-devel): org.macports.activate
:notice:activate Log for qt4-mac-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac-devel/main.log

comment:24 Changed 14 years ago by marcel-k@…

Cc: marcel-k@… added

Cc Me!

comment:25 Changed 14 years ago by marcel-k@…

I got the same error and fixed it by symlinking the framework files from /usr/local/libexec/qt4-mac/lib, which probably is not the proper way to fix it.

comment:26 in reply to:  22 Changed 14 years ago by michaelld (Michael Dickens)

OK; so I think it looks like qt4-mac[-devel] is now compiling & installing, but it isn't activating because of a 'select' issue (at least with the devel version). I'll go over the select files right now to make sure the various entries are aligned.

comment:27 Changed 14 years ago by michaelld (Michael Dickens)

For those who tried the -devel version, could you now try:

sudo port install qt4-mac

with the variant(s) of your choice. At the very end, during activate, 'port' should print out a message about how to finish the install, so do that as

sudo qt4_select qt4-mac

and now if you do

qmake -v

it should return something like

QMake version 2.01a
Using Qt version 4.6.3 in /opt/local/libexec/qt4-mac/lib

I know it'll take a few hours to do the above, but it would be a useful piece of info for me. Let me know if there are issues / errors along the way. Thanks!

comment:28 Changed 14 years ago by nerdling (Jeremy Lavergne)

I've not tried the -devel version, but the regular built for me.

comment:29 Changed 14 years ago by nerdling (Jeremy Lavergne)

One thing I might suggest is making the no_debug/no_examples/no_demos the default … it builds so much faster and lighter without them. I also don't see any value add-in having them at what seems to be such an expense. Do you have any reservations on not disabling the same options by default?

comment:30 Changed 14 years ago by michaelld (Michael Dickens)

@snc: Thanks! That's 2 successes ... I think the qt4-mac port is working again now.

I checked the select files for all of the qt4-* ports, and they're all aligned correctly. The 'none' one (as installed by qt4_select) didn't have enough entries, but I don't think that would cause the issues listed above. I'm hopeful that those with issues with qt4-mac-devel will not have them with qt4-mac -- that this was a transitional issue with the various changes to the portfile and just requires a 'clean' to be resolved.

comment:31 Changed 14 years ago by michaelld (Michael Dickens)

I have no issue with making all those "no_*" as default variants. My initial goal is to get the port upgraded in version and using select. Then, whatever comes next in dealing with them -- e.g., qmake has some issues that other ports would benefit from being fixed, which might be upstream or local, so investigating those a bit. I'll email the MP-dev list w/ this query, since I think qt4-mac (at least) is ready for that change.

comment:32 Changed 14 years ago by michaelld (Michael Dickens)

So I think the issues are:

  • For system-provided features (e.g., sqlite3), the include header path is added to the CXXFLAGS, which comes immediately after the ${CXX} command and before ${DEFINES}. Qt provides a variable INCLUDEPATH that is used for all of the other includes. So, I've created a post-patch reinplace to get Qt into appending any external header path to the end of the INCLUDEPATH instead of it being the first path -- this should provide a temporary (and reasonably quick) solution. The values being appended are for CFLAGS, so ideally they would be split into "-I stuff" and "the rest" and appended to those variables separately -- takes too long to work out how to do that, and this patch should work (I'm testing it right now to verify that ${prefix}/include is listed -after- the other -I directories).
  • For many of Qt's 3rd-party extensions, #include's just use the filename, e.g.,
    #include "KURL.h"
    

instead of a subdirectory that would better define the ownership of the file, e.g.,

#include "platform/KURL.h"

When developing a modern reasonably complex project that expects to #include from system or user-installed headers, it's -always- wise to both install into and use directory names for those headers in order to avoid #include'ing the incorrect file.

  • With respect to the previous point, the 'sqlite3' port installs 2 header files directly into ${prefix}/include -- it's this directory that Qt is picking up and including in the CXXFLAGS before all other header paths. So, moving sqlite3's headers into ${prefix}/include/sqlite3 would probably fix this issue as well.

comment:33 Changed 14 years ago by michaelld (Michael Dickens)

Sorry; the above was meant for ticket #20199.

comment:34 Changed 14 years ago by nicolabrisotto@…

Cc: nicolabrisotto@… added

Cc Me!

comment:35 Changed 14 years ago by adfernandes (Andrew Fernandes)

For the record, r69365 worked for me just now.

comment:36 Changed 14 years ago by emanuel@…

Cc: emanuel@… added

Cc Me!

comment:37 Changed 14 years ago by jb.morgado@…

I haven't tried the -devel version, but the qt4-mac fail with the exactly same output has said by the original post owner.

The version being installed was qt4-mac @4.6.3_1

If after the failed activation I try the command:

sudo qt4_select qt4-mac

I get:

Selecting version "qt4-mac" for qt4
ln: /opt/local/Library/Frameworks/Qt3Support.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtAssistant.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtCore.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtDBus.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtDesigner.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtDesignerComponents.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtGui.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtHelp.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtMultimedia.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtNetwork.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtOpenGL.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtScript.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtScriptTools.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtSql.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtSvg.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtTest.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtWebKit.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtXml.framework: No such file or directory
ln: /opt/local/Library/Frameworks/QtXmlPatterns.framework: No such file or directory
ln: /opt/local/Library/Frameworks/phonon.framework: No such file or directory
there were 20 errors selecting version "qt4-mac"!

comment:38 Changed 14 years ago by michaelld (Michael Dickens)

I think I know the issue. Can one of the people with an issue return back:

$ ls /opt/local $ ls /opt/local/Library $ ls /opt/local/Library/Frameworks

Thanks!

comment:39 Changed 14 years ago by michaelld (Michael Dickens)

Sorry; reformat that:

$ ls /opt/local
$ ls /opt/local/Library
$ ls /opt/local/Library/Frameworks 

comment:40 Changed 14 years ago by jb.morgado@…

Well, I don't know what to say.

I did a:

sudo port clean qt4-mac
sudo port install qt4-mac

And now it finished correctly. I really don't understand. I didn't do any update or selfupdate.

comment:41 Changed 14 years ago by emanuel@…

I've the same problem like jb.morgado. Here my full instruction to reproduce it:

  1. Install macports 1.9.1 on MacOS 10.6.3 and do selfupdate.
  1. Check:
    $ ls /opt/local/
    bin     etc     include lib     libexec man     sbin    share   var
    $ ls /opt/local/Library
    ls: /opt/local/Library: No such file or directory
    $ ls /opt/local/Library/Frameworks
    ls: /opt/local/Library/Frameworks: No such file or directory
    
  1. Install qt4-mac @4.6.3_1 (rev69365):
    sudo port install qt4-mac
    

Ends with known error output:

:info:activate Selecting version "qt4-mac" for qt4
:info:activate ln: /opt/local/Library/Frameworks/Qt3Support.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtAssistant.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtCore.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDBus.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDesigner.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtDesignerComponents.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtGui.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtHelp.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtMultimedia.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtNetwork.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtOpenGL.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtScript.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtScriptTools.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtSql.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtSvg.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtTest.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtWebKit.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtXml.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/QtXmlPatterns.framework: No such file or directory
:info:activate ln: /opt/local/Library/Frameworks/phonon.framework: No such file or directory
:info:activate there were 20 errors selecting version "qt4-mac"!
:info:activate shell command "/opt/local/bin/qt4_select qt4-mac" returned error 5
:error:activate Target org.macports.activate returned: shell command failed
  1. Check:
    $ ls /opt/local
    Library bin     etc     include lib     libexec man     sbin    share   var
    $ ls /opt/local/Library
    LaunchAgents    LaunchDaemons
    $ ls /opt/local/Library/Frameworks
    ls: /opt/local/Library/Frameworks: No such file or directory
    
    $ port installed qt4-mac
    qt4-mac @4.6.3_1 (active)
    
  1. Clean and install again:
    $ sudo port clean qt4-mac
    $ sudo port install qt4-mac
    

no errors

Hope it helps to fix the issue.

comment:42 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

This ticket should be fixed in r69496. Please do, in this order:

$ sudo port sync
$ sudo port upgrade qt4_select
$ sudo qt4_select none
$ sudo port deactivate qt4-mac
$ sudo port install qt4-mac [+variants]

with the optional variants as desired. Upgrading with variants doesn't work well yet, in my testing. If all goes well, the errors listed above will not happen. I'm closing this ticket; please reopen if the above doesn't work.

comment:43 Changed 14 years ago by dershow

I just got a minor error while doing an upgrade from 4.6.3_2 to 4.6.3_3 I figured that it is related to this ticket, but since the upgrade did seem to happen, I am not re-opening, but just posting the error message:

---> Computing dependencies for qt4-mac ---> Fetching qt4-mac ---> Verifying checksum(s) for qt4-mac ---> Extracting qt4-mac ---> Applying patches to qt4-mac ---> Configuring qt4-mac ---> Building qt4-mac ---> Staging qt4-mac into destroot ---> Computing dependencies for qt4-mac ---> Installing qt4-mac @4.6.3_3 Error: Target org.macports.deactivate returned: can't read "current_select": no such variable Log for qt4-mac is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_qt4-mac_4.6.3_2/main.log Warning: Failed to execute portfile from registry for qt4-mac @4.6.3_2 ---> Deactivating qt4-mac @4.6.3_2 ---> Activating qt4-mac @4.6.3_3 ---> Cleaning qt4-mac

comment:44 Changed 14 years ago by michaelld (Michael Dickens)

Thanks; I know the issue & will correct it. During "pre-deactivate" qt4-mac is de-selected if it was originally selected -- so it really doesn't matter during an upgrade since the activation could just stay in place. But, it's good to know that that phase is being executed for someone :)

comment:45 Changed 14 years ago by michaelld (Michael Dickens)

Committed in r69555. Thanks again.

comment:46 Changed 14 years ago by jb.morgado@…

Resolution: fixed
Status: closedreopened

The solution presented doesn't work. The port failed while upgrading (before it installed correctly) and even after trying the presented solution it always fails to build with the same error:

t-everywhere-opensource-src-4.6.3/tools/runonphone/runonphone.pro (fast)
  for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3/tools/xmlpatterns/xmlpatterns.pro (fast)
  for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3/tools/xmlpatternsvalidator/xmlpatternsvalidator.pro (fast)

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /opt/local/libexec/qt4-mac

To reconfigure, run 'make confclean' and 'configure'.

--->  Building qt4-mac
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3/bin/qmake -spec mkspecs/macx-g++ -macx -o Makefile projects.pro
make: *** [Makefile] Segmentation fault
make: *** Deleting file `Makefile'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.3" && /usr/bin/make -j2 first " returned error 2
Error: Target org.macports.build returned: shell command failed
Warning: the following items did not execute (for qt4-mac): org.macports.destroot org.macports.build
Log for qt4-mac is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:47 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: reopenedclosed

Your issue is different than the one on this ticket, and is being tracked under ticket #25712 -- so I'm re-closing this ticket. I'll hopefully be checking in a fix for today for the other ticket. Add yourself to CC to that ticket if you desire.

Note: See TracTickets for help on using tickets.