From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Soo Subject: Re: Packaging FreeCAD Date: Tue, 28 May 2019 13:21:36 -0700 Message-ID: References: <4071518a081f8bdf5b119dc774d9876ba8d5bd7b.camel@tourbillion-technology.com> <54206293-2C5D-4F2B-B213-888CAA38C93A@asu.edu> <8973E603-5C06-4E6E-837E-56C15E7599C0@asu.edu> <20190310072511.GB19750@macbook41> Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-4D502626-4132-4FDF-A62F-C398ABFBD503 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVibS-000289-N2 for guix-devel@gnu.org; Tue, 28 May 2019 16:21:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVibR-00011X-04 for guix-devel@gnu.org; Tue, 28 May 2019 16:21:46 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:40608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVibQ-0000z8-F9 for guix-devel@gnu.org; Tue, 28 May 2019 16:21:44 -0400 Received: by mail-pg1-x52d.google.com with SMTP id d30so11643275pgm.7 for ; Tue, 28 May 2019 13:21:41 -0700 (PDT) In-Reply-To: <20190310072511.GB19750@macbook41> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel Cc: Paul Garlick --Apple-Mail-4D502626-4132-4FDF-A62F-C398ABFBD503 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, I have some more news on FreeCAD. - I responded to two tickets in two coin repos that will be needed to updat= e coin and Pivy: + ticket on soqt: https://bitbucket.org/Coin3D/soqt/issues/6/wrong-path-fo= r-soqt_library_dirs + ticket on coin: https://bitbucket.org/Coin3D/coin/issues/175/coin-build-= errors-with-linux-and-osx - FreeCAD is compiling, but there is an install-phase error involving the S= alome library SMESH. FreeCAD bundles smesh and a couple other libraries in t= he source. I inquired on their forum and have a few steps I can try this wee= k. + I would like to use FreeCAD=E2=80=99s versions if possible. What is our s= tance on using bundled libraries? + Advantages of using the SMESH bundled with FreeCAD include not needing t= o package the various Salome libraries needed to compile SMESH. Some of tho= se transitive dependencies include omniORB and opencascade itself. I spent a= lot of this weekend trying to package SMESH and I came to realize that if w= e were to package it, we would need to also package opencascade-occt and we w= ould not be able to use oce which we have already. Thanks for your patience on this. As always, my work is available on master a= t https://github.com/jsoo1/guix-channel. Thanks for your patience on this on= e. It has been a long and instructive exercise. I will be on vacation the co= ming two weeks, so I won=E2=80=99t be able to work on it. I know it=E2=80=99= s already been months, now and I hope it can be done in maybe two more. Hope= fully before the next release of FreeCAD. - John >> On Mar 9, 2019, at 11:25 PM, Efraim Flashner wrot= e: >>=20 >> On Sun, Mar 10, 2019 at 02:14:15AM +0000, John Soo wrote: >> Hi guix, >>=20 >> Just a quick update. I have little to report on freecad. I am still stuck= >> packaging pyside2. I have looked over the debian packaging rules but I am= >> unfamiliar with their packaging process. I did some research and it looks= >> as though they are using the normal pybuild process with some alterations= >> to some paths afterward. The package completely fails to compile for me >> and I am no expert on python build tooling. Here's what I have tried so f= ar >> and the error: https://paste.debian.net/1072533. Any help would be very >> appreciated. >>=20 >> Thanks, >>=20 >> John >>=20 >>>> On Fri, Feb 15, 2019 at 6:33 PM John Soo wrote: >>>=20 >>> Thanks so much Paul! This is really helpful! >>>=20 >>>>> On Feb 15, 2019, at 9:20 AM, Paul Garlick < >>>> pgarlick@tourbillion-technology.com> wrote: >>>>=20 >>>> Hi John, >>>>=20 >>>>> I have been getting a little stuck building the pyside2 dependencies >>>>=20 >>>> There has been an effort to package pyside2 for Debian. This has been >>>> completed in the last six months. >>>>=20 >>>> A good place to look for information is >>>> https://tracker.debian.org/pkg/pyside2 >>>>=20 >>>> You can browse the source code and follow the links to the 'debian' >>>> directory, which contains the files that govern the packaging process. >>>> In general for Debian packages, the 'rules' file is worth reading and >>>> the 'patches' directory has the changes to the upstream code. >>>>=20 >>>> One element that could be important in Guix is an update of patchelf to= >>>> a recent commit (see 'update-patchelf.patch' in the patches directory).= >>>>=20 >>>> Best regards, >>>>=20 >>>> Paul. >=20 > I haven't tried building it myself yet, but two things come to mind: > Try using qtbase instead of qt, it has a much smaller footprint and will > likely be requested when it's time to include the package in Guix. >=20 > You're using version 5.12.1, and in Guix we have qt 5.11.3. It's likely > the errors you're getting are because the version of Qt is different. >=20 > --=20 > Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D= =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > Confidentiality cannot be guaranteed on emails sent or received unencrypte= d --Apple-Mail-4D502626-4132-4FDF-A62F-C398ABFBD503 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I have some more news on FreeCAD.

 - I responded to two tickets in t= wo coin repos that will be needed to update coin and Pivy:
 - FreeCAD is compiling, but there is an install-phase error involving= the Salome library SMESH. FreeCAD bundles smesh and a couple other librarie= s in the source. I inquired on their forum and have a few steps I can try th= is week.
  + I would like to use FreeCAD=E2=80=99= s versions if possible. What is our stance on using bundled libraries?
