Hi, as a mac and macports beginner I have a few questions. 1) if I do port upgrade outdated does it use the same variants options (like +x11) as was used for the older version of the package beeing upgraded? How can I find out that the file /opt/local/etc/ports/variants.conf is used - these should be globaly defined variants, but I can't see if its used or not.... 2) Is there a way/option to see what will port install something do, which dependencies will be included in the installation? Comming from gentoo linux their port system command emerge had and --pretend option which would just report what is going to be done but would not do it for real. Is there something similar here? Best regards, J.
Hi, Am 03.03.2007 um 18:10 schrieb Jaroslav Hron:
Hi, as a mac and macports beginner I have a few questions.
Using it since two month but I think I can answer most of it.
1) if I do port upgrade outdated does it use the same variants options (like +x11) as was used for the older version of the package beeing upgraded?
Yes, and it should tell what it does as soon as you issue the command. It should not hurt trying, at least if you are running with archiving turned on. The first thing it does is deactivating the currently installed port (note: not uninstalling it) you can easily type command-c and reactivate in case you are not happy with what port tells what it is going to do.
How can I find out that the file /opt/local/etc/ports/variants.conf is used - these should be globaly defined variants, but I can't see if its used or not....
This has to be activated in ports.conf first.
2) Is there a way/option to see what will port install something do, which dependencies will be included in the installation?
No, there was a recent discussion about the usefulness of such a "pretend" or "dry run" feature. There were no objections but no cheering crowds either. You could be one more supporter of such a feature request. Best if you were able to implement it, because I believe that is why we dont have this feature yet - it takes a skillful person to make it happen. Bye, Christian
2) Is there a way/option to see what will port install something do, which dependencies will be included in the installation?
No, there was a recent discussion about the usefulness of such a "pretend" or "dry run" feature. There were no objections but no cheering crowds either. You could be one more supporter of such a feature request. Best if you were able to implement it, because I believe that is why we dont have this feature yet - it takes a skillful person to make it happen.
I know it's not quite the same, but in case Jaroslav doesn't know about it: you can at least use the "port deps" command to see what the dependencies are. Dan
How can I find out that the file /opt/local/etc/ports/variants.conf is used - these should be globaly defined variants, but I can't see if its used or not....
This has to be activated in ports.conf first.
I have the same question. I have configured in ports.conf like below: 20 # Where to find global variants definition file (optional) 21 variants_conf /opt/local/etc/ports/variants.conf And, I added two variants, +multibyte, +ruby in /opt/local/etc/ports/ variants.conf 12 # Example: 13 # +ipv6 +no_x11 14 +multibyte +ruby BUT, I cannot see that variants are used. For example, when I try to build VIM, just type "port -vd install vim", the result is --------------------------------------- Coffee:~ jenix$ sudo port -vd install vim Password: DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/editors/vim DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/editors/vim DEBUG: Requested variant darwin is not provided by port vim. DEBUG: Requested variant i386 is not provided by port vim. DEBUG: Requested variant macosx is not provided by port vim. DEBUG: Executing variant darwin_i386 provides darwin_i386 DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/gettext --------------------------------------- there is no any variants used. BUT, when I try to build VIM with "port -vd install vim +multibyte +ruby", --------------------------------------- Coffee:~ jenix$ sudo port -vd install vim +multibyte +ruby DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/editors/vim DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/editors/vim DEBUG: Requested variant darwin is not provided by port vim. DEBUG: Requested variant i386 is not provided by port vim. DEBUG: Requested variant macosx is not provided by port vim. DEBUG: Executing variant multibyte provides multibyte DEBUG: Executing variant ruby provides ruby DEBUG: Executing variant darwin_i386 provides darwin_i386 --------------------------------------- You can see that ruby, multibyte variants have been activated. What's wrong with me? Could you give me any advice? --------------------------------------- Park, Jin Hyung jenix@jinhyung.org http://jinhyung.org
Thanks for the hints... Ok you are right it seems to use the same variants, but one learnes about it only after all the compilation is over.... (this is even with the -v option...) ---> Fetching ImageMagick ---> ImageMagick-6.3.2-9.tar.bz2 doesn't seem to exist in /opt/local/ var/db/dports/distfiles/ImageMagick ---> Attempting to fetch ImageMagick-6.3.2-9.tar.bz2 from http:// imagemagick.linux-mirror.org/download/ ---> Verifying checksum(s) for ImageMagick ---> Checksumming ImageMagick-6.3.2-9.tar.bz2 ---> Extracting ImageMagick ---> Extracting ImageMagick-6.3.2-9.tar.bz2 ---> Configuring ImageMagick ---> Building ImageMagick with target all ---> Staging ImageMagick into destroot ---> Compressing man pages for ImageMagick ---> Deactivating ImageMagick 6.3.2-4_0+darwin_8+jpeg2 ---> Installing ImageMagick 6.3.2-9_0+darwin_8+jpeg2 ---> Activating ImageMagick 6.3.2-9_0+darwin_8+jpeg2 would it be better to print first what is going to be done, something like ---> Upgrading ImageMagick 6.3.2-4_0+darwin_8+jpeg2 -> 6.3.2-9_0 +darwin_8+jpeg2 Just sugestion... Thanks, J. On Mar 3, 2007, at 20:53 , Christian Voelker wrote:
Hi,
Am 03.03.2007 um 18:10 schrieb Jaroslav Hron:
Hi, as a mac and macports beginner I have a few questions.
Using it since two month but I think I can answer most of it.
1) if I do port upgrade outdated does it use the same variants options (like +x11) as was used for the older version of the package beeing upgraded?
Yes, and it should tell what it does as soon as you issue the command. It should not hurt trying, at least if you are running with archiving turned on. The first thing it does is deactivating the currently installed port (note: not uninstalling it) you can easily type command-c and reactivate in case you are not happy with what port tells what it is going to do.
Bye, Christian
2) Is there a way/option to see what will port install something do, which dependencies will be included in the installation?
No, there was a recent discussion about the usefulness of such a "pretend" or "dry run" feature. There were no objections but no cheering crowds either. You could be one more supporter of such a feature request. Best if you were able to implement it, because I believe that is why we dont have this feature yet - it takes a skillful person to make it happen.
I know it's not quite the same, but in case Jaroslav doesn't know about it: you can at least use the "port deps" command to see what the dependencies are.
That is close - it would be enough to mark in the output of "port deps" those which are installed/active by some sign or the installed version+variants I know :-) i am welcomed to implement it.... Bye, J.
Dan _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (4)
-
Christian Voelker
-
Dan Stowell
-
Jaroslav Hron
-
Park Jin Hyung