However I'm having trouble building the files that launchpad wants.
The instructions tell me to create the files with "debuild -S -sa" but
that gives a number of error messages.
Does anyone have time to look at this and make it work?
If possible, I think it would be nicer to use cmake's CPack for this
too, instead of manually having to update the files in /debian.
With cmake, "make package" seems to produce a valid .deb package, but
that is not what launchpad accepts...
There's no /debian folder at all for openvoronoi or truetype-tracer,
so those are fresh projects to package if anyone wants to try.
Anders
If possible, I think it would be nicer to use cmake's CPack for this
too, instead of manually having to update the files in /debian.
Hi Anders,
Do you use 'cdbs'?
If not, install it and copy https://github.com/Heeks/heekscad/blob/master/debian/rules
I that is all you need for binary packages. I think it works for source packages as well.
As far as I know, cpack does not support source packages. I'm pretty sure 'debuild -S' creates a source package, so cpack won't do what you want by itself.
Regards
Mark
After some editing this purely cmake based approach seems to give some results:
https://launchpad.net/~anders-e-e-wallin/+archive/opencamlib
I guess we need to wait for launchpad to (succesfully?) build the
package now. And then it could be tried on a fresh ubuntu-install
(VM).
AW
Well, predictably the build failed.
It seems the cmake-hack produces the right debian source package for
uploading to launchpad ONCE.
But when I try "dput" again with some modifications the cmake-scripts
generates changes which include all of the original source, while
launchpad will only accept "deltas" compared to the original source.
I'm not going to spend more time on this unless there are clear and
simple instructions somewhere...
Also, someone on IRC tried building on Ubuntu 10.04LTS, which has gcc
4.4.3 and boost 1.40. If someone can reproduce this and post an issue
then perhaps it will get fixed. (I might try 10.04lts in a VM at some
point).
AW
--
Sebastian Kuzminsky
I'll try to add a debian directory and get it to build on Lucid
tonight. I'll send you a pull request when i have something working.
--
Sebastian Kuzminsky
Thanks! This will be useful (although pbuilder is quite slow also).
I now see the build going to 100%, but get an error on install:
https://launchpadlibrarian.net/90430482/buildlog_ubuntu-oneiric-amd64.opencamlib_11.10.12-ubuntu1~oneiric1_FAILEDTOBUILD.txt.gz
"make install" does work fine on a normal Ubuntu install, but it seems
installing fails with pbuilder and on launchpad with:
-- Installing: /usr/lib/python2.7/dist-packages/ocl.so
CMake Error at cmake_install.cmake:44 (FILE):
file INSTALL cannot copy file
"/build/buildd/opencamlib-11.10.12/build_dir/ocl.so" to
"/usr/lib/python2.7/dist-packages/ocl.so".
The install-directory is found out in the cmake script with:
execute_process(
COMMAND python -c "from distutils.sysconfig import get_python_lib;
print get_python_lib()"
OUTPUT_VARIABLE Python_site_packages
OUTPUT_STRIP_TRAILING_WHITESPACE
)
How should this be modified to work both on a normal install (it does
now), and with pbuilder/launchpad? suggestions?
AW
When you install ocl.so, do you use "install -D"? If not, you probably
have to create the destination directory first (with mkdir).
--
Sebastian Kuzminsky
With openvoronoi pbuilder runs into trouble:
The following packages have unmet dependencies:
pbuilder-satisfydepends-dummy: Depends: libboost-graph which is a
virtual package.
Depends: libqd0 which is a virtual package.
Depends: libqd-dev which is a virtual package.
Depends: libboost-python-dev but it
is not going to be installed.
Unable to resolve dependencies! Giving up...
Looking in synaptic, "libqd0" and "libqd-dev" are the actual names of
the packages I have installed.
They are from section " Libraries (universe)"
Do I have to enable universe somehow in debian/control or rules ?
Anders
--
Sebastian Kuzminsky
Yes, universe is not enabled by default in pbuilder. You need
"--components 'main universe'" when you create it. You can update the
existing chroot tarball, but i dont remember the command-line for that
off the top of my head.
I'm super excited to get these packages usable by the LinuxCNC
community, thanks for all your work Anders. :-)
--
Sebastian Kuzminsky
setting the dependency to "libqd0 | libqd2c2a" and turning off some
gcc errors/warnings for older versions of gcc now results in
successful builds!
https://launchpad.net/~anders-e-e-wallin/+archive/cam/+packages
I've put the py-scripts that are meant to be run from LinuxCNC/AXIS
over here: https://github.com/aewallin/linuxcnc-scripts
If someone with a 10.04/LinuxCNC install could test installing from
the PPA and running those py-scripts that would be great.
thanks,
Anders
https://launchpad.net/~anders-e-e-wallin/+archive/cam/+packages
Here's the current state of things (on oneiric). I don't understand
why dpkg -l does not find a package "libboost-python"
Is the exact version number required in the debian/control file? How
is that doable when there are 4-5 different releases to build packages
for and each one has their own libboost-python version?
$ sudo apt-get install truetypetracer openvoronoi opencamlib
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
opencamlib : Depends: libboost-python but it is not installable
openvoronoi : Depends: libboost-python but it is not installable
truetypetracer : Depends: libboost-python (>= 1.40) but it is not installable
E: Unable to correct problems, you have held broken packages.
anders@anders-i7:~$ dpkg -i libboost-python*
dpkg: error: requested operation requires superuser privilege
$ dpkg -l libboost-python*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version
Description
+++-==================================-==================================-====================================================================================
ii libboost-python-dev 1.46.1.1
Boost.Python Library development files (default version)
un libboost-python1.42-dev <none>
(no description available)
ii libboost-python1.46-dev 1.46.1-5ubuntu2
Boost.Python Library development files
ii libboost-python1.46.1 1.46.1-5ubuntu2
Boost.Python Library
dpkg -l libboost-python
No packages found matching libboost-python.
I don't know how to convince cmake to do that, though... In general
I'm a bit leery of non-Debian tools writing Debian metadata files...
--
Sebastian Kuzminsky