LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-26-2022, 10:55 AM   #1
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
regression on -current with a2ps


a2ps doesn't build anymore on -current due to new texinfo (while downgrading to previous texinfo-6.8 it builds fine).

Code:
make[2]*: on entre dans le répertoire «*/tmp/a2ps-4.14/doc*»
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh /tmp/a2ps-4.14/auxdir/missing --run makeinfo --version) >/dev/null 2>&1; then \
  for f in regex.info regex.info-[0-9] regex.info-[0-9][0-9] regex.i[0-9] regex.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh /tmp/a2ps-4.14/auxdir/missing --run makeinfo   -I . \
 -o regex.info regex.texi; \
then \
  rc=0; \
  cd .; \
else \
  rc=$?; \
  cd . && \
  $restore $backupdir/* `echo "./regex.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
Can't use an undefined value as an ARRAY reference at /usr/share/texinfo/Texinfo/ParserNonXS.pm line 4354.
make[2]: *** [Makefile:329: regex.info] Error 1
make[2]*: on quitte le répertoire «*/tmp/a2ps-4.14/doc*»
make[1]: *** [Makefile:357: all-recursive] Error 1
make[1]*: on quitte le répertoire «*/tmp/a2ps-4.14*»
make: *** [Makefile:286: all] Error 2

Last edited by nobodino; 11-26-2022 at 12:55 PM.
 
Old 12-01-2022, 12:25 AM   #2
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
upgrading to texinfo-7.0.1 doesn't change anything.
 
Old 12-01-2022, 12:36 AM   #3
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I added "autoreconf -vfi" to the a2ps.SlackBuild after the different patches:

Code:
zcat $CWD/a2ps-texi-comments.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/a2ps.texinfo-6.7.patch.gz | patch -p1 --verbose || exit 1
autoreconf -vfi

# Make sure ownerships and permissions are sane:
chown -R root:root .
the error message is different now:

Code:
Makefile:457: .deps/alloca.Plo: Aucun fichier ou dossier de ce type
make[2]: *** Aucune règle pour fabriquer la cible «*.deps/alloca.Plo*». Arrêt.
 
Old 12-02-2022, 01:04 PM   #4
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 211

Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
make[2]: *** Aucune règle pour fabriquer la cible «*.deps/alloca.Plo*». Arrêt.[/CODE]
Hi nobodino, i think you should post in english for everyone (translation of locales in French are often funny for me). I prefer (no choice) the de-facto install setting for my *configs (5 in total)
 
Old 12-02-2022, 01:56 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by dodoLQ View Post
Hi nobodino, i think you should post in english for everyone (translation of locales in French are often funny for me). I prefer (no choice) the de-facto install setting for my *configs (5 in total)
This one is easy
Code:
Aucune    = No
règles    = rules
pour      = to
fabriquer = make
la        = the
cible     = target
 
1 members found this post helpful.
Old 12-04-2022, 04:28 PM   #6
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
There was note of this in gentoo's bug reports: https://bugs.gentoo.org/882385

Still no fix as of today. I looked at the file and line number where the undefined value was used but was quickly in over my head.

In another gentoo bug report for a2ps they mentioned that a2ps is undergoing some recent development, which is evident in their git news: https://git.savannah.gnu.org/cgit/a2ps.git/tree/NEWS

It's still in alpha stages but perhaps they will have a new release soon that may build.
 
Old 12-04-2022, 05:37 PM   #7
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by nobodino View Post
upgrading to texinfo-7.0.1 doesn't change anything.
recompiled with:
Code:
--- texinfo.SlackBuild	2022-12-05 00:36:05.141677383 +0100
+++ texinfo.SlackBuild.1	2022-12-05 00:35:50.395760018 +0100
@@ -95,7 +95,6 @@
   --mandir=/usr/man \
   --infodir=/usr/info \
   --docdir=/usr/doc/texinfo-$VERSION \
-  --disable-perl-xs \
   --build=$ARCH-slackware-linux || exit 1
 
 make $NUMJOBS || make || exit 1
and a2ps builds fine

+ cosmetic
Code:
cp: cannot stat 'INTRODUCTION': No such file or directory
Code:
@@ -126,7 +125,7 @@
 
 mkdir -p $PKG/usr/doc/texinfo-$VERSION
 cp -a \
-  ABOUT-NLS AUTHORS COPYING* INSTALL INTRODUCTION NEWS README* TODO \
+  ABOUT-NLS AUTHORS COPYING* INSTALL NEWS README* TODO \
   $PKG/usr/doc/texinfo-$VERSION

Last edited by marav; 12-05-2022 at 02:52 AM.
 
4 members found this post helpful.
Old 12-05-2022, 03:22 PM   #8
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Fixed
Code:
Mon Dec  5 21:00:46 UTC 2022
ap/texinfo-7.0.1-x86_64-2.txz:  Rebuilt.
  Rebuilt without the --disable-perl-xs option to fix a2ps failing to build
  from source. The option was added during the 15.0 development cycle to fix
  glibc failing to build from source, but that issue has been resolved.
  Thanks to nobodino and marav.
 
2 members found this post helpful.
Old 12-13-2022, 04:47 AM   #9
lucabon
Member
 
Registered: Oct 2021
Location: Italy
Distribution: Slackware
Posts: 104

Rep: Reputation: 74
Quote:
Originally Posted by marav View Post
Mon Dec 5 21:00:46 UTC 2022
ap/texinfo-7.0.1-x86_64-2.txz: Rebuilt.
Rebuilt without the --disable-perl-xs option to fix a2ps failing to build
from source. The option was added during the 15.0 development cycle to fix
glibc failing to build from source, but that issue has been resolved.
Thanks to nobodino and marav.
Even if no more useful, the following patch (in texinfo) fix the bug in Perl-non-xs module:

Code:
--- texinfo-7.0.1/tp/Texinfo/ParserNonXS.pm.orig        2022-11-30 18:06:28.000000000 +0100
+++ texinfo-7.0.1/tp/Texinfo/ParserNonXS.pm     2022-12-13 11:17:37.240447516 +0100
@@ -4357,7 +4357,7 @@
             and ($current->{'parent'}->{'type'} eq 'menu_comment'
                  or $current->{'parent'}->{'type'} eq 'menu_entry_description')
             and $asterisk
-            and @{$current->{'contents'}}
+            and ref($current->{'contents'}) eq "ARRAY"
             and $current->{'contents'}->[-1]->{'type'}
             and $current->{'contents'}->[-1]->{'type'} eq 'empty_line'
             and $current->{'contents'}->[-1]->{'text'} eq '') {
 
4 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Behaviour of a2ps changed in OpenSuSE 10.2 statguy SUSE / openSUSE 1 03-13-2007 08:23 AM
Using a2ps to print html swcng2001 Linux - Software 3 06-23-2006 11:40 AM
a2ps doogie1988 Linux - Software 1 06-23-2006 11:10 AM
a2ps text crosses borders of the page kvtournh Linux - Software 3 02-18-2005 08:53 AM
a2ps printing pdf problem feetyouwell Linux - Software 1 01-28-2005 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration