On Tue, May 10, 2011 at 09:04:52AM -0500, George McCollister wrote:
> On 05/04/2011 08:32 AM, Michael Olbrich wrote:
> >You need to add the patch 0001-use-scripts-with-offlineroot.patch from
> >ipkg. Without it the post-install scripts are not called when creating the
> >image. The scipts we have in ptxdist check $DESTDIR to decide what to do.
> '[PATCH 09/13] opkg: patch up to SVN trunk' includes an upstream
> patch which adds the force_postinstall option. If
> generic/etc/opkg/opkg.conf is modified to include "option
> force_postinstall 1" behavior should be exactly as you describe.
> Should I rewrite '[PATCH 09/13] opkg: patch up to SVN trunk' to
> include the modification to generic/etc/opkg/opkg.conf? Or should I
> make a new patch and put it at the end of the series?

it's only needed in ptxd_make_image_extract_xpkg_files, right? I think its
better to add it there. Otherwise a broken opkg.conf on the BSP can cause
bugs that are very hard to detect.

if ptxd_get_ptxconf "PTXCONF_HOST_PACKAGE_MANAGEMENT_OPKG" > /dev/null; then
    echo "option force_postinstall 1" > "${xpkg_conf}"
    src="/etc/opkg/opkg.conf"
else
...

ptxd_replace_magic "${ptxd_reply}" >> "${xpkg_conf}"

maybe?

Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to