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 /meta/recipes-extended/texinfo-dummy-native | |
| 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 'meta/recipes-extended/texinfo-dummy-native')
3 files changed, 0 insertions, 152 deletions
diff --git a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb b/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb deleted file mode 100644 index 9773d134cf..0000000000 --- a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | SUMMARY = "Fake version of the texinfo utility suite" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | DESCRIPTION = "${SUMMARY}" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d6bb62e73ca8b901d3f2e9d71542f4bb" | ||
| 6 | DEPENDS = "" | ||
| 7 | PV = "1.0" | ||
| 8 | |||
| 9 | SRC_URI = "file://template.py file://COPYING" | ||
| 10 | |||
| 11 | S = "${UNPACKDIR}" | ||
| 12 | |||
| 13 | inherit native | ||
| 14 | |||
| 15 | # | ||
| 16 | # To avoid texinfo-dummy-native and texinfo-native conflicting we install to base_bindir | ||
| 17 | # which is later in PATH than bindir where texinfo-native installs | ||
| 18 | # | ||
| 19 | do_install_name() { | ||
| 20 | FILENAME="${D}${base_bindir}/$1" | ||
| 21 | # Using ln causes problems with rm_work | ||
| 22 | cp -T "${S}/template.py" "$FILENAME" | ||
| 23 | chmod +x $FILENAME | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | mkdir -p "${D}${base_bindir}" | ||
| 28 | for i in makeinfo pod2texi texi2dvi pdftexi2dvi texindex texi2pdf \ | ||
| 29 | txixml2texi texi2any install-info ginstall-info \ | ||
| 30 | update-info-dir; do | ||
| 31 | do_install_name $i | ||
| 32 | done | ||
| 33 | } | ||
diff --git a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/COPYING b/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/COPYING deleted file mode 100644 index 531cbe723d..0000000000 --- a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/COPYING +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | Copyright (c) 2014 Intel Corp. | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 4 | of this software and associated documentation files (the "Software"), to deal | ||
| 5 | in the Software without restriction, including without limitation the rights | ||
| 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 7 | copies of the Software, and to permit persons to whom the Software is | ||
| 8 | furnished to do so, subject to the following conditions: | ||
| 9 | |||
| 10 | The above copyright notice and this permission notice shall be included in | ||
| 11 | all copies or substantial portions of the Software. | ||
| 12 | |||
| 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| 19 | THE SOFTWARE. | ||
diff --git a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py b/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py deleted file mode 100644 index 4de5bb8f41..0000000000 --- a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py +++ /dev/null | |||
| @@ -1,100 +0,0 @@ | |||
| 1 | #! /usr/bin/env python3 | ||
| 2 | |||
| 3 | # template.py (and other filenames) | ||
| 4 | # By Max Eliaser (max.eliaser@intel.com) | ||
| 5 | |||
| 6 | # Copyright (c) 2014 Intel Corp. | ||
| 7 | |||
| 8 | # Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 9 | # of this software and associated documentation files (the "Software"), to deal | ||
| 10 | # in the Software without restriction, including without limitation the rights | ||
| 11 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 12 | # copies of the Software, and to permit persons to whom the Software is | ||
| 13 | # furnished to do so, subject to the following conditions: | ||
| 14 | |||
| 15 | # The above copyright notice and this permission notice shall be included in | ||
| 16 | # all copies or substantial portions of the Software. | ||
| 17 | |||
| 18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 21 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 23 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| 24 | # THE SOFTWARE. | ||
| 25 | |||
| 26 | # This program acts like a dummy version of the texinfo utilities, creating | ||
| 27 | # the right output files but leaving them blank. It will parse out the name | ||
| 28 | # of the executable from argv[0] and emulate the corresponding program, so | ||
| 29 | # multiple copies of this script will exist under different names. | ||
| 30 | |||
| 31 | import sys, argparse | ||
| 32 | |||
| 33 | this_binary = sys.argv[0].split("/")[-1] | ||
| 34 | |||
| 35 | # To be outputted if functionality that hasn't been stubbed yet is invoked. | ||
| 36 | stub_msg = """ | ||
| 37 | This stand-in version of %s is not yet fully capable of emulating | ||
| 38 | the real version from the GNU texinfo suite. If you see this message, file a | ||
| 39 | bug report with details on the recipe that failed. | ||
| 40 | Invoked as %s | ||
| 41 | """ % (this_binary, sys.argv) | ||
| 42 | |||
| 43 | # Autotools setups query the version, so this is actually necessary. Some of | ||
| 44 | # them (lookin' at you, glibc) actually look for the substring "GNU texinfo," | ||
| 45 | # so we put that substring in there without actually telling a lie. | ||
| 46 | version_str = """%s (fake texinfo, emulating GNU texinfo) 5.2 | ||
| 47 | |||
| 48 | Super amazing version which is totally not fake in any way whatsoever. | ||
| 49 | Copyright (C) 2014 Intel Corp. Distributed under the terms of the MIT | ||
| 50 | license. | ||
| 51 | """ % this_binary | ||
| 52 | |||
| 53 | simple_binaries = "pod2texi texi2dvi pdftexi2dvi texindex texi2pdf \ | ||
| 54 | txixml2texi install-info ginstall-info \ | ||
| 55 | update-info-dir".split() | ||
| 56 | |||
| 57 | # These utilities use a slightly different set of options and flags. | ||
| 58 | complex_binaries = "makeinfo texi2any".split() | ||
| 59 | |||
| 60 | valid_binaries = simple_binaries + complex_binaries | ||
| 61 | |||
| 62 | assert this_binary in valid_binaries, \ | ||
| 63 | this_binary + " is not one of " + ', '.join(valid_binaries) | ||
| 64 | |||
| 65 | # For debugging | ||
| 66 | log_interceptions = False | ||
| 67 | if log_interceptions: | ||
| 68 | with open("/tmp/intercepted_" + this_binary, "a") as f: | ||
| 69 | f.write(' '.join([this_binary] + sys.argv[1:]) + '\n') | ||
| 70 | |||
| 71 | # Look through the options and flags, and if necessary, touch any output | ||
| 72 | # files. | ||
| 73 | p = argparse.ArgumentParser() | ||
| 74 | if this_binary in complex_binaries: | ||
| 75 | p.add_argument('-E', '--macro-expand', metavar='FILE') | ||
| 76 | p.add_argument('-o', '--output', metavar='DEST') | ||
| 77 | p.add_argument('--version', action='store_true') | ||
| 78 | |||
| 79 | args, unknown = p.parse_known_args() | ||
| 80 | |||
| 81 | if args.version: | ||
| 82 | print(version_str) | ||
| 83 | sys.exit(0) | ||
| 84 | |||
| 85 | # Check for functionality that isn't implemented yet. | ||
| 86 | assert not getattr(args, 'macro_expand', None), \ | ||
| 87 | "-E/--macro-expand option not yet supported" + stub_msg | ||
| 88 | |||
| 89 | # Check if -o or --output is specified. | ||
| 90 | if args.output: | ||
| 91 | with open(args.output, 'w'): | ||
| 92 | pass | ||
| 93 | sys.exit(0) | ||
| 94 | |||
| 95 | # The -o/--output option overrides the default. For makeinfo and texi2any, | ||
| 96 | # that default is to look for a @setfilename command in the input file. | ||
| 97 | # Otherwise, printing nothing to stdout and then exiting should suffice. | ||
| 98 | assert this_binary in simple_binaries, \ | ||
| 99 | "Don't know how to get default output file name from input file!" + \ | ||
| 100 | stub_msg | ||
