0compile on OS X

Thomas Leonard <[email protected]> Thu, 10 Sep 2015 16:01:33 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy8g=nAyyz07griagpTujyWAoLq8Zu0rDJ8cW+p4f-v1mA@mail.gmail.com>
On 10 September 2015 at 12:36, Thomas Leonard <[email protected]> wrote:
> On 9 September 2015 at 20:44, Ilja Honkonen <[email protected]> wrote:
>>> Does this work?
>>> python2 -c 'import gobject'
>>
>> After creating python2 -> python2.7 symlink import works but I still get:
>>
>> 0install --console select --version 1.4
>> http://0install.net/2006/interfaces/0compile.xml
>> Can't find all required implementations:
>>
>> - http://0install.net/2006/interfaces/0compile.xml -> 1.4
>> (sha1new=f1034557f5d41c09bbffdc1bffee69dcff9c7a14)
>>      User requested version 1.4
>> - http://0install.net/2006/interfaces/0publish -> 0.25
>> (sha1new=bc06f0a2023fba486929e28dfbbfe42d2a43d4b1)
>> - http://0install.net/2007/interfaces/ZeroInstall.xml -> 2.3.5
>> (sha1new=6f4892dfcb947a03dd3b89f04b2d0650e871a060)
>>      http://0install.net/2006/interfaces/0compile.xml 1.4 requires
>> version 2.1..
>>      http://0install.net/2006/interfaces/0compile.xml 1.4 requires
>> '0install' command
>> - http://repo.roscidus.com/python/python -> 2.7.10-3
>> (package:macports:python27:2.7.10-3:*)
>>      python27: PackageKit not available: Failed to get D-BUS system bus
>>      python26: PackageKit not available: Failed to get D-BUS system bus
>>      python25: PackageKit not available: Failed to get D-BUS system bus
>>      http://0install.net/2007/interfaces/ZeroInstall.xml 2.3.5 requires
>> version 2.6..!3 | 3.2.2..
>> - http://repo.roscidus.com/python/python-gobject -> (problem)
>>      python-gobject2: PackageKit not available: Failed to get D-BUS
>> system bus
>>      pygobject2: PackageKit not available: Failed to get D-BUS system bus
>>      python3-gobject: PackageKit not available: Failed to get D-BUS
>> system bus
>>      No known implementations at all
>> - http://repo.roscidus.com/security/gnupg -> 1.4.19-0
>> (package:macports:gnupg:1.4.19-0:*)
>>      http://0install.net/2007/interfaces/ZeroInstall.xml 2.3.5 requires
>> 'run' command
>>
>>
>> I have installed python-gobject but port calls it py-gobject if that
>> matters:
>> py-gobject @2.28.6_3 (python, gnome)
>>      Python bindings for GObject.
>>
>> py-gobject3 @3.16.2 (python, gnome)
>>      Python bindings for GObject, version 3
>
> Testing on Travis's OS X build machine, this fixed it for me:
>
>   brew install pygobject
>
> Today, I've been trying to get Travis to compile GNU-Hello through
> 0compile on each build of 0install. It was initially failing because
> there's no OS X 0install binary for "make". I've now extended
> 0install's Darwin support to find the native version. I've also made a
> branch of 0comple that uses the OCaml version of 0install (for
> "0compile build"; not yet for "autocompile").
>
> However, it's rather hard to test, because you need to run 0compile
> with the dev version of 0install, which requires adding its feed,
> which is only generated when compiling with 0compile, which requires
> the dev version of 0install to find make...

I've modified 0install to build a simple feed.xml itself if not run
under 0compile. This is enough to bootstrap 0compile, which is now
building GNU-Hello using the OCaml solver automatically under Travis:

https://travis-ci.org/0install/0install/builds/79671200

> Possibly it works with macports though, since otherwise I don't know
> how the official 0install OS X binary is generated!


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140