Roland's homepage

My random knot in the Web

Gnumeric build fix for FreeBSD

Problem

Trying to update gnumeric to version 1.12.50_1, the following errors occurred during installation:

pkg-static: Unable to access file /usr/ports/math/gnumeric/work/stage/usr/local/lib/gnumeric/1.12.50/plugins/perl-func/perl_func.pl:No such file or directory
pkg-static: Unable to access file /usr/ports/math/gnumeric/work/stage/usr/local/lib/gnumeric/1.12.50/plugins/perl-func/plugin.xml:No such file or directory
pkg-static: Unable to access file /usr/ports/math/gnumeric/work/stage/usr/local/lib/gnumeric/1.12.50/plugins/perl-loader/perl_loader.so:No such file or directory
pkg-static: Unable to access file /usr/ports/math/gnumeric/work/stage/usr/local/lib/gnumeric/1.12.50/plugins/perl-loader/plugin.xml:No such file or directory

This happens because the PERL option is OFF, but the abovementioned files are not conditional in pkg-plist

Solution

Edit pkg-plist to add %%PERL%% in front of the lines in question.

--- pkg-plist.orig      2022-03-26 22:17:04.249120000 +0100
+++ pkg-plist   2022-03-26 22:18:34.840495000 +0100
@@ -248,10 +248,10 @@
lib/gnumeric/%%VERSION%%/plugins/oleo/plugin.xml
lib/gnumeric/%%VERSION%%/plugins/openoffice/openoffice.so
lib/gnumeric/%%VERSION%%/plugins/openoffice/plugin.xml
-lib/gnumeric/%%VERSION%%/plugins/perl-func/perl_func.pl
-lib/gnumeric/%%VERSION%%/plugins/perl-func/plugin.xml
-lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.so
-lib/gnumeric/%%VERSION%%/plugins/perl-loader/plugin.xml
+%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-func/perl_func.pl
+%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-func/plugin.xml
+%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.so
+%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-loader/plugin.xml
lib/gnumeric/%%VERSION%%/plugins/plan_perfect/plan_perfect.so
lib/gnumeric/%%VERSION%%/plugins/plan_perfect/plugin.xml
lib/gnumeric/%%VERSION%%/plugins/psiconv/plugin.xml

When trying to report this bug, I found out it has already been reported as part of bug 258485 in september 2021.

For now, keep applying this patch locally.


For comments, please send me an e-mail.


Related articles


←  Decoding temperature data logger files Reading an RSS feed  →