pivy 0.6.2

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: pivy 0.6.2

Post by triplus »

Hi @looo.

I am not involved in FreeCAD packaging/PPA effort anymore but following this procedure should get you there:

https://tribaal.io/very-simple-debian-package.html

Steps like creating a .deb package, signing it, uploading it to PPA ... are explained in a short and straightforward fashion.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: pivy 0.6.2

Post by looo »

thanks for the information.
Also this approach doesn't give much success...

Code: Select all

lo@lo-desktop:~/projects/pivy/packaging/debian$ debuild
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: Information: Quellpaket pivy
dpkg-buildpackage: Information: Quellversion 6.2.0-0
dpkg-buildpackage: Information: Quelldistribution unstable
dpkg-buildpackage: Information: Quelle geändert durch Lorenz Lechner <sppedflyer@gmail.com>
 dpkg-source --before-build debian
dpkg-buildpackage: Information: Host-Architektur amd64
dpkg-source: Information: Optionen aus debian/debian/source/options werden verwendet: --compression=bzip2 --compression-level=9 --single-debian-patch
dpkg-checkbuilddeps: Fehler: Nicht erfüllte Bauabhängigkeiten: libsoqt4-dev libsimage-dev
dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch
dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed
libsoqt-4 and libsimage is definitely available on my machine. No idea why these are "non sattisfied dependencies"...
wmayer
Founder
Posts: 20321
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: pivy 0.6.2

Post by wmayer »

dpkg-checkbuilddeps: Fehler: Nicht erfüllte Bauabhängigkeiten: libsoqt4-dev libsimage-dev
libsoqt-4 and libsimage is definitely available on my machine. No idea why these are "non sattisfied dependencies"...
And did you also install them?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: pivy 0.6.2

Post by looo »

thanks, I thought it will pull the dependencies automatically...

Next problem...

Code: Select all

cp: Aufruf von stat für 'NEWS' nicht möglich: Datei oder Verzeichnis nicht gefunden
dh_installdocs: cp --reflink=auto -a NEWS debian/python-pivy/usr/share/doc/python-pivy returned exit code 1
debian/rules:4: die Regel für Ziel „binary“ scheiterte
make: *** [binary] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von fakeroot debian/rules binary war 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed
wmayer
Founder
Posts: 20321
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: pivy 0.6.2

Post by wmayer »

thanks, I thought it will pull the dependencies automatically...
That's of course not possible because this would require the build script to run as root/sudo.
Next problem...
The file docs in the debian directory expects this list of files

Code: Select all

NEWS
README
HACKING
THANKS
docs/ruby-inventor.txt
In the original pivy source tree they are all there: https://bitbucket.org/Coin3D/pivy/src
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: pivy 0.6.2

Post by looo »

These files should be in the zipped archive. Is the compression type a problem (tar.gz)? originally it was a bzip2...
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: pivy 0.6.2

Post by triplus »

looo wrote: Sun Jun 11, 2017 6:28 pm These files should be in the zipped archive. Is the compression type a problem (tar.gz)? originally it was a bzip2...
And where is the archive (pivy.tar.gz)?

https://github.com/looooo/pivy/tree/mas ... ing/debian
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: pivy 0.6.2

Post by looo »

I have this only locally. It is this file:
https://github.com/looooo/pivy/archive/v0.6.1-0.tar.gz

the structure looks like this:

Code: Select all

├── debian
│   └── debian
│       ├── changelog
│       ├── compat
│       ├── control
│       ├── copyright
│       ├── debhelper-build-stamp
│       ├── docs
│       ├── pycompat
│       ├── python-pivy
│       │   └── usr
│       │       └── share
│       │           └── doc
│       │               └── python-pivy
│       ├── python-pivy.debhelper.log
│       ├── pyversions
│       ├── rules
│       ├── source
│       │   ├── format
│       │   └── options
│       └── watch
└── pivy_6.2.0.orig.tar.gz

triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: pivy 0.6.2

Post by triplus »

Note that in .dsc file under Build-Depends dependency python-support changed to dh-python in Ubuntu 16.04 and python-support isn't available anymore. As for:
looo wrote: Sun Jun 11, 2017 11:01 amNext problem...
It looks like you are using debuild command but you only extracted the debian folder. You need to extract the source too.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: pivy 0.6.2

Post by looo »

triplus wrote:It looks like you are using debuild command but you only extracted the debian folder. You need to extract the source too.
The source or the compiled/installed files?

Sorry for my dumb questions, but all I know about debian packaging is that is difficult... :D
Post Reply