Hi,

This packet is inside a "rules" directory (along many others) in
my project directory and I put an entry in the Kconfig file also
in the project directory:
   ...
   source "workspace/rules/exutils.in".
   ...
Do you mean that if the ## SECTION=<section> line is added to the
".in" file this not necessary any more ?


If I use ptxdist to create a new source packet inside my 'rules'
directory:

  ptxdist newpacket source

And I try to build it, I got the error:

  make: *** No rule to make target `/home/s/gnu/exutils', needed by
`/home/s/linux_x86/rootfs/x86/platform-EBOX/state/exutils.get'.  Stop.



It seems that again it is searching for the global SOURCES directory
and not the directory of this packet (/home/s/exutils).

The following packet was generated:

---------------------------------------------------
#
# We provide this package
#
PACKAGES-$(PTXCONF_EXUTILS) += exutils

#
# Paths and names
#
EXUTILS         := exutils
EXUTILS_URL             := file://home/s/$(EXUTILS)
EXUTILS_SOURCE          := $(SRCDIR)/$(EXUTILS)
EXUTILS_DIR             := $(BUILDDIR)/$(EXUTILS)

#---------------------------------------------------------------------------
# Get
#---------------------------------------------------------------------------

$(STATEDIR)/exutils.get:
        @$(call targetinfo, $@)
        @$(call touch, $@)

#---------------------------------------------------------------------------
# Extract
#---------------------------------------------------------------------------

$(STATEDIR)/exutils.extract:
        @$(call targetinfo, $@)
        @$(call clean, $(EXUTILS_DIR))
        @$(call extract, EXUTILS)
        @$(call patchin, EXUTILS)
        @$(call touch, $@)

#---------------------------------------------------------------------------
# Prepare
#---------------------------------------------------------------------------

EXUTILS_PATH    := PATH=$(CROSS_PATH)
EXUTILS_ENV     := $(CROSS_ENV)

$(STATEDIR)/exutils.prepare:
        @$(call targetinfo, $@)
        @$(call touch, $@)

#---------------------------------------------------------------------------
# Compile
#---------------------------------------------------------------------------

$(STATEDIR)/exutils.compile:
        @$(call targetinfo, $@)
        cd $(EXUTILS_DIR) && $(EXUTILS_ENV) $(EXUTILS_PATH) $(MAKE)
$(PARALLELMFLAGS)
        @$(call touch, $@)

#--------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------

$(STATEDIR)/exutils.install:
        @$(call targetinfo, $@)
        @$(call touch, $@)

#--------------------------------------------------------------------------
# Target-Install
#--------------------------------------------------------------------------

$(STATEDIR)/exutils.targetinstall:
        @$(call targetinfo, $@)

        @$(call install_init, exutils)
        @$(call install_fixup,exutils,PACKAGE,exutils)
        @$(call install_fixup,exutils,PRIORITY,optional)
        @$(call install_fixup,exutils,VERSION,0)
        @$(call install_fixup,exutils,SECTION,base)
        @$(call install_fixup,exutils,AUTHOR,"Leonel")
        @$(call install_fixup,exutils,DEPENDS,)
        @$(call install_fixup,exutils,DESCRIPTION,missing)
#
# TODO: Add here all files that should be copied to the target
# Note: Add everything before(!) call to macro install_finish
#
        @$(call install_copy, exutils, 0, 0, 0755, $(EXUTILS_DIR)/foobar,
/dev/null)

        @$(call install_finish,exutils)

        @$(call touch, $@)

#--------------------------------------------------------------------------
# Clean
#--------------------------------------------------------------------------

exutils_clean:
        rm -rf $(STATEDIR)/exutils.*
        cd $(EXUTILS_DIR) && $(EXUTILS_ENV) $(EXUTILS_PATH) $(MAKE) clean

# vim: syntax=make
--------------------------------------------------------------------------


Robert Schwebel wrote:
On Fri, Jan 09, 2009 at 01:34:42PM -0200, Claudio Leonel wrote:
I have a source packet where the sources are uncompressed in
the local machine.
In ptxdist-1.0.2 this packet worked correctly, but it is not working
any more with ptxdist-trunk. It shows the following error after
ptxdist go:

--------------------------------------------
.../ptxdist-trunk/rules/post/export_src.make:25: warning: overriding
   commands for target `/home/s/exutils'
/home/s/linux_x86/rootfs/x86/rules/exutils.make:33: warning: ignoring
   old commands for target `/home/s/exutils'
make: Circular /home/s/exutils <- /home/s/exutils dependency dropped.

You can hunt dependency problems with "ptxdist -d go", which enables
make's dependency printout.

cp: cannot stat `/home/s/gnu/exutils': No such file or directory
--------------------------------------------

NOTE: /home/s/gnu is my SOURCES directory with compressed files.
Follows the beginning of the packet. Any idea of what is wrong ?

Hmm, how did you bring that packet into the stack? Note that we have
autogenerated packet inclusion now, which means that you don't have to
include the .in files manually any more; just push your .in and .make
files into rules/ and make sure that your in file has a

## SECTION=section_name

line (see existing files for reference).

rsc



--
ptxdist mailing list
[email protected]

Reply via email to