[CWiid] Topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/topic/1
<p>
packaging for arch linux
</p>
en-usCWiidhttp://abstrakraft.org/cwiid/chrome/site/cwiid_banner.png
http://abstrakraft.org/cwiid/discussion/topic/1
Trac 0.11.7 - DiscussionPluginvaldarThu, 15 Mar 2007 16:56:19 GMTTopic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/topic/1#topic
http://abstrakraft.org/cwiid/discussion/topic/1#topic
<p>
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:
</p>
<p>
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?]
</p>
<p>
2)during make install:
</p>
<p>
...
...
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: 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<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: *** [install_shared] Error 1
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.01/wiimote'
make: *** [wiimote] Error 2
</p>
<p>
this is the command executed by the package utility of my distro:
</p>
<p>
cd $startdir/src/cwiid-$pkgver
</p>
<blockquote>
<p>
./configure --prefix=/usr
make
make prefix=$startdir/pkg/usr/ install
</p>
</blockquote>
<p>
where $startdir is the directory in which it try to install the program befor packaing it (using fakeroot).
</p>
<p>
any ideas?
</p>
<p>
thank you in advance. Valdar.
</p>
TopicdsmithThu, 14 Jun 2007 04:42:15 GMTReply #171 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/171#message171
http://abstrakraft.org/cwiid/discussion/message/171#message171
<p>
Just committed a fix for the Python install - let me know if it's still borked.
</p>
<p>
Didn't see a problem with the man and doc installs, but I haven't really exercised it yet - I'll test further when I have a chance. What problems did you see?
</p>
MessagevaldarFri, 08 Jun 2007 12:44:39 GMTReply #167 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/167#message167
http://abstrakraft.org/cwiid/discussion/message/167#message167
<p>
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"...
</p>
<p>
by the way i think that there are problems in the directory option chain olso for man and doc install parts.
</p>
MessagedsmithFri, 08 Jun 2007 11:35:53 GMTReply #165 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/165#message165
http://abstrakraft.org/cwiid/discussion/message/165#message165
<p>
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?
</p>
<p>
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.
</p>
MessagevaldarWed, 06 Jun 2007 17:45:14 GMTReply #162 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/162#message162
http://abstrakraft.org/cwiid/discussion/message/162#message162
<p>
Hi evryone! I'm back! :P
</p>
<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:
</p>
<p>
Where does it must be installed?
</p>
<p>
This is my install command (under the system that make packages for archlinux):
</p>
<pre class="wiki">make prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
</pre><p>
and this is the error:
</p>
<pre class="wiki">make install -C python
make[1]: 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[1]: *** [install] Error 1
make[1]: Leaving directory `/home/valdar/projects/archlinux/packages/unsupported/lib/cwiid-svn-dev/src/dev-build/python'
make: *** [python] Error 2
</pre><p>
any advices?
</p>
<p>
It seems that the python installer doesn't recognize the prefix=$startdir/pkg/usr option...
</p>
<p>
If i change the line number 15 in the python/Makfile.ini from:
</p>
<pre class="wiki">python setup.py install $(SET_ROOT_DIR)
</pre><p>
to
</p>
<pre class="wiki">python setup.py install --root=/home/valdar/projects/archlinux/packages/unsupported/lib/cwiid-svn-dev/pkg
</pre><p>
then it worked.
</p>
<p>
There is a way for doing this through configure or make options??
</p>
MessagevaldarWed, 21 Mar 2007 14:21:41 GMTReply #20 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/20#message20
http://abstrakraft.org/cwiid/discussion/message/20#message20
<p>
Ok this resolve the problem!
</p>
MessagedsmithWed, 21 Mar 2007 01:56:06 GMTReply #18 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/18#message18
http://abstrakraft.org/cwiid/discussion/message/18#message18
<p>
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:
</p>
<pre class="wiki">./configure --prefix=$startdir/pkg/usr --sysconfdir=$startdir/pkg/etc
make sysconfdir=/etc
make install
</pre><p>
This should compile with sysconfdir=/etc, but install to $startdir/pkg/etc.
</p>
MessagevaldarTue, 20 Mar 2007 23:38:54 GMTReply #16 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/16#message16
http://abstrakraft.org/cwiid/discussion/message/16#message16
<p>
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.
</p>
<p>
Any ideas?
I hope you understand my bad explanation of the problem.
</p>
<p>
Thank you and sorry for bothering you. Valdar.
</p>
MessagevaldarTue, 20 Mar 2007 11:05:17 GMTReply #10 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/10#message10
http://abstrakraft.org/cwiid/discussion/message/10#message10
<p>
ok! I resolved this by manualy creating all the directorys needed for the installation under $startdir/pkg/
</p>
<p>
now the package for arch is ready i think! I'll post on the wiki as soon as i submit it to AUR.
</p>
<p>
thank you. Valdar.
</p>
MessagevaldarTue, 20 Mar 2007 10:01:00 GMTReply #9 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/9#message9
http://abstrakraft.org/cwiid/discussion/message/9#message9
<p>
Ok with the new version (0.5.02) the packaging things is going better; but i have another error:
</p>
<p>
ln -sf libwiimote.so.0 /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr/lib/libwiimote.so
#ldconfig
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wiimote'
make install -C wmgui
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: Entering directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wmgui'
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: *** No rule to make target <tt>/home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr/bin', needed by </tt>install'. Stop.
make<a class="missing changeset" title="No changeset 1 in the repository">[1]</a>: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wmgui'
make: *** [wmgui] Error 2
</p>
<p>
this is the commands executed by the package tool:
</p>
<p>
cd $startdir/src/cwiid-$pkgver
</p>
<blockquote>
<p>
./configure --prefix=/usr --disable-ldconfig
make
make prefix=$startdir/pkg/usr install
</p>
</blockquote>
<p>
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.
</p>
<p>
Valdar.
</p>
MessagedsmithMon, 19 Mar 2007 05:31:20 GMTReply #4 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/4#message4
http://abstrakraft.org/cwiid/discussion/message/4#message4
<p>
I'm waiting on this memory leak issue to release, but I've added a --disable-ldconfig option to configure. It's in the repository, let me know how it works for you.
</p>
MessagevaldarFri, 16 Mar 2007 01:35:40 GMTReply #2 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/2#message2
http://abstrakraft.org/cwiid/discussion/message/2#message2
<p>
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.
</p>
<p>
Valdar.
</p>
MessagedsmithThu, 15 Mar 2007 20:09:58 GMTReply #1 to topic #1 - packaging for arch linux
http://abstrakraft.org/cwiid/discussion/message/1#message1
http://abstrakraft.org/cwiid/discussion/message/1#message1
<ol><li>The old #! debacle...I changed the makefile to explicitly call awk (in the repository, I'll probably release 0.5.02 this weekend).
</li><li>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.
</li></ol><p>
Thanks for packaging CWiid for another distro! Please post something to the wiki when it's been officially added to ArchLinux.
</p>
<p>
Donnie
</p>
Message