=
  + Advantages of using the SMESH bundled with FreeCAD= include not needing to package the various Salome libraries needed to compi= le SMESH.  Some of those transitive dependencies include omniORB and op= encascade itself. I spent a lot of this weekend trying to package SMESH and I= came to realize that if we were to package it, we would need to also packag= e opencascade-occt and we would not be able to use oce which we have already= .

Thanks for your patience o= n this. As always, my work is available on master at https://github.com/jsoo1/guix-channel. T= hanks for your patience on this one. It has been a long and instructive exer= cise. I will be on vacation the coming two weeks, so I won=E2=80=99t be able= to work on it. I know it=E2=80=99s already been months, now and I hope it c= an be done in maybe two more. Hopefully before the next release of FreeCAD.<= /div>

- John

On Mar 9, 2019, at 11:25 PM, Efraim Flashner <efraim@flashner.co.il> wrote:

On Sun, Mar 10, 2019 at 02:14:15A= M +0000, John Soo wrote:
Hi guix,<= /span>

Just a quick update. I have little to rep= ort on freecad. I am still stuck
packaging pyside2. I have looked over the debian packaging rules= but I am
unfamiliar w= ith their packaging process. I did some research and it looks
as though they are using the normal= pybuild process with some alterations
to some paths afterward.  The package completely fail= s to compile for me
a= nd I am no expert on python build tooling. Here's what I have tried so far
and the error: https://paste.debian.net/1072533. A= ny help would be very
appreciated.
=
Thanks,

John
=
On Fri, Feb 15, 2019= at 6:33 PM John Soo <jsoo1@asu.edu&= gt; wrote:
Than= ks so much Paul! This is really helpful!

On Feb 15, 2019, at 9:20 AM, Paul Garlick <
pgarlick@tourbillion-technology.com> wrote:

Hi John,
=
=
I have been getting a little stuck building the pyside2 dependencies=

There has been an effor= t to package pyside2 for Debian.  This has been
=
completed in the last six months.

<= blockquote type=3D"cite">A good place to look for information is
https://tracker.debian.org/pkg/pyside2=

<= /blockquote>
You can browse the source code and follow t= he links to the 'debian'
= directory, which contains the files that govern the packaging process.=
=
In general for Deb= ian packages, the 'rules' file is worth reading and
<= /blockquote>
the 'patches' directory has the changes to t= he upstream code.
<= /span>
<= blockquote type=3D"cite">
One element that co= uld be important in Guix is an update of patchelf to
=
a recent commit (see 'update-patchelf.patc= h' in the patches directory).

Best re= gards,

<= /blockquote>
Paul.
=


<= /blockquote>

I haven't tried building it m= yself yet, but two things come to mind:
Try using qtbase ins= tead of qt, it has a much smaller footprint and will
likely b= e requested when it's time to include the package in Guix.
<= /span>
You're using version 5.12.1, and in Guix we have qt 5.11.3. I= t's likely
the errors you're getting are because the version= of Qt is different.

--
Ef= raim Flashner   <efrai= m@flashner.co.il>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =D7=A4=D7= =9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D &= nbsp;14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guar= anteed on emails sent or received unencrypted
<= /div>= --Apple-Mail-4D502626-4132-4FDF-A62F-C398ABFBD503--