Check for binaries

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Check for binaries

Adam Dershowitz Ph.D., P.E.
Is there any way to check if a specific port will be installed as a binary or built from source.  I’m looking for a flag that would just check if a binary is available for my particular configuration?  I’m looking for something similar to “dry run”  (-y).  I did try -y on the hopes that it would show what would try to download, but even with -v it doesn’t show that level of detail.  

Thanks,


--Adam



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Check for binaries

Brandon Allbery
On Tue, Mar 28, 2017 at 4:34 PM, Adam Dershowitz <[hidden email]> wrote:
Is there any way to check if a specific port will be installed as a binary or built from source.

The problem with this is that often the decision is made based on whether it can fetch a prebuilt binary: if the fetch fails, it builds from source.

--
brandon s allbery kf8nh                               sine nomine associates
[hidden email]                                  [hidden email]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Check for binaries

Kenneth F. Cunningham
In reply to this post by Adam Dershowitz Ph.D., P.E.
you can specify in your macports.conf, or on the command line for one-offs, that you only want to install binaries.

sudo port -b install my-big-port

will install the binary if it exists, or abort.


Ken



On 2017-03-28, at 1:34 PM, Adam Dershowitz wrote:

> Is there any way to check if a specific port will be installed as a binary or built from source.  I’m looking for a flag that would just check if a binary is available for my particular configuration?  I’m looking for something similar to “dry run”  (-y).  I did try -y on the hopes that it would show what would try to download, but even with -v it doesn’t show that level of detail.  
>
> Thanks,
>
>
> --Adam
>
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Check for binaries

Adam Dershowitz Ph.D., P.E.
In reply to this post by Brandon Allbery


On Mar 28, 2017, at 4:42 PM, Brandon Allbery <[hidden email]> wrote:

On Tue, Mar 28, 2017 at 4:34 PM, Adam Dershowitz <[hidden email]> wrote:
Is there any way to check if a specific port will be installed as a binary or built from source.

The problem with this is that often the decision is made based on whether it can fetch a prebuilt binary: if the fetch fails, it builds from source.


I understand.  I was hoping for something that verifies if the binary is there, and then reports back.  Perhaps it would have to start the download, then cancel?  

—Adam


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Check for binaries

Adam Dershowitz Ph.D., P.E.
In reply to this post by Kenneth F. Cunningham
So, I guess I could do that, and then cancel if it starts to download.  That’s a bit of a work around, but should do the job.

--Adam



> On Mar 28, 2017, at 4:48 PM, Ken Cunningham <[hidden email]> wrote:
>
> you can specify in your macports.conf, or on the command line for one-offs, that you only want to install binaries.
>
> sudo port -b install my-big-port
>
> will install the binary if it exists, or abort.
>
>
> Ken
>
>
>
> On 2017-03-28, at 1:34 PM, Adam Dershowitz wrote:
>
>> Is there any way to check if a specific port will be installed as a binary or built from source.  I’m looking for a flag that would just check if a binary is available for my particular configuration?  I’m looking for something similar to “dry run”  (-y).  I did try -y on the hopes that it would show what would try to download, but even with -v it doesn’t show that level of detail.  
>>
>> Thanks,
>>
>>
>> --Adam
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Check for binaries

Kenneth F. Cunningham
In reply to this post by Adam Dershowitz Ph.D., P.E.
There is also this:

https://packages.macports.org/

which will show you which prebuilt packages exist.

eg

https://packages.macports.org/qt4-mac/

that might help you out as well.

K


On 2017-03-28, at 1:34 PM, Adam Dershowitz wrote:

> Is there any way to check if a specific port will be installed as a binary or built from source.  I’m looking for a flag that would just check if a binary is available for my particular configuration?  I’m looking for something similar to “dry run”  (-y).  I did try -y on the hopes that it would show what would try to download, but even with -v it doesn’t show that level of detail.  
>
> Thanks,
>
>
> --Adam
>
>
>

Loading...