From 04d4063eaf4611f648fec2ef1bb200f7cbf8fabf Mon Sep 17 00:00:00 2001 From: Mike Small Date: Sun, 21 Jun 2020 11:45:18 -0400 Subject: [PATCH] Provide me a way to run in Slackware 14.2 This is probably a silly way to deal with uniq not being in the older List::Util vs. providing an implementation. But 15 is just around the corner anyway? Also add an uninstall target. --- Makefile | 8 ++++++++ frfac.wrapper | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 frfac.wrapper diff --git a/Makefile b/Makefile index 5e1d08e..4c0006f 100644 --- a/Makefile +++ b/Makefile @@ -5,3 +5,11 @@ check: install: install -o root -g wheel -m 0755 -d /usr/local/bin install -o root -g wheel -m 0555 frfac /usr/local/bin + +install_with_newcore_hack: + install -o root -g wheel -m 0755 -d /usr/local/bin + install -o root -g wheel -m 0555 frfac /usr/local/share/perl5/ + install -o root -g wheel -m 0555 frfac.wrapper /usr/local/bin/frfac + +uninstall: + rm -f /usr/local/bin/frfac /usr/local/share/perl5/frfac diff --git a/frfac.wrapper b/frfac.wrapper new file mode 100644 index 0000000..9e72736 --- /dev/null +++ b/frfac.wrapper @@ -0,0 +1,13 @@ +#!/bin/sh + +# Use a newer List::Util than that in core of the +# system Perl. E.g. Slackware 14.2's perl is +# 5.22.2 and only has version 1.41 of List::Util. +# That version lacks the uniq function. +# The directory /usr/local/share/newperlcore is +# expected to have a new List::Util under it +# install via... +# perl Makefile.PL INSTALL_BASE=/usr/local/share/newperlcore + +perl -I /usr/local/share/newperlcore /usr/local/share/perl5/frfac +