Ubuntu PPA Maintenance Coordination

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu PPA Maintenance Coordination

Post by NormandC »

Great. When you get the chance, would it be possible for you to post the git commands you use to update the branches. I want to be sure I'm doing it the right way (since I didn't get prompted to git pull when checking out a branch it may not be the case)... Did you create remotes?

One reason for me wanting to link lp:freecad to the freecad-maintainers repos is to reduce the length of the git urls. I'm not sure it's doable though.

Soon we could start thinking about how to write this all down on the wiki. I'm thinking a "FreeCAD packaging portal" that links to subpages for Ubuntu packaging, Windows packaging and OS X packaging...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

NormandC wrote:Soon we could start thinking about how to write this all down on the wiki. I'm thinking a "FreeCAD packaging portal" that links to subpages for Ubuntu packaging, Windows packaging and OS X packaging...
I'm still using the long url's but I will work on this soon. I'll try write something up, for this part at least, tomorrow. I want to try a couple of things first that may simplify things. You're right though documenting this is paramount! We may finish just in time for Python3, QT5, OCCT 7, VTK .... :o It's starting to smell like a win Libpack ;)
Again Thanks for all your work on this. It's definitely a great accomplishment.
"fight the good fight"
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu PPA Maintenance Coordination

Post by NormandC »

No problem, thanks to you too for your dedication.

And with the git repositories the way we've set them up, I think we'll be in better shape for the future, even if upstream freecad will have to be pushed manually to LP from now on. Maybe we can write and share a script to automate, so if you're not available I can update the whole thing on my own. :)

Over the past few days I tried a few times to delete obsolete bzr recipes for freecad-maintainers (full list is here) and I always get a timeout. I had no problem deleting my own test recipes on my own LP account so there seems to be a problem specific to freecad-maintainers. We'll have to ask Launchpad support.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu PPA Maintenance Coordination

Post by NormandC »

sgrogan wrote:We may finish just in time for Python3, QT5, OCCT 7, VTK .... :o
Oh man, now you're opening a whole new can of worms.

Thinking about packaging OCCT 7 makes my head hurt. :? But we may have no choice if we want FreeCAD to go forward. OCE seems to be in a ditch, with no sign of it being put on track again. :(
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

- Find out how to get the SHA the source package has been created from.

Code: Select all

$ git ls-remote -h https://git.launchpad.net/~freecad-maintainers/+git/gitmaster
5edeb99828be571ff2a21e6bd4661df00a526839        refs/heads/master
2ce5c8d2e3020d05005ed71f710e09e9aa561f40        refs/heads/releases/FreeCAD-0-16
"fight the good fight"
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

NormandC wrote:Great. When you get the chance, would it be possible for you to post the git commands you use to update the branches. I want to be sure I'm doing it the right way (since I didn't get prompted to git pull when checking out a branch it may not be the case)... Did you create remotes?
Can you post the output of

Code: Select all

git remote -v
for each of the local version of the Launchpad repo's. The gitmaster code branch probably is just your clone of Github FreeCAD unless you've cloned from launchpad.
NormandC wrote:Over the past few days I tried a few times to delete obsolete bzr recipes for freecad-maintainers (full list is here) and I always get a timeout.
I'm getting the same thing????
"fight the good fight"
User avatar
f3nix
Posts: 346
Joined: Sat May 30, 2015 11:58 am

Re: Ubuntu PPA Maintenance Coordination

Post by f3nix »

sgrogan wrote:- Find out how to get the SHA the source package has been created from.

Code: Select all

$ git ls-remote -h https://git.launchpad.net/~freecad-maintainers/+git/gitmaster
5edeb99828be571ff2a21e6bd4661df00a526839        refs/heads/master
2ce5c8d2e3020d05005ed71f710e09e9aa561f40        refs/heads/releases/FreeCAD-0-16
Hi sgrogan,
great idea! :) Thanks.

Cheers,
Mateusz
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

NormandC wrote:3. Build package for trusty in personal PPA
In the cue https://code.launchpad.net/~clhclh/+rec ... ster-daily

For those following along, if you are not an experienced PPA user PLEASE DO NOT TEST. This is still experimental and we do not know the full consequences yet.

@NormandC
Do you have more thoughts on the LaunchPad versioning of the FreeCAD-daily package? Maybe appending the git hash. I think this is safe with the date first, to make the version more identifiable. But the normal user probably will never notice and we want to avoid any epoch stuff. I'm OK either way and will defer to your opinion.
EDIT: Added my personal PPA as software source and installed FreeCAD-daily. Got this

Code: Select all

Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
I have freecad stable installed, freecad-daily installed, and an an uninstalled self-compiled build. They all seem to be peacefully coexisting.
EDIT: ppa:freecad-community/ppa packages are only available from FreeCAD stable. This could be re-worked.
"fight the good fight"
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

Updates to freecad-daily seems to work :)
I'm having issue with the freecad-daily-doc package, just starting to investigate

Code: Select all

sgrogan@sgrogan-HP-ZBook-17:~$ sudo apt-get install freecad-daily-doc
[sudo] password for sgrogan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-77 linux-headers-3.13.0-77-generic
  linux-headers-3.13.0-79 linux-headers-3.13.0-79-generic
  linux-image-3.13.0-77-generic linux-image-3.13.0-79-generic
  linux-image-extra-3.13.0-77-generic linux-image-extra-3.13.0-79-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  freecad-daily-doc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.4 MB of archives.
After this operation, 82.2 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/clhclh/sgrogan/ubuntu/ [^] trusty/main freecad-daily-doc all 0.17~alpha1+git201605032021~ubuntu14.04.1 [81.4 MB]
Fetched 81.4 MB in 8min 51s (153 kB/s)
Selecting previously unselected package freecad-daily-doc.
(Reading database ... 289057 files and directories currently installed.)
Preparing to unpack .../freecad-daily-doc_0.17~alpha1+git201605032021~ubuntu14.04.1_all.deb ...
Unpacking freecad-daily-doc (0.17~alpha1+git201605032021~ubuntu14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/freecad-daily-doc_0.17~alpha1+git201605032021~ubuntu14.04.1_all.deb (--unpack):
 trying to overwrite '/usr/share/doc-base/freecad-development-documentation', which is also in package freecad-doc 1:0.16.6703-1ppa1~ubuntu14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/freecad-daily-doc_0.17~alpha1+git201605032021~ubuntu14.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
"fight the good fight"
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu PPA Maintenance Coordination

Post by sgrogan »

sgrogan wrote:Code: Select all
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
OK this seems to be a KDE problem.
http://askubuntu.com/questions/39852/ho ... media-type
"fight the good fight"
Post Reply