ptxdist group:

I'm developing a new rule file, foo-jdw.in/.make that will install 
binary and it's dependent lib into the target /usr/bin, and /usr/lib.

Note the pkg and names have been changed to be generic

The binary and lib are pre-built and packaged in a .tar.gz archive.

Part of the .make is included for reference, but I'm really trying to resolve 
the install_init error.  This occurs regardless of using install_copy
or install_alternative methods.

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/foo-jdw.install:
@$(call targetinfo)
install -D $(FOO_JDW_DIR)/usr/bin/$(FOO_JDW_BIN) \
$(FOO_JDW_PKGDIR)/usr/bin/$(FOO_JDW_BIN)
install -D $(FOO_JDW_DIR)/usr/lib/$(FOO_JDW_LIB) \
$(FOO_JDW_PKGDIR)/usr/lib/$(FOO_JDW_LIB)
@$(call touch)

# ----------------------------------------------------------------------------
# Target Install
# ----------------------------------------------------------------------------
$(STATEDIR)/foo-jdw.targetinstall:
@$(call targetinfo)

@$(call install_init, foo-jdw)
@$(call install_fixup, foo-jdw,PACKAGE,foo-jdw)
@$(call install_fixup, foo-jdw,PRIORITY,optional)
@$(call install_fixup, foo-jdw,SECTION,base)
@$(call install_fixup, foo-jdw,AUTHOR,"")
@$(call install_fixup, foo-jdw,DESCRIPTION,"")

# install binary
$(call install_copy, foo-jdw, 0, 0, 0755, -, /usr/bin/$(FOO_JDW_BIN))
# $(call install_alternative, foo-jdw, 0, 0, 0755, /usr/bin/$(FOO_JDW_BIN))

--------------

The target install appears to work properly creating the binary 
and lib where expect in $PKGDIR

------------------------
target: foo-jdw.install
-------------------------

install -D \
  /home/jdw/embed/phytec/bsp13.2.3\
      /platform-phyFLEX-i.MX6/build-target/foo_jdw-003.14.232\
      /usr/bin/foo123-003.14.232 \
  /home/jdw/embed/phytec/bsp13.2.3\
      /platform-phyFLEX-i.MX6/packages/foo_jdw-003.14.232\
      /usr/bin/foo123-003.14.232

install -D \
  /home/jdw/embed/phytec/bsp13.2.3\
    /platform-phyFLEX-i.MX6/build-target/foo_jdw-003.14.232\
    /usr/lib/libfoodriver-003.14.216.so \
  /home/jdw/embed/phytec/bsp13.2.3\
    /platform-phyFLEX-i.MX6/packages/foo_jdw-003.14.232
finished target foo-jdw.install

------------------------------
target: foo-jdw.install.pack
------------------------------

finished target foo-jdw.install.pack

------------------------------
target: foo-jdw.install.post
------------------------------

finished target foo-jdw.install.post

*************
Below is where the error occurs.  I had originally called the 
package foo_jdw, where I used an underscore in the package name.

It appears that there is some renaming of package names within ptxdist, 
however I've tried both the underscore and dash package name variants, 
and that does resolve the 
"Error: install_init was not called for package '$XPKG'!";" error.

Any help in resolving this issue would be much appreciated.
jd 
*************
-------------------------------
target: foo-jdw.targetinstall
-------------------------------

install_init: preparing for image creation of 'foo-jdw'...
install_init: @ARCH@ -> armel
install_init: @PACKAGE@ -> foo-jdw
install_init: @VERSION@ -> 003.14.232
install_init: @DEPENDS@ -> foo-rootfs
install_init: preinst not available
install_init: postinst not available
install_init: prerm not available
install_init: postrm not available
install_fixup: @PRIORITY@ -> optional ... done.
install_fixup: @SECTION@ -> base ... done.
install_fixup: @AUTHOR@ -> "" ... done.
install_fixup: @DESCRIPTION@ -> "" ... done.
XPKG="foo-jdw"; OWN="0"; GRP="0"; PER="0755"; SRC="/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/build-target/foo_jdw-003.14.232/usr/bin/foo123-003.14.232"; DST="/usr/bin/foo123-003.14.232"; STRIP=""; CMD="install_copy"; if [ ! -f "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds" ]; then echo; echo "Error: install_init was not called for package '$XPKG'!"; echo "This is probably caused by a typo in the package name of:"; echo "\$(call $CMD, $XPKG, ...)"; echo; exit 1; fi; if [ -z " /usr/bin/foo123-003.14.232" ]; then echo "ptxd_install_dir '$SRC' '$OWN' '$GRP' '$PER'" >> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds"; else echo "ptxd_install_file '$SRC' '$DST' '$OWN' '$GRP' '$PER' '$STRIP'" >> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds"; fi
XPKG=foo-jdw; OWN=0; GRP=0; PER=0755; FILE=/usr/lib/libfoodriver-003.14.216.so; STRIP=; DST=; CMD="install_alternative"; if [ ! -f "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds" ]; then echo; echo "Error: install_init was not called for package '$XPKG'!"; echo "This is probably caused by a typo in the package name of:"; echo "\$(call $CMD, $XPKG, ...)"; echo; exit 1; fi; echo "ptxd_install_alternative '$FILE' '$DST' '$OWN' '$GRP' '$PER' '$STRIP'" >> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds"
finished target foo-jdw.targetinstall

------------------------------------
target: foo-jdw.targetinstall.post
------------------------------------

finished target foo-jdw.targetinstall.post