[OpenWrt-Devel] [BROKEN][package-ipkg.mk] postinst, prerm, conffiles from original makefile killed

Christian Schoenebeck christian.schoenebeck at gmail.com
Fri Oct 24 04:37:16 EDT 2014


Original content of Makefile postinst and prerm and conffiles is not moved to final package.

Content of postinst-pkg : "ostinst"
Content of prerm-pkg    : "rerm"
Content of conffiles    : "onffiles"

in the log you find:
echo "onffiles" > conffiles; echo "ostinst-pkg" > postinst-pkg; echo "rerm-pkg" > prerm-pkg;
.../staging_dir/host/bin/find: `onffiles': No such file or directory
mv: cannot stat 'CONTROL/conffiles.resolved': No such file or directory
chmod: cannot access 'CONTROL/conffiles': No such file or directory

Full log-output:
...
export CROSS="i486-openwrt-linux-uclibc-" NO_RENAME=1 ; NM="i486-openwrt-linux-uclibc-nm" STRIP="/home/christiana/owbuild/trunk/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/christiana/owbuild/trunk/scripts/strip-kmod.sh" /home/christiana/owbuild/trunk/scripts/rstrip.sh /home/christiana/owbuild/trunk/build_dir/target-i386_i486_uClibc-0.9.33.2/ddns-scripts/ipkg-all/ddns-scripts
(cd /home/christiana/owbuild/trunk/build_dir/target-i386_i486_uClibc-0.9.33.2/ddns-scripts/ipkg-all/ddns-scripts/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 prerm; echo "onffiles" > conffiles; echo "ostinst-pkg" > postinst-pkg; echo "rerm-pkg" > prerm-pkg; )
install -d -m0755 /home/christiana/owbuild/trunk/bin/x86/packages/packages
/home/christiana/owbuild/trunk/staging_dir/host/bin/ipkg-build -c -o 0 -g 0 /home/christiana/owbuild/trunk/build_dir/target-i386_i486_uClibc-0.9.33.2/ddns-scripts/ipkg-all/ddns-scripts /home/christiana/owbuild/trunk/bin/x86/packages/packages
/home/christiana/owbuild/trunk/staging_dir/host/bin/find: `onffiles': No such file or directory
mv: cannot stat 'CONTROL/conffiles.resolved': No such file or directory
chmod: cannot access 'CONTROL/conffiles': No such file or directory
Packaged contents of /home/christiana/owbuild/trunk/build_dir/target-i386_i486_uClibc-0.9.33.2/ddns-scripts/ipkg-all/ddns-scripts into /home/christiana/owbuild/trunk/bin/x86/packages/packages/ddns-scripts_2.0.1-9_all.ipk
...
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list