Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haveged: Deferring to first boot via 'exit 1' is no longer supported. #170

Open
james-bay opened this issue Jan 11, 2020 · 4 comments
Open
Labels
feedback waiting response from submitter

Comments

@james-bay
Copy link

james-bay commented Jan 11, 2020

I have a error with haveged 1.9.6 (yocto zeus)

Postinstall scriptlets of ['haveged'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
@kraj
Copy link
Contributor

kraj commented Jan 13, 2020

Can you check if this happens with master too ? if yes then perhaps there is a patch already that can be backported.

@kraj kraj added the feedback waiting response from submitter label Jan 13, 2020
@james-bay
Copy link
Author

There are no problems with master branch.

With zeus branch, there are messages in log.do_rootfs about haveged:

...
update-rc.d: /home/james/yocto-zeus/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/qt5-image/1.0-r0/rootfs/etc/init.d / haveged: file does not exist
...
Configuring haveged.
haveged.postinst returned 1, marking as unpacked only, configuration required on target.
...
WARNING: haveged.postinst returned 1, marking as unpacked only, configuration required on target.
ERROR: Postinstall scriptlets of ['haveged'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget _ $ {PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /home/james/yocto-zeus/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/qt5-image/1.0-r0/temp/log.do_rootfs.

I use systemd as an init system.

@james-bay
Copy link
Author

I applied this patch and build completed successfully.
Thanks, @kraj!

@kraj
Copy link
Contributor

kraj commented Jan 14, 2020

We need to backport this to Zeus @akuster

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 4, 2022
Changelog:
=========
  Features
-------------
 - * Adds the tests to the sdist. Fixed by openembedded#150

 openembedded#141 <hamcrest/PyHamcrest#141>
 - * Update the CI to test Python 3.10

 openembedded#160 <hamcrest/PyHamcrest#160>
 - * Add pretty string representation for matchers objects

 openembedded#170 <hamcrest/PyHamcrest#170>

 Bugfixes
------------
 - * Test coverage is now submitted to codecov.io.

 Fixed by openembedded#150

 openembedded#135 <hamcrest/PyHamcrest#135>
 - Change to the ``has_entry()`` matcher - if exactly one key matches,
   but the value does not, report only the mismatching value.

 Fixed by openembedded#157

 openembedded#156 <hamcrest/PyHamcrest#156>
 - * Fix is_() type annotations

 openembedded#180 <hamcrest/PyHamcrest#180>

 Misc
-------------
 - openembedded#150 <hamcrest/PyHamcrest#150>
   openembedded#159 <hamcrest/PyHamcrest#159>
   openembedded#162 <hamcrest/PyHamcrest#162>
   openembedded#163 <hamcrest/PyHamcrest#163>
   openembedded#166 <hamcrest/PyHamcrest#166>
   openembedded#175 <hamcrest/PyHamcrest#175>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 4, 2022
Changelog:
=========
  Features
-------------
 - * Adds the tests to the sdist. Fixed by openembedded#150

 openembedded#141 <hamcrest/PyHamcrest#141>
 - * Update the CI to test Python 3.10

 openembedded#160 <hamcrest/PyHamcrest#160>
 - * Add pretty string representation for matchers objects

 openembedded#170 <hamcrest/PyHamcrest#170>

 Bugfixes
------------
 - * Test coverage is now submitted to codecov.io.

 Fixed by openembedded#150

 openembedded#135 <hamcrest/PyHamcrest#135>
 - Change to the ``has_entry()`` matcher - if exactly one key matches,
   but the value does not, report only the mismatching value.

 Fixed by openembedded#157

 openembedded#156 <hamcrest/PyHamcrest#156>
 - * Fix is_() type annotations

 openembedded#180 <hamcrest/PyHamcrest#180>

 Misc
-------------
 - openembedded#150 <hamcrest/PyHamcrest#150>
   openembedded#159 <hamcrest/PyHamcrest#159>
   openembedded#162 <hamcrest/PyHamcrest#162>
   openembedded#163 <hamcrest/PyHamcrest#163>
   openembedded#166 <hamcrest/PyHamcrest#166>
   openembedded#175 <hamcrest/PyHamcrest#175>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 4, 2022
Changelog:
=========
  Features
-------------
 - * Adds the tests to the sdist. Fixed by openembedded#150

 openembedded#141 <hamcrest/PyHamcrest#141>
 - * Update the CI to test Python 3.10

 openembedded#160 <hamcrest/PyHamcrest#160>
 - * Add pretty string representation for matchers objects

 openembedded#170 <hamcrest/PyHamcrest#170>

 Bugfixes
------------
 - * Test coverage is now submitted to codecov.io.

 Fixed by openembedded#150

 openembedded#135 <hamcrest/PyHamcrest#135>
 - Change to the ``has_entry()`` matcher - if exactly one key matches,
   but the value does not, report only the mismatching value.

 Fixed by openembedded#157

 openembedded#156 <hamcrest/PyHamcrest#156>
 - * Fix is_() type annotations

 openembedded#180 <hamcrest/PyHamcrest#180>

 Misc
-------------
 - openembedded#150 <hamcrest/PyHamcrest#150>
   openembedded#159 <hamcrest/PyHamcrest#159>
   openembedded#162 <hamcrest/PyHamcrest#162>
   openembedded#163 <hamcrest/PyHamcrest#163>
   openembedded#166 <hamcrest/PyHamcrest#166>
   openembedded#175 <hamcrest/PyHamcrest#175>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
halstead pushed a commit that referenced this issue Jan 5, 2022
Changelog:
=========
  Features
-------------
 - * Adds the tests to the sdist. Fixed by #150

 #141 <hamcrest/PyHamcrest#141>
 - * Update the CI to test Python 3.10

 #160 <hamcrest/PyHamcrest#160>
 - * Add pretty string representation for matchers objects

 #170 <hamcrest/PyHamcrest#170>

 Bugfixes
------------
 - * Test coverage is now submitted to codecov.io.

 Fixed by #150

 #135 <hamcrest/PyHamcrest#135>
 - Change to the ``has_entry()`` matcher - if exactly one key matches,
   but the value does not, report only the mismatching value.

 Fixed by #157

 #156 <hamcrest/PyHamcrest#156>
 - * Fix is_() type annotations

 #180 <hamcrest/PyHamcrest#180>

 Misc
-------------
 - #150 <hamcrest/PyHamcrest#150>
   #159 <hamcrest/PyHamcrest#159>
   #162 <hamcrest/PyHamcrest#162>
   #163 <hamcrest/PyHamcrest#163>
   #166 <hamcrest/PyHamcrest#166>
   #175 <hamcrest/PyHamcrest#175>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Mar 9, 2022
setup.py-use-setuptools-instead-of-distutils.patch
removed since it's included in 2.4.0

Changelog:
=========
* enable building wheels for multiple platforms and Python versions using
  pypa/cibuildwheel, see openembedded#165 and openembedded#170
* use setuptools instead of distutils in 'setup.py', openembedded#168
* add missing type hinting for '.count()' step argument

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Mar 9, 2022
setup.py-use-setuptools-instead-of-distutils.patch
removed since it's included in 2.4.0

Changelog:
=========
* enable building wheels for multiple platforms and Python versions using
  pypa/cibuildwheel, see openembedded#165 and openembedded#170
* use setuptools instead of distutils in 'setup.py', openembedded#168
* add missing type hinting for '.count()' step argument

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Mar 10, 2022
setup.py-use-setuptools-instead-of-distutils.patch
removed since it's included in 2.4.0

Changelog:
=========
* enable building wheels for multiple platforms and Python versions using
  pypa/cibuildwheel, see openembedded#165 and openembedded#170
* use setuptools instead of distutils in 'setup.py', openembedded#168
* add missing type hinting for '.count()' step argument

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 11, 2023
Changelog:
==========
 Address changes of final V2 api release (openembedded#175)
 Use non-deprecated logging warn method (openembedded#174)
 Add support for smart_scene resource (openembedded#170)
 Add support for matter resource (openembedded#171)
 Fix: KeepAlive workaround causes Geofence to malfunction (openembedded#163)
 Fix: Missing repeated events for Philips Hue Tap Dial switch (openembedded#167)
 Fix error in log when an empty dict is received for an optional value (openembedded#164)
 Add sparkle effect to fix new Festavia lights (openembedded#165)
 Fix typo in discovery (openembedded#158)
 Pin github actions and add dependabot actions ecosystem (openembedded#151)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 11, 2023
Changelog:
==========
 Address changes of final V2 api release (openembedded#175)
 Use non-deprecated logging warn method (openembedded#174)
 Add support for smart_scene resource (openembedded#170)
 Add support for matter resource (openembedded#171)
 Fix: KeepAlive workaround causes Geofence to malfunction (openembedded#163)
 Fix: Missing repeated events for Philips Hue Tap Dial switch (openembedded#167)
 Fix error in log when an empty dict is received for an optional value (openembedded#164)
 Add sparkle effect to fix new Festavia lights (openembedded#165)
 Fix typo in discovery (openembedded#158)
 Pin github actions and add dependabot actions ecosystem (openembedded#151)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Mar 23, 2023
Changelog:
==========
 Use current master version of rapidjson
 Produce ppc64le wheels, thanks to mgiessing (PR openembedded#170)
 Use cibuildwheel 2.21.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Dec 21, 2023
Changelog
  fix(wheels): link libstdc++ statically on manylinux1 by @mayeut in openembedded#159
  chore(wheels): link libstdc++/libgcc statically on musllinux by @mayeut in openembedded#160
  chore: add Windows ARM support by @henryiii in openembedded#169
  chore: continue testing with python 2.7 by @mayeut in openembedded#199
  chore: move to setuptools_scm by @henryiii in openembedded#170
  chore: switch to ruff by @henryiii in openembedded#174
  chore: use trusted publisher deployment by @jcfr in openembedded#191
  chore: use wheel tags cli by @mayeut in openembedded#84
  ci: allow setting a version by @henryiii in openembedded#171
  ci: cancel on repeated pushes by @henryiii in openembedded#177

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Dec 21, 2023
Changelog
  fix(wheels): link libstdc++ statically on manylinux1 by @mayeut in openembedded#159
  chore(wheels): link libstdc++/libgcc statically on musllinux by @mayeut in openembedded#160
  chore: add Windows ARM support by @henryiii in openembedded#169
  chore: continue testing with python 2.7 by @mayeut in openembedded#199
  chore: move to setuptools_scm by @henryiii in openembedded#170
  chore: switch to ruff by @henryiii in openembedded#174
  chore: use trusted publisher deployment by @jcfr in openembedded#191
  chore: use wheel tags cli by @mayeut in openembedded#84
  ci: allow setting a version by @henryiii in openembedded#171
  ci: cancel on repeated pushes by @henryiii in openembedded#177

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback waiting response from submitter
Projects
None yet
Development

No branches or pull requests

2 participants