Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@tkatila
Copy link
Contributor

@tkatila tkatila commented Jun 12, 2017

Signed-off-by: Tuomas Katila tuomas.katila@intel.com

@pohly
Copy link
Contributor

pohly commented Jun 12, 2017

Thanks for fixing my bugs ;-}

The question just is: why was that not caught by testing earlier? Should we have and/or tests for these particular configure options?

@tkatila
Copy link
Contributor Author

tkatila commented Jun 12, 2017

For both items there were warnings in the log.do_configure files, but the build didn't fail.

Refkit doesn't(?) have a component which would depend on the avahi's dns_sd.so. For systemd, I think by default "systemd-getty-generator" is enabled, so even though the the packageconfig was invalid, systemd was configured with getty-generator.

@ipuustin
Copy link
Contributor

After small grepping (git grep '_append.*=\ \"[^ \\]' meta-refkit-*), we have

meta-refkit-computervision/recipes-image/images/refkit-image-computervision.bb:# REFKIT_IMAGE_COMPUTERVISION_EXTRA_INSTALL_append = "my-own-package"
meta-refkit-computervision/recipes-image/images/refkit-image-computervision.bb:# REFKIT_IMAGE_COMPUTERVISION_EXTRA_FEATURES_append = "dev-pkgs"
meta-refkit-core/classes/image-dsk.bbclass:INITRD_LIVE_append = "${@ ('${DEPLOY_DIR_IMAGE}/' + d.getVar('INITRD_IMAGE', expand=True) + '-${MACHINE}.cpio.gz') if d.getVar('INITRD_IMAGE', True) else ''}"
meta-refkit-core/classes/refkit-image.bbclass:APPEND_append = "${@ bb.utils.contains('IMAGE_FEATURES', 'dm-verity', ' dmverity=PARTUUID=${REFKIT_DM_VERITY_PARTUUID}', '', d) }"
meta-refkit-core/classes/refkit-image.bbclass:WICVARS_append = "${@ bb.utils.contains('IMAGE_FEATURES', 'dm-verity', ' \
meta-refkit-core/classes/refkit-image.bbclass:APPEND_append = "${@ ' init_fatal_sh' if (d.getVar('IMAGE_MODE') or '') == 'development' else ''}"
meta-refkit-core/classes/refkit-image.bbclass:APPEND_append = "${@bb.utils.contains('IMAGE_FEATURES', 'ima', ' rootflags=i_version', ' no-ima', d)}"
meta-refkit-core/classes/refkit-image.bbclass:APPEND_append = "${@bb.utils.contains('IMAGE_FEATURES', 'smack', '', ' security=none', d)}"
meta-refkit-core/classes/refkit-swupd-image.bbclass:IMAGE_INSTALL_append = "${@ ' efi-combo-trigger' if oe.types.boolean(d.getVar('REFKIT_USE_DSK_IMAGES') or '0') else '' }"
meta-refkit-core/classes/stateless.bbclass:ROOTFS_POSTUNINSTALL_COMMAND_append = "stateless_mangle_rootfs;"
meta-refkit-core/conf/distro/include/refkit-config.inc:PACKAGECONFIG_append_pn-systemd_refkit-config = "serial-getty-generator"
meta-refkit-core/recipes-connectivity/avahi/avahi_%.bbappend:EXTRA_OECONF_append_refkit-config = "--enable-compat-libdns_sd"
meta-refkit-core/recipes-connectivity/bluez5/bluez5_5%.bbappend:RRECOMMENDS_${PN}_append_refkit-config += "${PN}-client"
meta-refkit-core/recipes-images/images/refkit-image-common.bb:# REFKIT_IMAGE_COMMON_EXTRA_INSTALL_append = "my-own-package"
meta-refkit-core/recipes-images/images/refkit-image-common.bb:# REFKIT_IMAGE_COMMON_EXTRA_FEATURES_append = "dev-pkgs"
meta-refkit-gateway/recipes-image/images/refkit-image-gateway.bb:# REFKIT_IMAGE_GATEWAY_EXTRA_INSTALL_append = "my-own-package"
meta-refkit-gateway/recipes-image/images/refkit-image-gateway.bb:# REFKIT_IMAGE_GATEWAY_EXTRA_FEATURES_append = "dev-pkgs"

@tkatila, could you add to this PR also fixes to the other possible _append mistakes? At least bluez5_5%.bbappend looks like it has a real one. The comments should be fixed too.

@ipuustin
Copy link
Contributor

Oh, I forgot meta-refkit itself from the grep command. It has one likely problem:

meta-refkit/lib/oeqa/selftest/refkit-poky.py:REFKIT_IMAGE_EXTRA_FEATURES_append = "empty-root-password"

@tkatila
Copy link
Contributor Author

tkatila commented Jun 12, 2017

Sure, I can add those fixes as well.

@pohly
Copy link
Contributor

pohly commented Jun 12, 2017 via email

@mythi
Copy link
Contributor

mythi commented Jun 13, 2017 via email

@mythi
Copy link
Contributor

mythi commented Jun 13, 2017

@tkatila do you wish to keep this PR or #180 (they look about the same). FYI, you can make updates to an open PR by force pushing your local edits to the remote branch (e.g., here 'appendfixes')

@tkatila
Copy link
Contributor Author

tkatila commented Jun 13, 2017

@mythi Let's keep this. The latest version should have all the fixes that were ok by reviewers.

@ipuustin
Copy link
Contributor

The fixes look good to me now.

@mythi
Copy link
Contributor

mythi commented Jun 15, 2017

@tkatila please rebase

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 15, 2017
This combined merge takes these PRs in one: intel#177, intel#179, intel#182, intel#183
(with cherry-pick), intel#186, and intel#187.
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 15, 2017
This combined merge takes these PRs in one: intel#113, intel#177, intel#179, intel#182, intel#183
(with cherry-pick), intel#186, and intel#187.
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 15, 2017
This combined merge takes these PRs in one: intel#113, intel#177, intel#179, intel#182, intel#183
(with cherry-pick), intel#186, and intel#187.
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 15, 2017
This combined merge takes these PRs in one: intel#113, intel#177, intel#179, intel#182, intel#183
(with cherry-pick), and intel#187.
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 16, 2017
This combined merge takes these PRs in one: intel#177, intel#179, intel#182, intel#183
(with cherry-pick), and intel#187.
@tkatila
Copy link
Contributor Author

tkatila commented Jun 16, 2017

"appendfixes" branch now contains a rebased version.

@mythi mythi merged commit 79bde35 into intel:master Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants