diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /scripts/postinst-intercepts | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/postinst-intercepts')
| -rw-r--r-- | scripts/postinst-intercepts/delay_to_first_boot | 6 | ||||
| -rwxr-xr-x | scripts/postinst-intercepts/postinst_intercept | 58 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_desktop_database | 8 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_font_cache | 13 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_gio_module_cache | 11 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_gtk_icon_cache | 21 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_gtk_immodules_cache | 19 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_mandb | 18 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_mime_database | 9 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_pixbuf_cache | 13 | ||||
| -rw-r--r-- | scripts/postinst-intercepts/update_udev_hwdb | 25 |
11 files changed, 0 insertions, 201 deletions
diff --git a/scripts/postinst-intercepts/delay_to_first_boot b/scripts/postinst-intercepts/delay_to_first_boot deleted file mode 100644 index fa8e1caaf5..0000000000 --- a/scripts/postinst-intercepts/delay_to_first_boot +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | exit 1 | ||
diff --git a/scripts/postinst-intercepts/postinst_intercept b/scripts/postinst-intercepts/postinst_intercept deleted file mode 100755 index b91974c885..0000000000 --- a/scripts/postinst-intercepts/postinst_intercept +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # This script is called from inside postinstall scriptlets at do_rootfs time. It | ||
| 6 | # actually adds, at the end, the list of packages for which the intercept script | ||
| 7 | # is valid. Also, if one wants to pass any variables to the intercept script from | ||
| 8 | # the postinstall itself, they will be added immediately after the shebang line. | ||
| 9 | # | ||
| 10 | # Usage: postinst_intercept <intercept_script_name> <package_name> <mlprefix=...> <var1=...> ... <varN=...> | ||
| 11 | # * intercept_script_name - the name of the intercept script we want to change; | ||
| 12 | # * package_name - add the package_name to list of packages the intercept script | ||
| 13 | # is used for; | ||
| 14 | # * mlprefix=... - this one is needed in order to have separate hooks for multilib. | ||
| 15 | # * var1=... - var1 will have the value we provide in the intercept script. This | ||
| 16 | # is useful when we want to pass on variables like ${libdir} to | ||
| 17 | # the intercept script; | ||
| 18 | # | ||
| 19 | [ $# -lt 3 ] && exit 1 | ||
| 20 | |||
| 21 | intercept_script=$INTERCEPT_DIR/$1 && shift | ||
| 22 | package_name=$1 && shift | ||
| 23 | mlprefix=$(echo $1 |sed -ne "s/^mlprefix=\(.*\)-/\1/p") && shift | ||
| 24 | |||
| 25 | # if the hook we want to install does not exist, then there's nothing we can do | ||
| 26 | [ -f "$intercept_script" ] || exit 1 | ||
| 27 | |||
| 28 | # if the postinstall wanting to install the hook belongs to a multilib package, | ||
| 29 | # then we'd better have a separate hook for this because the default ${libdir} and | ||
| 30 | # ${base_libdir} will point to the wrong locations | ||
| 31 | if [ -n "$mlprefix" ]; then | ||
| 32 | ml_intercept_script=$intercept_script-$mlprefix | ||
| 33 | # if the multilib hook does not exist, create it from the default one | ||
| 34 | if [ ! -f "$ml_intercept_script" ]; then | ||
| 35 | cp $intercept_script $ml_intercept_script | ||
| 36 | |||
| 37 | # clear the ##PKGS: line and the already set variables | ||
| 38 | [ -x "$ml_intercept_script" ] && sed -i -e "2,$(($#+1)) {/.*/d}" -e "/^##PKGS: .*/d" $ml_intercept_script | ||
| 39 | fi | ||
| 40 | |||
| 41 | intercept_script=$ml_intercept_script | ||
| 42 | fi | ||
| 43 | |||
| 44 | chmod +x "$intercept_script" | ||
| 45 | |||
| 46 | pkgs_line=$(grep "##PKGS:" $intercept_script) | ||
| 47 | if [ -n "$pkgs_line" ]; then | ||
| 48 | # line exists, add this package to the list only if it's not already there | ||
| 49 | if [ -z "$(echo "$pkgs_line" | grep " $package_name ")" ]; then | ||
| 50 | sed -i -e "s/##PKGS:.*/\0${package_name} /" $intercept_script | ||
| 51 | fi | ||
| 52 | else | ||
| 53 | for var in "$@"; do | ||
| 54 | sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script | ||
| 55 | done | ||
| 56 | echo "##PKGS: ${package_name} " >> $intercept_script | ||
| 57 | fi | ||
| 58 | |||
diff --git a/scripts/postinst-intercepts/update_desktop_database b/scripts/postinst-intercepts/update_desktop_database deleted file mode 100644 index 8903b496f3..0000000000 --- a/scripts/postinst-intercepts/update_desktop_database +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Post-install intercept for mime-xdg.bbclass | ||
| 6 | |||
| 7 | update-desktop-database $D${desktop_dir} | ||
| 8 | |||
diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache deleted file mode 100644 index 900db042d6..0000000000 --- a/scripts/postinst-intercepts/update_font_cache +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | rm -f $D${fontconfigcachedir}/CACHEDIR.TAG | ||
| 9 | |||
| 10 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams} | ||
| 11 | |||
| 12 | chown -R root:root $D${fontconfigcachedir} | ||
| 13 | find $D -type f -name .uuid -exec chown root:root '{}' + | ||
diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache deleted file mode 100644 index c87fa85db9..0000000000 --- a/scripts/postinst-intercepts/update_gio_module_cache +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ | ||
| 9 | |||
| 10 | [ ! -e $D${libdir}/gio/modules/giomodule.cache ] || | ||
| 11 | chown root:root $D${libdir}/gio/modules/giomodule.cache | ||
diff --git a/scripts/postinst-intercepts/update_gtk_icon_cache b/scripts/postinst-intercepts/update_gtk_icon_cache deleted file mode 100644 index a92bd840c6..0000000000 --- a/scripts/postinst-intercepts/update_gtk_icon_cache +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Post-install intercept for gtk-icon-cache.bbclass | ||
| 6 | |||
| 7 | set -e | ||
| 8 | |||
| 9 | # Update native pixbuf loaders | ||
| 10 | $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache | ||
| 11 | |||
| 12 | for icondir in $D/usr/share/icons/*/ ; do | ||
| 13 | if [ -d $icondir ] ; then | ||
| 14 | for gtkuic_cmd in gtk-update-icon-cache gtk4-update-icon-cache ; do | ||
| 15 | if [ -n "$(which $gtkuic_cmd)" ]; then | ||
| 16 | $gtkuic_cmd -fqt $icondir | ||
| 17 | fi | ||
| 18 | done | ||
| 19 | fi | ||
| 20 | done | ||
| 21 | |||
diff --git a/scripts/postinst-intercepts/update_gtk_immodules_cache b/scripts/postinst-intercepts/update_gtk_immodules_cache deleted file mode 100644 index 9f07ccca6b..0000000000 --- a/scripts/postinst-intercepts/update_gtk_immodules_cache +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 ]; then | ||
| 9 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 \ | ||
| 10 | > $D${libdir}/gtk-2.0/2.10.0/immodules.cache && | ||
| 11 | sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache | ||
| 12 | chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache | ||
| 13 | fi | ||
| 14 | if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 ]; then | ||
| 15 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 \ | ||
| 16 | > $D${libdir}/gtk-3.0/3.0.0/immodules.cache && | ||
| 17 | sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache | ||
| 18 | chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache | ||
| 19 | fi | ||
diff --git a/scripts/postinst-intercepts/update_mandb b/scripts/postinst-intercepts/update_mandb deleted file mode 100644 index f91bafdb11..0000000000 --- a/scripts/postinst-intercepts/update_mandb +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -eu | ||
| 7 | |||
| 8 | # Create a temporary man_db.conf with paths to the rootfs, as mandb needs absolute paths | ||
| 9 | CONFIG=$(mktemp --tmpdir update-mandb.XXXXX) | ||
| 10 | sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf > $CONFIG | ||
| 11 | |||
| 12 | mkdir -p $D${localstatedir}/cache/man/ | ||
| 13 | |||
| 14 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${bindir}/mandb --config-file $CONFIG --create | ||
| 15 | |||
| 16 | rm -f $CONFIG | ||
| 17 | |||
| 18 | chown -R man:man $D${localstatedir}/cache/man/ | ||
diff --git a/scripts/postinst-intercepts/update_mime_database b/scripts/postinst-intercepts/update_mime_database deleted file mode 100644 index 582d1e162c..0000000000 --- a/scripts/postinst-intercepts/update_mime_database +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Post-install intercept for mime.bbclass | ||
| 6 | |||
| 7 | echo "Updating MIME database... this may take a while." | ||
| 8 | update-mime-database $D${mimedir} | ||
| 9 | |||
diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache deleted file mode 100644 index ea12814474..0000000000 --- a/scripts/postinst-intercepts/update_pixbuf_cache +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders | ||
| 9 | export GDK_PIXBUF_FATAL_LOADER=1 | ||
| 10 | |||
| 11 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ | ||
| 12 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \ | ||
| 13 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache | ||
diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb deleted file mode 100644 index 8b3f5de791..0000000000 --- a/scripts/postinst-intercepts/update_udev_hwdb +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | case "${PREFERRED_PROVIDER_udev}" in | ||
| 9 | systemd) | ||
| 10 | UDEV_EXTRA_ARGS="--usr" | ||
| 11 | UDEVLIBDIR="${rootlibexecdir}" | ||
| 12 | UDEVADM="${base_bindir}/udevadm" | ||
| 13 | ;; | ||
| 14 | |||
| 15 | *) | ||
| 16 | UDEV_EXTRA_ARGS="" | ||
| 17 | UDEVLIBDIR="${sysconfdir}" | ||
| 18 | UDEVADM="${bindir}/udevadm" | ||
| 19 | ;; | ||
| 20 | esac | ||
| 21 | |||
| 22 | rm -f $D${UDEVLIBDIR}/udev/hwdb.bin | ||
| 23 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${UDEVADM} hwdb --update --root $D ${UDEV_EXTRA_ARGS} || | ||
| 24 | PSEUDO_UNLOAD=1 qemuwrapper -L $D $D${UDEVADM} hwdb --update --root $D ${UDEV_EXTRA_ARGS} | ||
| 25 | chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin | ||
