Skip to content

Conversation

@stobe-ctj
Copy link

@stobe-ctj stobe-ctj commented Feb 3, 2026

Purpose of pull request

This pull request adds a gengetopt recipe.
gengetopt is a build dependency of libidn2.
This recipe is backport from warrior branch of https://git.phytec.de/meta-phytec.

Testing

  • Package build
  • Functional checks

Package build

Add the following to local.conf.

MACHINE = "qemuarm64"
DISTRO = "deby"
IMAGE_INSTALL_append = " gengetopt"
IMAGE_INSTALL_append = " texinfo"
IMAGE_INSTALL_append = " openssh"
EXTRA_IMAGE_FEATURES_append = " tools-sdk"
IMAGE_ROOTFS_EXTRA_SPACE = "10485760"

Functional checks

Build the image on BUILD_PC.

BUILD_PC$ bitbake core-image-minimal

Clean and patch the package to prepare the source for testing.

BUILD_PC$ bitbake gengetopt -c cleanall
BUILD_PC$ bitbake gengetopt -c patch

Start the image on BUILD_PC.

BUILD_PC$ runqemu qemuarm64 nographic

Open another terminal and connect to BUILD_PC.
Then transfer the source tree from BUILD_PC to QEMU.

BUILD_PC$ scp -pr ~/build/tmp/work/aarch64-deby-linux/gengetopt/2.22.6-r0/gengetopt-2.22.6+dfsg0.orig/ root@192.168.7.2:~/

Check the timestamp of installed files (/usr/bin/gengetopt) .

QEMU# ls -l /usr/bin/gengetopt

Create a Makefile to run the tests.

QEMU# cd gengetopt-2.22.6+dfsg0.orig/
QEMU# ./configure --prefix=/usr --host=aarch64-deby-linux
QEMU# make

Run gengetopt test.

QEMU# make check

Check that the test target links include the installed file (/usr/bin/gengetopt).

### PASTE HERE ###

Check the timestamp to make sure installed files (/usr/bin/gengetopt) haven't been overwritten.

QEMU# ls -l /usr/bin/gengetopt

Test result

Package build

The package was successfully built.

deby@0bef921f31cd:~/build$ bitbake gengetopt
Parsing recipes: 100% |########################################################################################| Time: 0:00:04
Parsing of 1044 .bb files complete (0 cached, 1044 parsed). 1828 targets, 75 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "debian-10"
TARGET_SYS           = "aarch64-deby-linux"
MACHINE              = "qemuarm64"
DISTRO               = "deby"
DISTRO_VERSION       = "10.0"
TUNE_FEATURES        = "aarch64 armv8a crc"
TARGET_FPU           = ""
meta                 
meta-poky            = "warrior:d4b57c68b22027c2bedff335dee06af963e4f8a8"
meta-debian          = "add-gengetopt-recipe:1bff40edfa3b20bc3b0acb1bab3fb378a6342eb8"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.9/x86_64-nativesdk-libc.tar.xz;sha256sum=d07916b95c419c81541a19c8ef0ed8cbd78ae18437ff28a4c8a60ef40518e423
Initialising tasks: 100% |#####################################################################################| Time: 0:00:00
Sstate summary: Wanted 81 Found 0 Missed 81 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 593 tasks of which 0 didn't need to be rerun and all succeeded.

Functional checks

There was no difference in test results before and after the update.

### PASTE HERE ###

Confirmed that test target links include the installed file (/usr/bin/gengetopt).

### PASTE HERE ###

Confirmed the timestamp to make sure installed files (/usr/bin/gengetopt) haven't been overwritten.

### PASTE HERE ###

@stobe-ctj stobe-ctj marked this pull request as draft February 3, 2026 07:32
Add gengetopt as it is a build dependency of libidn2.
Backport from warrior branch of <https://git.phytec.de/meta-phytec>.

Signed-off-by: Shota Tobe <shota.tobe@miraclelinux.biz>
@stobe-ctj stobe-ctj force-pushed the add-gengetopt-recipe branch from ce7bc72 to 1bff40e Compare February 3, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant