Problems (#1) - packaging for arch linux (#1) - Message List
Hi all; i have try your software and it works for me pretty well but wen i try to package the software for my distro (archlinux) i find 2 problems:
1) while compiling try to use awk through /usr/bin/awk but i have awk in /bin/awk [i solved this by a symlink but i think that ther is a better way?]
2)during make install:
... ... make: Entering directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.01/wiimote' cp wiimote.h /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr//include cp libwiimote.a /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr//lib cp libwiimote.so.0.1 /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr//lib ln -sf libwiimote.so.0 /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr//lib/libwiimote.so ldconfig ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied make: *** [install_shared] Error 1 make: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.01/wiimote' make: *** [wiimote] Error 2
this is the command executed by the package utility of my distro:
./configure --prefix=/usr make make prefix=$startdir/pkg/usr/ install
where $startdir is the directory in which it try to install the program befor packaing it (using fakeroot).
thank you in advance. Valdar.
- The old #! debacle...I changed the makefile to explicitly call awk (in the repository, I'll probably release 0.5.02 this weekend).
- I'm not sure what to do here. Either you should patch the Makefile (cwiid/common/include/lib.mak) to remove ldconfig, or I should provide a way to turn it off. I'll see if I can find a precedent in another package, and post what I find here.
Thanks for packaging CWiid for another distro! Please post something to the wiki when it's been officially added to ArchLinux.
Donniedsmith03/15/07 20:09:58 (6 years ago)
ok thank you for the quik reply; i'll wait for the solution and i'll write in the wiki the way to install the package in Arch as soon as i'll make it work.
Valdar.valdar03/16/07 01:35:40 (6 years ago)
Ok with the new version (0.5.02) the packaging things is going better; but i have another error:
ln -sf libwiimote.so.0 /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr/lib/libwiimote.so #ldconfig make: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wiimote' make install -C wmgui make: Entering directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wmgui' make: *** No rule to make target /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr/bin', needed by install'. Stop. make: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wmgui' make: *** [wmgui] Error 2
this is the commands executed by the package tool:
./configure --prefix=/usr --disable-ldconfig make make prefix=$startdir/pkg/usr install
it seems that it can't create $startdir/pkg/usr/bin eaven if it is able to create $startdir/pkg/usr/lib $startdir/pkg/usr/include and $startdir/pkg/usr/etc.
Valdar.valdar03/20/07 10:01:00 (6 years ago)
Another problem here concerning config files directory: if i use --sysconfdir=/etc during the make prefix=$startdir/pkg/usr/ install it try to copy the config files in /etc/cwiid and obviously it can't. If i use --sysconfdir=$startdir/pkg/etc it copy the files in the right place during the packaging but, once installed from the maked package, wmimput can't finde the default config file because he search it in $startdir/pkg/etc.
Any ideas? I hope you understand my bad explanation of the problem.
Thank you and sorry for bothering you. Valdar.valdar03/20/07 23:38:54 (6 years ago)
Don't apologize - you're helping distribute CWiid, I don't mind helping at all. That's an interesting problem - I don't know if this is the best way to handle it, but it should work for now:
./configure --prefix=$startdir/pkg/usr --sysconfdir=$startdir/pkg/etc make sysconfdir=/etc make install
This should compile with sysconfdir=/etc, but install to $startdir/pkg/etc.dsmith03/21/07 01:56:06 (6 years ago)
Hi evryone! I'm back! :P
I'm try to re-package the dev branch for arch linux and i noticed that there is new stuff arround like the python module:
Where does it must be installed?
This is my install command (under the system that make packages for archlinux):
make prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
and this is the error:
make install -C python make: Entering directory `/home/valdar/projects/archlinux/packages/unsupported/lib/cwiid-svn-dev/src/dev-build/python' python setup.py install running install running build running build_ext running install_lib copying build/lib.linux-i686-2.5/cwiid.so -> /usr/lib/python2.5/site-packages error: /usr/lib/python2.5/site-packages/cwiid.so: Permission denied make: *** [install] Error 1 make: Leaving directory `/home/valdar/projects/archlinux/packages/unsupported/lib/cwiid-svn-dev/src/dev-build/python' make: *** [python] Error 2
It seems that the python installer doesn't recognize the prefix=$startdir/pkg/usr option...
If i change the line number 15 in the python/Makfile.ini from:
python setup.py install $(SET_ROOT_DIR)
python setup.py install --root=/home/valdar/projects/archlinux/packages/unsupported/lib/cwiid-svn-dev/pkg
then it worked.
There is a way for doing this through configure or make options??valdar06/06/07 17:45:14 (6 years ago)
I'll take another look at the directory option chain this weekend - I may have broken something when I rewrote parts of it recently. Is it just the Python part that has issues?
I'm a bit leery of packaging the dev branch, as it isn't guaranteed to work well, or even compile. I would encourage you to wait another week or so for the changes there to be merged into trunk. If you do package it, please display large warnings.dsmith06/08/07 11:35:53 (6 years ago)
I packaged it only for me; i want to try the dev branch in order to see if it resolve the "wiimote discovering problem issue"...
by the way i think that there are problems in the directory option chain olso for man and doc install parts.valdar06/08/07 12:44:39 (6 years ago)