Discussion:
[Linuxsampler-devel] missing file in svn repo
Raphaël Mouneyres
2014-04-09 08:15:28 UTC
Permalink
Hello,

tried to compile today with a fresh svn checkout, and the make process
fails for linuxsampler with "lscp_shell_reference.cpp: No such file or
directory"
Browsing the svn repository online shows that the file doesn't exists
anymore in src/network. Maybe it has been removed by error ?

I had a recent backup of the source tree with the file in it, so i
managed to go on with the compilation process.

Raphaël
Christian Schoenebeck
2014-04-09 08:16:11 UTC
Permalink
Post by Raphaël Mouneyres
tried to compile today with a fresh svn checkout, and the make process
fails for linuxsampler with "lscp_shell_reference.cpp: No such file or
directory"
Browsing the svn repository online shows that the file doesn't exists
anymore in src/network. Maybe it has been removed by error ?
That's an auto generated source file. That's why it was never on SVN. It
should be automatically generated by scripts/generate_lscp_shell_reference.pl
from the input file Documentation/lscp.xml. You can simply type

make parser

to re-generate it explicitly. However it would be interesting to know why it
did not generate it automatically there. Have you probably changed your
system's local time? The Makefile system is usually comparing modification
times of files to decide whether something needs to be rebuilt.

CU
Christian
Raphaël Mouneyres
2014-04-09 11:21:38 UTC
Permalink
Post by Christian Schoenebeck
That's an auto generated source file. That's why it was never on SVN. It
should be automatically generated by
scripts/generate_lscp_shell_reference.pl
from the input file Documentation/lscp.xml. You can simply type
make parser
to re-generate it explicitly. However it would be interesting to know why it
did not generate it automatically there. Have you probably changed your
system's local time? The Makefile system is usually comparing modification
times of files to decide whether something needs to be rebuilt.
running it manually gives a simple reason :
[***@astrux scripts]$ perl generate_lscp_shell_reference.pl
Can't locate XML/Parser.pm in @INC (you may need to install the
XML::Parser module) (@INC contains: /usr/lib/perl5/site_perl
/usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl
/usr/share/perl5/core_perl .) at generate_lscp_shell_reference.pl line
15.
BEGIN failed--compilation aborted at generate_lscp_shell_reference.pl line 15.

this is coderent with a recent message in the AUR :
https://aur.archlinux.org/packages/linuxsampler-svn/ where a
dependency for perl-xml-parser has been added.
But when compiling from source without this requirement, the script
probably fails and the file is not generated.

I now realize that i could have used the linuxsampler-svn from AUR
repository to automatically deal with the dependencies, but on another
hand maybe the make process could catch the error from the perl script
?

Loading...