Results 1 to 6 of 6

Thread: Packaging problem:Compiled file doesn't actually get included in deb

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Baker, OR USA
    Beans
    887
    Distro
    Ubuntu Development Release

    Packaging problem:Compiled file doesn't actually get included in deb

    I'm trying to package a single .c file that only came with instructions on what command to run to compile it and then copy it into /usr/lib/gtk-2.0/modules/. I had to make a makefile and package it.
    Here's the problem:When I try to build it with pbuilder, the resulting deb doesn't have the file that I'm trying to install. So, what am I doing wrong? I will attach the files for it. (I had to add .txt to the end of a few of them)
    Thanks in advance, I'm really confused why it isn't working.
    I don't want to Live in a Life without Walls-too many viruses get in...
    Ubuntu user 23101 Linux user 472132
    Two ways to live: the choice we all face

  2. #2
    Join Date
    May 2008
    Location
    Baker, OR USA
    Beans
    887
    Distro
    Ubuntu Development Release

    Re: Packaging problem:Compiled file doesn't actually get included in deb

    Update:I tried adding ls ${DESTDIR}${PREFIX}/lib/gtk-2.0/modules/ to the list of commands to run when make install is called, and when make install is called in pbuilder, it says librgba.so , so it seems like the makefile is putting it in the correct place, however, it still doesn't show up in the deb file.
    I don't want to Live in a Life without Walls-too many viruses get in...
    Ubuntu user 23101 Linux user 472132
    Two ways to live: the choice we all face

  3. #3
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Packaging problem:Compiled file doesn't actually get included in deb

    Your rules file neither compiles nor installs the module, at least not as far as I can tell from looking at your diff.



    Edit - Look at this diff for an example that does exactly what your trying to do

    http://launchpadlibrarian.net/386766....1.1-2.diff.gz
    Last edited by Dies; February 15th, 2010 at 12:10 AM. Reason: Add link to example rules file

  4. #4
    Join Date
    May 2008
    Location
    Baker, OR USA
    Beans
    887
    Distro
    Ubuntu Development Release

    Re: Packaging problem:Compiled file doesn't actually get included in deb

    Quote Originally Posted by Dies View Post
    Your rules file neither compiles nor installs the module, at least not as far as I can tell from looking at your diff.
    Edit - Look at this diff for an example that does exactly what your trying to do
    http://launchpadlibrarian.net/386766....1.1-2.diff.gz
    As far as the rules file, I think it was just calling make which was running my makefile. However, the file that you pointed out is part of a package that is really similar to what I'm trying to do, so I tried taking the packaging from that package and modifying it as little as possible for my package, but I got the same result:no binary file in the deb. Not only that, but the the package I was trying to copy worked perfectly fine in my pbuilder. I attached the new versions of everything to this post.

    By the way, the command that needs to be run to compile it is
    Code:
    gcc -fPIC -shared librgba.c -o librgba.so `pkg-config --cflags --libs gtk+-2.0`
    and to install it the file librgba.so needs to end up in
    Code:
    /usr/lib/gtk-2.0/modules/
    Attached Files Attached Files
    Last edited by SoftwareExplorer; February 15th, 2010 at 05:47 AM.
    I don't want to Live in a Life without Walls-too many viruses get in...
    Ubuntu user 23101 Linux user 472132
    Two ways to live: the choice we all face

  5. #5
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Packaging problem:Compiled file doesn't actually get included in deb

    Yeah, my bad I kind of skimmed your first post, seems I completely missed the part about you using a Makefile. But in any case, I still think it's easier not to.


    Your problem, I didn't spend too much time figuring out why, is that you're installing to a different folder. Anyways try this new rules file, it should work.
    Attached Files Attached Files

  6. #6
    Join Date
    May 2008
    Location
    Baker, OR USA
    Beans
    887
    Distro
    Ubuntu Development Release

    Re: Packaging problem:Compiled file doesn't actually get included in deb

    Quote Originally Posted by Dies View Post
    Yeah, my bad I kind of skimmed your first post, seems I completely missed the part about you using a Makefile. But in any case, I still think it's easier not to.


    Your problem, I didn't spend too much time figuring out why, is that you're installing to a different folder. Anyways try this new rules file, it should work.
    It works! Thanks so much!
    I don't want to Live in a Life without Walls-too many viruses get in...
    Ubuntu user 23101 Linux user 472132
    Two ways to live: the choice we all face

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •