From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yh0-x236.google.com ([2607:f8b0:4002:c01::236]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XMU9y-0006uo-AD for ptxdist@pengutronix.de; Wed, 27 Aug 2014 05:44:35 +0200 Received: by mail-yh0-f54.google.com with SMTP id v1so13036580yhn.13 for ; Tue, 26 Aug 2014 20:44:27 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 26 Aug 2014 22:44:27 -0500 Message-ID: From: JD Wilson Subject: [ptxdist] Need help resolving "Error: install_init was not called for package '$XPKG'!" Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1752424708==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1752424708== Content-Type: multipart/alternative; boundary=20cf301af725a4af940501943c88 --20cf301af725a4af940501943c88 Content-Type: text/plain; charset=ISO-8859-1 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 --20cf301af725a4af940501943c88 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
ptxdist group:

I'm developing a new rule file,=A0foo-jdw.in/.make=A0that will install=A0
binary and it's dependent lib int= o the target /usr/bin, and /usr/lib.

Note the pkg and names have been chan= ged to be generic

The binary and lib are pre-built and package= d in a .tar.gz archive.

Part of the .make is included for reference, but I'm really trying to = resolve=A0
the inst= all_init error. =A0This occurs regardless of using install_copy
or inst= all_alternative methods.

# ------------------------------------------------------------------------= ----
# Install
# -------------------------= ---------------------------------------------------
$(STATED= IR)/foo-jdw.install:
@$(ca= ll targetinfo)
install -D $(FOO_JDW_DIR)/usr/bin/$(FO= O_JDW_BIN) \
$(FOO_JDW_PK= GDIR)/usr/bin/$(FOO_JDW_BIN)
install -D $(FOO_JDW_DIR)/usr/lib/$(FO= O_JDW_LIB) \
$(FOO_JDW_PK= GDIR)/usr/lib/$(FOO_JDW_LIB)
@$(call touch)

<= div class=3D"gmail_default"> # -----------------------------------= -----------------------------------------
# Target Install
=
# -----------------------------------= -----------------------------------------
$(STATEDIR)/foo-jdw.targetins= tall:
@$(call targetinfo)

= @$(call install_init, foo-jdw)
@$(call install_fixup, foo-jdw,PACKAGE,foo-jdw)
@$(call install_fixup, foo-jdw,PRIORIT= Y,optional)
@$(call instal= l_fixup, foo-jdw,SECTION,base)
@$(call install_fixup, foo-jdw,AUTHOR,= "")
@$(call install_fixup, foo-jdw,DESCRIP= TION,"")

# 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 properl= y creating the binary=A0
and lib = where expect in $PKGDIR

<= div class=3D"gmail_default"> ------------------------
=
target: = foo-jdw.install
-------------------------

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

install -D \
=A0 /hom= e/jdw/embed/phytec/bsp13.2.3\
=A0 =A0 /platform-phyFLEX-i.MX6/build-tar= get/foo_jdw-003.14.232\
=A0 =A0 = /usr/lib/l= ibfoodriver-003.14.216.so=A0\
= =A0 /home/jdw/embed/phytec/bsp13.2.3\=
=A0 =A0 = /platform-phyFLEX-i.MX6/packages/foo_jdw-003.14.232
=A0 =A0 /usr/lib/<= a href=3D"http://libfoodriver-003.14.216.so/" target=3D"_blank">libfoodrive= r-003.14.216.so
finished= target foo-jdw.install

<= font face=3D"courier new, monospace">------------------------------<= /div>
target: = foo-jdw.install.pack
------------------------------

finished target foo-jdw.inst= all.pack

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

<= font face=3D"courier new, monospace">finished target foo-jdw.install.post

*************
Below is where the error occurs. =A0I had originally cal= led the=A0
package = foo_jdw, where I used an underscore in the package name.

It appears that there is some renamin= g of package names within ptxdist,=A0
however=A0I've tried both the= underscore and dash package name variants,=A0
and that= does=A0resolve the=A0
"Error: install_init was not called for pa= ckage '$XPKG'!";" error.

Any help in resolving this issue would be much=A0appreciated.
=
jd=A0
*************
<= div class=3D"gmail_default">---------= ----------------------
target: = foo-jdw.targetinstall
-------------------------------

install_init: preparing for image creation of 'foo-jdw&= #39;...
install_= init: @ARCH@ -> armel=
in= stall_init: @PACKAGE@ -> foo= -jdw
install_= init: @VERSION@ -> 003.14.23= 2
install_init: @DEPENDS@ -= > foo-rootfs
install_= init: preinst not available
install_init: postinst not ava= ilable
install_= init: prerm not available
i= nstall_init: postrm not availab= le
install_= fixup: @PRIORITY@ -> optiona= l ... done.
install_fixup: = @SECTION@ -> base ... done.
install_= fixup: @AUTHOR@ -> "&qu= ot; ... done.
install_= fixup: @DESCRIPTION@ -> &quo= t;" ... done.
XPKG=3D"foo-jdw"; OWN=3D"0"; GRP= =3D"0"; PER=3D"0755"; SRC=3D"/home/jdw/embed/phyte= c/bsp13.2.3/platform-phyFLEX-i.MX6/build-target/foo_jdw-003.14.232/usr/bin/= foo123-003.14.232"; DST=3D"/usr/bin/foo123-003.14.232"; STRI= P=3D""; CMD=3D"install_copy"; if [ ! -f "/home/jdw= /embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds" ]; th= en echo; echo "Error: install_init was not called for package '$XP= KG'!"; 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'&qu= ot; >> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/= state/$XPKG.cmds"; else echo "ptxd_install_file '$SRC' &#= 39;$DST' '$OWN' '$GRP' '$PER' '$STRIP'&= quot; >> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX= 6/state/$XPKG.cmds"; fi
XPKG=3Df= oo-jdw; OWN=3D0; GRP=3D0; PER=3D0755; FILE=3D/usr/lib/libfoodriver-003.14.216.so;= STRIP=3D; DST=3D; CMD=3D"install_alternative"; if [ ! -f "/= home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$XPKG.cmds&quo= t; ]; 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&#= 39; '$OWN' '$GRP' '$PER' '$STRIP'" >= ;> "/home/jdw/embed/phytec/bsp13.2.3/platform-phyFLEX-i.MX6/state/$= XPKG.cmds"
finished= target foo-jdw.targetinstall

------------------------------------<= /font>
target: = foo-jdw.targetinstall.post
------------------------------------<= /div>

finished target foo-jdw.targetinstall.post
=
--20cf301af725a4af940501943c88-- --===============1752424708== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1752424708==--