summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2020-02-03 10:19:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-04 15:56:24 +0000
commit46884b1443d92cea877201296bd480b6cbd71cca (patch)
tree1d2a8cb8d81c8bad9dada5820474ebb963eef05c /meta
parent2333ef5bb40132f05f69a5f6abaa3d086ecf9f6c (diff)
downloadopenembedded-core-contrib-46884b1443d92cea877201296bd480b6cbd71cca.tar.gz
podfix: remove
Now that we don't use the host pod2man (oe-core deda455) the podfix class is redundant and can be removed. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/podfix.bbclass35
-rw-r--r--meta/classes/reproducible_build_simple.bbclass2
2 files changed, 0 insertions, 37 deletions
diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass
deleted file mode 100644
index cc8210a27e..0000000000
--- a/meta/classes/podfix.bbclass
+++ /dev/null
@@ -1,35 +0,0 @@
-python pod_strip_version() {
- import re
-
- def opener(filename, mode):
- if filename.endswith(".gz"):
- import gzip
- return gzip.open(filename, mode)
- elif filename.endswith(".bz2"):
- import bz2
- return bz2.open(filename, mode)
- else:
- return open(filename, mode)
-
- bad_re = re.compile(rb"Automatically generated by Pod::Man( [0-9]+.+)")
-
- for root, dirs, files in os.walk(d.expand("${D}${mandir}")):
- for filename in files:
- filename = os.path.join(root, filename)
- if not os.path.isfile(filename):
- continue
-
- with opener(filename, "rb") as manfile:
- manpage = manfile.read()
- m = bad_re.search(manpage)
- if not m:
- continue
-
- bb.note("podfix: stripping version from %s" % filename)
- os.unlink(filename)
- with opener(filename, "wb") as manfile:
- manfile.write(manpage[:m.start(1)])
- manfile.write(manpage[m.end(1):])
-}
-
-do_install[postfuncs] += "pod_strip_version"
diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass
index 153a076072..3e5fd82432 100644
--- a/meta/classes/reproducible_build_simple.bbclass
+++ b/meta/classes/reproducible_build_simple.bbclass
@@ -8,5 +8,3 @@ export SOURCE_DATE_EPOCH ??= "1520598896"
REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896"
BUILDNAME ??= "${REPRODUCIBLE_TIMESTAMP_ROOTFS}"
-
-inherit podfix