Building Debian package
Building Debian package
Tried following the instructions on how to build a Debian package on the wiki, but it fails as there is no Debian folder in the package folder.
Seems to have been removed in 0.18.
Seems to have been removed in 0.18.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Building Debian package
I think you are supposed to use this repo: https://salsa.debian.org/science-team/freecad not the main FreeCAD repo from github
Re: Building Debian package
This question is still very relevant. Source code on Salsa is pretty outdated, so I'd like to know if it's possible to package a deb file using the code from Github.
Last edited by MaximP on Tue Feb 08, 2022 11:14 am, edited 1 time in total.
Re: Building Debian package
Of course you can build a deb package from sources. Receipt is publicly accessible on Salsa.
Re: Building Debian package
The FreeCAD PPA uses a "recipe" https://code.launchpad.net/~freecad-mai ... dual-build
Basically it uses the Debian folder from the https://salsa.debian.org/science-team/freecad repo and nests that with the current source.
Which salsa branch to use depends on your distro/version.
"fight the good fight"
Re: Building Debian package
sgrogan wrote: ↑Mon Feb 07, 2022 9:20 pmThe FreeCAD PPA uses a "recipe" https://code.launchpad.net/~freecad-mai ... dual-build
Basically it uses the Debian folder from the https://salsa.debian.org/science-team/freecad repo and nests that with the current source.
Which salsa branch to use depends on your distro/version.
Thanks for your assistance, but I have one more problem. dpkg-checkbuilddeps reports that libvtk9-dev is required for building a package. Libvtk9-dev depends on libgl2ps-dev and libvtk9, however libgl2ps-dev and libvtk9 depend on different versions of libgl2ps1.4 (1.4.0 and 1.4.2 respectively). This creates an endless circle of broken dependencies. If libgl2ps1.4 version would've been specified right in the filename (i.e. libgl2ps1.4.0 or libgl2ps1.4.2) then I would've simply created a link to a newer library with the name of an old one in hopes that it would work. I couldn't find any solution to this problem and need help.
Edit: I use LMDE4 i368 which is based on Debian buster
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: Building Debian package
The vtk9 build dependency is only suitable for newer releases. I would suggest editing debian/control and replacing libvtk9-dev with libvtk7-dev.
Re: Building Debian package
Sorry to hijack a bit, may you know why daily PPA is stuck for Ubuntu 21.04 ? Thxkkremitzki wrote: ↑Fri Feb 11, 2022 10:34 am The vtk9 build dependency is only suitable for newer releases. I would suggest editing debian/control and replacing libvtk9-dev with libvtk7-dev.
Re: Building Debian package
I don't think it will be updated for 21.04 as that version of Ubuntu is no longer supported.openBrain wrote: ↑Fri Feb 11, 2022 11:07 amSorry to hijack a bit, may you know why daily PPA is stuck for Ubuntu 21.04 ? Thxkkremitzki wrote: ↑Fri Feb 11, 2022 10:34 am The vtk9 build dependency is only suitable for newer releases. I would suggest editing debian/control and replacing libvtk9-dev with libvtk7-dev.