From: JD Wilson <jdwilson.rfc@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] Need help resolving "Error: install_init was not called for package '$XPKG'!"
Date: Tue, 26 Aug 2014 22:44:27 -0500 [thread overview]
Message-ID: <CAABb0=QuTnD2XF9S0fJUkUWQZXqpB0kUWQpxJOsTigQv_agGSg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 5250 bytes --]
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
/usr/lib/libfoodriver-003.14.216.so
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
[-- Attachment #1.2: Type: text/html, Size: 16567 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2014-08-27 3:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 3:44 JD Wilson [this message]
2014-08-27 7:14 ` Guillermo Rodriguez Garcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAABb0=QuTnD2XF9S0fJUkUWQZXqpB0kUWQpxJOsTigQv_agGSg@mail.gmail.com' \
--to=jdwilson.rfc@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox