Problems (#1) - packaging for arch linux (#1) - Message List

packaging for arch linux
 unsolved

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[1]: 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[1]: *** [install_shared] Error 1 make[1]: 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:

cd $startdir/src/cwiid-$pkgver

./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).

any ideas?

thank you in advance. Valdar.

  • Message #1
    1. The old #! debacle...I changed the makefile to explicitly call awk (in the repository, I'll probably release 0.5.02 this weekend).
    2. 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.

    Donnie

    • Message #2

      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.

      • Message #4

        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.

  • Message #9

    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[1]: Leaving directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wiimote' make install -C wmgui make[1]: Entering directory `/home/valdar/projects/archlinux/packages/undefined/cwiid/src/cwiid-0.5.02/wmgui' make[1]: *** No rule to make target /home/valdar/projects/archlinux/packages/undefined/cwiid/pkg/usr/bin', needed by install'. Stop. make[1]: 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:

    cd $startdir/src/cwiid-$pkgver

    ./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.

    • Message #10

      ok! I resolved this by manualy creating all the directorys needed for the installation under $startdir/pkg/

      now the package for arch is ready i think! I'll post on the wiki as soon as i submit it to AUR.

      thank you. Valdar.

  • Message #16

    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.

    • Message #18

      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.

      • Message #20

        Ok this resolve the problem!

  • Message #162

    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[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
    

    any advices?

    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)
    

    to

    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??

    • Message #165

      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.

      • Message #167

        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.

        • Message #171

          Just committed a fix for the Python install - let me know if it's still borked.

          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?

Attachments

No attachments created.