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

Re: Simple questions about making a package



Le Thu, Jul 08, 1999 at 11:50:36AM +0200, Sami Dalouche écrivait:
> I'm learning how to create a package but I don't understand why the dirs
> file exists. All the directories are created when we type a make install,
> aren't they ?

Usually yes. But you may need additional (empty or not) directories like
a specific spool dir for the program or simply like /usr/doc/$(package)
(which is hopefully automatically created by the debhelper tools when
needed).

> Does anyone know if there exists a way to specify some dependencies
> informations in the rules file ?

What kind of dependencies information ? For the build ? You may take a
look at the yada package (I've heard of it but don't know much of it)

> When a software uses auto{conf make ?}, a "docs" file is created in the
> debian directory, specifying the docs files to add to /usr/doc/$pkg but the 
> dh_installdocs doesn't speak about this file.

Have you ever seen a program speaking ? :-) But the documentation
refers to this file (man dh_installdocs) :
       A file named debian/package.docs (debian/docs may be  used
       for  the  first binary package in debian/control) can list
       other files to be installed.

> In the dpkg-dev package, there's a dpkg-gencontrol and in debhelper, there
> is dh_gencontrol. Isn't it the same ?
> Some other executables exists in dpkg-dev and in debhelper. If debhelper
> adds new functions (the executables in this package are wrappers for those
> in dpkg-dev, aren't they ?), why not adding them directly to dpkg-dev to
> minimise the numbers of executables to build a deb package ?

Yes some dh_* scripts are wrapper for the dpkg-dev tools. They usually
do some additional tasks (which are well documented) but some maintainers
prefer to know /exactly/ what is happening, that's why they don't use
debhelper.

And we must respect their choices, so debhelper is not imposed (but we are
advising new maintainer to use helper scripts as they have less chance
to do mystakes).

> Or maybe you prefer having the more executables as possible, making the
> maintainer tasks harder. :-)

Not it's not harder. You can simply choose what you want to use for
building your package. debhelper/debstd/yada are all possibilities ...

> Is it correct to add new files to the source, once the dh-make command is
> executed ? 

Of course, but try to keep additional files in the debian directory. And
do not add too much unrelated files ! :-)

Cheers,
-- 
Hertzog Raphaël >> 0C4CABF1 >> http://prope.insa-lyon.fr/~rhertzog/


Reply to: