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

Re: problem with hard links?



Quoting Jay <jay.krell@cornell.edu>:

Hi,

Hi. I'm trying to create a Debian package, for the first time.
It is for a compiler, so a source-based package is not
practical -- you have to either already have the
binaries or do a cross build from a system that does.
(We could possibly put together a "source" package composed of assembly files.)

So, well, besides the compiler, there are libraries
that go with it.

You should definitely need to resolve that bootstrapping problem by creating a source package which could be in turn compiled with a different compiler/libs/linker/etc which are already in Debian.

The libraries are like this:

 root/pkg/pkg1/libpkg1.so
 root/pkg/pkg2/libpkg2.so
 root/lib/libpkg1.so
 root/lib/libpkg2.so

The "duplicates" are hardlinks.
I believe they need to be so.
I read that hard links are ok, but couldn't find information if they need special handling.
 (err, maybe what is below)

Hard links are forbidden by Debian Policy.
Please, read C.4 and C.4.1 carefully:

http://www.debian.org/doc/debian-policy/ap-pkg-sourcepkg.html#fr100


My package is currently minimal in that it has absolutely no scripts.
I suppose if I really must I can recreate the links in postinst
but I would rather not. Can this work "directly"?


Aha:

ppca:/tmp/tmp79HWvP/perl-5.8.8/debian# grep "ln " *
rules:  ln $(build)/perl-base/usr/bin/perl \


Is that like what I need to do? I don't even currently have a rules file. :(

You are looking for dh-make package to start with. Install it and read dh_make manpage, this will create a debian/ directory for you to start with.




Reply to: