[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: All files are in DESTDIR but non will be copied into the packages



Hi all,

because I wasn't subscribed I answer with a completely new mail, now I am. Sorry for the confusion in the thread view of your email app.

On Thu, Nov 10, 2005 at 07:25:35PM +0100, Timo Steuerwald wrote:
Hi all,

I try to create packages for sipX from sipfoundry.org. This is a PBX like asterisk and is composed of a few subprojects like sipXportLib, sipXtackLib...
I now tried to create a package for sipXportLib.
What I have done up to now:
1. Read http://www.debian.org/doc/maint-guide/ completely :-)
2. executed dh_make -e <my email address>
3. filled files like copyright, control and so on with useful information
4. tried to build it via dpkg-buildpackage -rfakeroot
This has completed successfully, but inside the packages data.tar.gz ins nearly empty. There exists only parts of the data that belongs to the debian subdirectory (like usr/share/doc/sipxportlib/copyright). No libs, nothing. The same for the -dev package: No documentation, include files and so on. If I look now to the debian subdirectory, there are three subdirectories tmp (which is my DESTDIR in the rules file), sipxportlib and sipxportlib-dev. The last two only contain the same files as in the packages. What can I do to add the files from DESTDIR to the two packages? - I thought <package-name>.dirs and <package-name>.files are handling this.
If I understand your intent, you want the package to "make install" to
./debian/tmp/, and then you want *.dirs and *.files to copy them from
that location to ./debian/package/, where they will be installed into
the package.  Right?

Firstly, you should know that ./debian/tmp/ was the install directory
for old versions of debhelper.  Nowadays its ./debian/$package/.  It
shoulds like this is working the way it should be, but you should
check that ./debian/dh_compat exists and contains a "4".

Hmmh, $package doesn't work for me. I've searched the archive and have seen that DH_COMPAT should be IMHO a environment variable inside the rules file (e.g. http://lists.debian.org/debian-mentors/2001/04/msg00011.html). I have defined it and set to 4


Then you should make sure that ./debian/rules has dh_install
uncommented; thats the program that accepts as input.  Finally, the
name of the input files are "*.install" and not "*.files" (which seems
to be for old program dh_movefiles).

Ok, I have uncommented dh_install and also renamed the files to *.install. Now, the content of the packages is as expected. DESTDIR still points to /debian/tmp, but this doesn't make any problems.

Thanks for your help! :-)

Cheers,

Timo



Reply to: