[Pkg-netatalk-devel] Debug package?

Brian Campbell brian.campbell at editshare.com
Tue Feb 18 14:38:28 UTC 2014


On Tue, Feb 18, 2014 at 6:10 AM, Jonas Smedegaard <dr at jones.dk> wrote:
> Quoting Brian Campbell (2014-02-18 07:12:15)
>> On Tue, Feb 18, 2014 at 12:01 AM, Jonas Smedegaard <dr at jones.dk> wrote:
>>> Quoting Brian Campbell (2014-02-18 05:11:01)
>>>> I also need to add something to tell it to install into
>>>> debian/netatalk. With only one binary package, it defaults to that
>>>> behavior, but with two, it defaults to debain/tmp. I've added the
>>>> following to debian/rules; does that look OK?
>>>>
>>>> # Need to set this explicitly since we're building a -dbg package
>>>> DEB_DESTDIR = $(CURDIR)/debian/netatalk
>>>
>>> Looks ok, yes.
>>>
>>> I find it more elegant, however, to avoid including $(CURDIR)/ whenever
>>> possible - and to not hardcode the package name.  So I suggest try this
>>> alternative:
>>>
>>>   DEB_DESTDIR = debian/$(cdbs_curpkg)
>>
>> When I do that, I get the following error. Looks like $(CURDIR) is necessary.
>
> Fine.  I just to *try* (and you can still use the other part of my
> suggestion if you like - and _that_ works :-)

If you read a little further, I did try using
$(CURDIR)/debian/$(cdbs_curpkg), but it seemed to expand to "stamp-
makefile-install" instead of "netatalk" as can be seen in this line:

  /usr/bin/make  -C .  install
DESTDIR=/home/lambda/deb/netatalk/debian/stamp-makefile-install

I took a brief look at /usr/share/cdbs/1/rules/buildvars.mk to see if
I could figure out why this was going wrong, but I think it requires
more understanding of CDBS than I have at the moment.

Taking another look at it, it looks like cdbs_curpkg is just defined
in terms of the current Make target, but when doing the make install,
that is stamp-makefile-install rather than netatalk. If you notice,
cdbs_make_curflavor has the same definition as cdbs_curpkg; I'm
assuming that they are meant to be used in different contexts, but
that DEB_DESTIR is being expanded in the wrong context here.

As I said, I've pushed the version with the hardcoded package name, we
can figure out the problem with $(cdbs_curpkg) later.

-- Brian



More information about the Pkg-netatalk-devel mailing list