After a talk with Hongxu jia, we decided to change the do_install_append_class-target() to do_install_append(), in this function, added the following: if [ "${CLASSOVERRIDE}" = "class-native" ]; then return fi in this way, avoid the conflict with the following do_install_append_class-native function. //dengke On 2016年03月17日 05:52, Paul Eggleton wrote: > On Wed, 16 Mar 2016 21:30:35 Burton, Ross wrote: >> On 16 March 2016 at 02:49, Dengke Du wrote: >>> When we create nativesdk-coreutils, a lot of warnings appear,it >>> show many files can't find. >> I don't think anywhere where nativesdk packages are used actually runs the >> postinst scripts to create the alternative links, so maybe we should be >> stopping update-alternatives do anything in nativesdk (just like it doesn't >> do anything for native)? > Actually I checked this by adding a dummy line which creates a file in $D to > the dbus postinst and then adding nativesdk-dbus to buildtools-tarball - it > seems that the postinst does actually get run. As long as the postinst can > successfully run at SDK construction time then apparently it should work. > > Cheers, > Paul >