[mythtv] Errant Version.pm being added to perl install directory
Gary Buhrmaster
gary.buhrmaster at gmail.com
Sun Jan 22 21:09:10 UTC 2023
On Sat, Jan 21, 2023 at 10:38 PM David Hampton via mythtv-dev
<mythtv-dev at mythtv.org> wrote:
> If any perl wizards are reading this, I'd love to hear any ideas you
> have.
Well, I am not a perl makemaker expert, but if
I understand what you are trying to accomplish
(and I did not actually test this as a build/install),
you can try the following diff which seems to be
a much easier approach.
diff --git a/mythtv/bindings/perl/Makefile b/mythtv/bindings/perl/Makefile
index c7ded786a0..0497a4d9d0 100644
--- a/mythtv/bindings/perl/Makefile
+++ b/mythtv/bindings/perl/Makefile
@@ -10,6 +10,12 @@ ifneq ($(PREFIX:/=), /usr)
endif
endif
+ifndef MYTHTV_VERSION_MAJMIN
+ MYTHTV_VERSION_MAJMIN=0.1
+endif
+
+export MYTHTV_VERSION_MAJMIN
+
all: perl_build
clean:
diff --git a/mythtv/bindings/perl/Makefile.PL b/mythtv/bindings/perl/Makefile.PL
index cd69830b67..05b8c5f80e 100644
--- a/mythtv/bindings/perl/Makefile.PL
+++ b/mythtv/bindings/perl/Makefile.PL
@@ -12,7 +12,7 @@ use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'MythTV',
- 'VERSION_FROM' => 'Version.pm',
+ 'VERSION' => "$ENV{'MYTHTV_VERSION_MAJMIN'}",
'AUTHOR' => 'Chris Petersen <mythtv at forevermore.net>',
'PREREQ_PM' => {'Exporter' => 0,
'Config' => 0,
diff --git a/mythtv/bindings/perl/Version.pm.in
b/mythtv/bindings/perl/Version.pm.in
deleted file mode 100644
index 72656e85f8..0000000000
--- a/mythtv/bindings/perl/Version.pm.in
+++ /dev/null
@@ -1,2 +0,0 @@
-# Version
- $VERSION = '@MYTHTV_VERSION_MAJMIN@';
More information about the mythtv-dev
mailing list