golden hour
/usr/share/perl5/pod
⬆️ Go Up
Upload
File/Folder
Size
Actions
perl.pod
16.28 KB
Del
OK
perl5004delta.pod
54.92 KB
Del
OK
perl5005delta.pod
33.48 KB
Del
OK
perl5100delta.pod
54.23 KB
Del
OK
perl5101delta.pod
42.86 KB
Del
OK
perl5120delta.pod
87.18 KB
Del
OK
perl5121delta.pod
9.9 KB
Del
OK
perl5122delta.pod
9.38 KB
Del
OK
perl5123delta.pod
4 KB
Del
OK
perl5124delta.pod
3.59 KB
Del
OK
perl5125delta.pod
7.5 KB
Del
OK
perl5140delta.pod
140.94 KB
Del
OK
perl5141delta.pod
7.78 KB
Del
OK
perl5142delta.pod
6.73 KB
Del
OK
perl5143delta.pod
7.58 KB
Del
OK
perl5144delta.pod
6.18 KB
Del
OK
perl5160delta.pod
130.52 KB
Del
OK
perl5161delta.pod
6 KB
Del
OK
perl5162delta.pod
3.51 KB
Del
OK
perl5163delta.pod
3.99 KB
Del
OK
perl5180delta.pod
116.63 KB
Del
OK
perl5181delta.pod
6.44 KB
Del
OK
perl5182delta.pod
5.21 KB
Del
OK
perl5184delta.pod
4.53 KB
Del
OK
perl5200delta.pod
112.99 KB
Del
OK
perl5201delta.pod
10.64 KB
Del
OK
perl5202delta.pod
12.22 KB
Del
OK
perl5203delta.pod
9.17 KB
Del
OK
perl5220delta.pod
127.89 KB
Del
OK
perl5221delta.pod
10.51 KB
Del
OK
perl5222delta.pod
12.33 KB
Del
OK
perl5223delta.pod
8.26 KB
Del
OK
perl5224delta.pod
4.36 KB
Del
OK
perl5240delta.pod
63.4 KB
Del
OK
perl5241delta.pod
8.02 KB
Del
OK
perl5242delta.pod
4.02 KB
Del
OK
perl5243delta.pod
11.16 KB
Del
OK
perl5244delta.pod
4.4 KB
Del
OK
perl5260delta.pod
99.45 KB
Del
OK
perl5261delta.pod
7.74 KB
Del
OK
perl5262delta.pod
7.7 KB
Del
OK
perl5263delta.pod
6.9 KB
Del
OK
perl5280delta.pod
70.42 KB
Del
OK
perl5281delta.pod
4.53 KB
Del
OK
perl5282delta.pod
6.05 KB
Del
OK
perl5283delta.pod
4.99 KB
Del
OK
perl5300delta.pod
40.31 KB
Del
OK
perl5301delta.pod
5.6 KB
Del
OK
perl5302delta.pod
4.57 KB
Del
OK
perl5303delta.pod
4.86 KB
Del
OK
perl5320delta.pod
53.32 KB
Del
OK
perl5321delta.pod
6.84 KB
Del
OK
perl561delta.pod
121.79 KB
Del
OK
perl56delta.pod
104.69 KB
Del
OK
perl581delta.pod
37.17 KB
Del
OK
perl582delta.pod
4.37 KB
Del
OK
perl583delta.pod
6.19 KB
Del
OK
perl584delta.pod
7.19 KB
Del
OK
perl585delta.pod
5.75 KB
Del
OK
perl586delta.pod
4.54 KB
Del
OK
perl587delta.pod
8.16 KB
Del
OK
perl588delta.pod
24.69 KB
Del
OK
perl589delta.pod
52.64 KB
Del
OK
perl58delta.pod
112.47 KB
Del
OK
perlaix.pod
19.96 KB
Del
OK
perlamiga.pod
5.61 KB
Del
OK
perlandroid.pod
8.03 KB
Del
OK
perlapi.pod
481.55 KB
Del
OK
perlapio.pod
20.84 KB
Del
OK
perlartistic.pod
6.85 KB
Del
OK
perlbook.pod
8.19 KB
Del
OK
perlboot.pod
294 B
Del
OK
perlbot.pod
304 B
Del
OK
perlbs2000.pod
7.81 KB
Del
OK
perlcall.pod
55.41 KB
Del
OK
perlcheat.pod
4.38 KB
Del
OK
perlclib.pod
9.38 KB
Del
OK
perlcn.pod
4.65 KB
Del
OK
perlcommunity.pod
6.82 KB
Del
OK
perlcygwin.pod
26.56 KB
Del
OK
perldata.pod
48.62 KB
Del
OK
perldbmfilter.pod
4.86 KB
Del
OK
perldebguts.pod
41.34 KB
Del
OK
perldebtut.pod
21.63 KB
Del
OK
perldebug.pod
38.46 KB
Del
OK
perldelta.pod
6.84 KB
Del
OK
perldeprecation.pod
20.34 KB
Del
OK
perldiag.pod
290.03 KB
Del
OK
perldos.pod
10.28 KB
Del
OK
perldsc.pod
25.01 KB
Del
OK
perldtrace.pod
7.77 KB
Del
OK
perlebcdic.pod
82.37 KB
Del
OK
perlembed.pod
36.69 KB
Del
OK
perlexperiment.pod
7.06 KB
Del
OK
perlfork.pod
13.04 KB
Del
OK
perlform.pod
16.22 KB
Del
OK
perlfreebsd.pod
1.58 KB
Del
OK
perlfunc.pod
394.31 KB
Del
OK
perlgit.pod
28.9 KB
Del
OK
perlgov.pod
14.14 KB
Del
OK
perlgpl.pod
13.49 KB
Del
OK
perlguts.pod
158.3 KB
Del
OK
perlhack.pod
42.15 KB
Del
OK
perlhacktips.pod
56.34 KB
Del
OK
perlhacktut.pod
6.01 KB
Del
OK
perlhaiku.pod
1.47 KB
Del
OK
perlhist.pod
54.85 KB
Del
OK
perlhpux.pod
29.89 KB
Del
OK
perlhurd.pod
1.95 KB
Del
OK
perlintern.pod
81.61 KB
Del
OK
perlinterp.pod
32.92 KB
Del
OK
perlintro.pod
21.62 KB
Del
OK
perliol.pod
33.99 KB
Del
OK
perlipc.pod
69.85 KB
Del
OK
perlirix.pod
4.31 KB
Del
OK
perljp.pod
8.23 KB
Del
OK
perlko.pod
11.92 KB
Del
OK
perllexwarn.pod
355 B
Del
OK
perllinux.pod
1.96 KB
Del
OK
perllocale.pod
72.38 KB
Del
OK
perllol.pod
9.36 KB
Del
OK
perlmacos.pod
998 B
Del
OK
perlmacosx.pod
11.84 KB
Del
OK
perlmod.pod
25.58 KB
Del
OK
perlmodinstall.pod
10.02 KB
Del
OK
perlmodlib.pod
74.56 KB
Del
OK
perlmodstyle.pod
22.06 KB
Del
OK
perlmroapi.pod
3.2 KB
Del
OK
perlnetware.pod
6.49 KB
Del
OK
perlnewmod.pod
10.78 KB
Del
OK
perlnumber.pod
8.16 KB
Del
OK
perlobj.pod
34.88 KB
Del
OK
perlootut.pod
26.13 KB
Del
OK
perlop.pod
145.4 KB
Del
OK
perlopenbsd.pod
1.2 KB
Del
OK
perlopentut.pod
14.87 KB
Del
OK
perlos2.pod
91.16 KB
Del
OK
perlos390.pod
16.14 KB
Del
OK
perlos400.pod
4.65 KB
Del
OK
perlpacktut.pod
50.17 KB
Del
OK
perlperf.pod
48.71 KB
Del
OK
perlplan9.pod
5 KB
Del
OK
perlpod.pod
22.54 KB
Del
OK
perlpodspec.pod
67.02 KB
Del
OK
perlpolicy.pod
25.94 KB
Del
OK
perlport.pod
86.61 KB
Del
OK
perlpragma.pod
5.05 KB
Del
OK
perlqnx.pod
6.52 KB
Del
OK
perlre.pod
127.75 KB
Del
OK
perlreapi.pod
29.54 KB
Del
OK
perlrebackslash.pod
31.53 KB
Del
OK
perlrecharclass.pod
48.54 KB
Del
OK
perlref.pod
34.6 KB
Del
OK
perlreftut.pod
18.38 KB
Del
OK
perlreguts.pod
38.38 KB
Del
OK
perlrepository.pod
509 B
Del
OK
perlrequick.pod
18.69 KB
Del
OK
perlreref.pod
15.22 KB
Del
OK
perlretut.pod
119.66 KB
Del
OK
perlriscos.pod
1.49 KB
Del
OK
perlrun.pod
54.67 KB
Del
OK
perlsec.pod
26.95 KB
Del
OK
perlsecpolicy.pod
18.99 KB
Del
OK
perlsolaris.pod
29.14 KB
Del
OK
perlsource.pod
6.96 KB
Del
OK
perlstyle.pod
8.53 KB
Del
OK
perlsub.pod
72.66 KB
Del
OK
perlsymbian.pod
14.98 KB
Del
OK
perlsyn.pod
44.08 KB
Del
OK
perlsynology.pod
7.77 KB
Del
OK
perlthrtut.pod
45.43 KB
Del
OK
perltie.pod
38.39 KB
Del
OK
perltoc.pod
685.35 KB
Del
OK
perltodo.pod
372 B
Del
OK
perltooc.pod
294 B
Del
OK
perltoot.pod
294 B
Del
OK
perltrap.pod
10.37 KB
Del
OK
perltru64.pod
8.29 KB
Del
OK
perltw.pod
4.36 KB
Del
OK
perlunicode.pod
89.21 KB
Del
OK
perlunicook.pod
25.06 KB
Del
OK
perlunifaq.pod
13.32 KB
Del
OK
perluniintro.pod
37.74 KB
Del
OK
perluniprops.pod
431.26 KB
Del
OK
perlunitut.pod
7.76 KB
Del
OK
perlutil.pod
7.12 KB
Del
OK
perlvar.pod
80.64 KB
Del
OK
perlvms.pod
49.63 KB
Del
OK
perlvos.pod
3.75 KB
Del
OK
perlwin32.pod
39.37 KB
Del
OK
Edit: perlsynology.pod
If you read this file _as_is_, just ignore the funny characters you see. It is written in the POD format (see pod/perlpod.pod) which is specially designed to be readable as is. But if you have been into Perl you probably already know this. =head1 NAME perlsynology - Perl 5 on Synology DSM systems =head1 DESCRIPTION Synology manufactures a vast number of Network Attached Storage (NAS) devices that are very popular in large organisations as well as small businesses and homes. The NAS systems are equipped with Synology Disk Storage Manager (DSM), which is a trimmed-down Linux system enhanced with several tools for managing the NAS. There are several flavours of hardware: Marvell Armada (ARMv5tel, ARMv7l), Intel Atom (i686, x86_64), Freescale QorIQ (PPC), and more. For a full list see the L<Synology FAQ|https://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have>. Since it is based on Linux, the NAS can run many popular Linux software packages, including Perl. In fact, Synology provides a ready-to-install package for Perl, depending on the version of DSM the installed perl ranges from 5.8.6 on DSM-4.3 to 5.24.0 on DSM-6.1. There is an active user community that provides many software packages for the Synology DSM systems; at the time of writing this document they provide Perl version 5.24.1. This document describes various features of Synology DSM operating system that will affect how Perl 5 (hereafter just Perl) is configured, compiled and/or runs. It has been compiled and verified by Johan Vromans for the Synology DS413 (QorIQ), with feedback from H.Merijn Brand (DS213, ARMv5tel and RS815, Intel Atom x64). =head2 Setting up the build environment =head3 DSM 5 As DSM is a trimmed-down Linux system, it lacks many of the tools and libraries commonly found on Linux. The basic tools like sh, cp, rm, etc. are implemented using L<BusyBox|https://en.wikipedia.org/wiki/BusyBox>. =over 4 =item * Using your favourite browser open the DSM management page and start the Package Center. =item * If you want to smoke test Perl, install C<Perl>. =item * In Settings, add the following Package Sources: https://www.cphub.net http://packages.quadrat4.de =item * Still in Settings, in Channel Update, select Beta Channel. =item * Press Refresh. In the left panel the item "Community" will appear. Click it. Select "Bootstrap Installer Beta" and install it. =item * Likewise, install "iPKGui Beta". The application window should now show an icon for iPKGui. =item * Start iPKGui. Install the packages C<make>, C<gcc> and C<coreutils>. If you want to smoke test Perl, install C<patch>. =back The next step is to add some symlinks to system libraries. For example, the development software expect a library C<libm.so> that normally is a symlink to C<libm.so.6>. Synology only provides the latter and not the symlink. Here the actual architecture of the Synology system matters. You have to find out where the gcc libraries have been installed. Look in /opt for a directory similar to arm-none-linux-gnueab or powerpc-linux-gnuspe. In the instructions below I'll use powerpc-linux-gnuspe as an example. =over 4 =item * On the DSM management page start the Control Panel. =item * Click Terminal, and enable SSH service. =item * Close Terminal and the Control Panel. =item * Open a shell on the Synology using ssh and become root. =item * Execute the following commands: cd /lib ln -s libm.so.6 libm.so ln -s libcrypt.so.1 libcrypt.so ln -s libdl.so.2 libdl.so cd /opt/powerpc-linux-gnuspe/lib (or /opt/arm-none-linux-gnueabi/lib) ln -s /lib/libdl.so.2 libdl.so =back B<WARNING:> When you perform a system software upgrade, these links will disappear and need to be re-established. =head3 DSM 6 Using iPkg has been deprecated on DSM 6, but an alternative is available for DSM 6: entware/opkg. For instructions on how to use that, please read L<Install Entware-ng on Synology NAS|https://github.com/Entware-ng/Entware-ng/wiki/Install-on-Synology-NAS> That sadly does not (yet) work on QorIQ. At the moment of writing, the supported architectures are armv5, armv7, mipsel, wl500g, x86_32, and x86_64. Check L<here|https://pkg.entware.net/binaries/> for supported platforms. Entware-ng comes with a precompiled 5.24.1 (June 2017) that allowes building shared XS code. Note that this installation does B<not> use a site_perl folder. The available C<cpan> works. If all required development packages are installed too, also for XS. =head2 Compiling Perl 5 When the build environment has been set up, building and testing Perl is straightforward. The only thing you need to do is download the sources as usual, and add a file Policy.sh as follows: # Administrivia. perladmin="your.email@goes.here" # Install Perl in a tree in /opt/perl instead of /opt/bin. prefix=/opt/perl # Select the compiler. Note that there is no 'cc' alias or link. cc=gcc # Build flags. ccflags="-DDEBUGGING" # Library and include paths. libpth="/lib" locincpth="/opt/include" loclibpth="/lib" You may want to create the destination directory and give it the right permissions before installing, thus eliminating the need to build Perl as a super user. In the directory where you unpacked the sources, issue the familiar commands: ./Configure -des make make test make install =head2 Known problems =head3 Configure No known problems yet =head3 Build =over 4 =item Error message "No error definitions found". This error is generated when it is not possible to find the local definitions for error codes, due to the uncommon structure of the Synology file system. This error was fixed in the Perl development git for version 5.19, commit 7a8f1212e5482613c8a5b0402528e3105b26ff24. =back =head3 Failing tests =over 4 =item F<ext/DynaLoader/t/DynaLoader.t> One subtest fails due to the uncommon structure of the Synology file system. The file F</lib/glibc.so> is missing. B<WARNING:> Do not symlink F</lib/glibc.so.6> to F</lib/glibc.so> or some system components will start to fail. =back =head2 Smoke testing Perl 5 If building completes successfully, you can set up smoke testing as described in the Test::Smoke documentation. For smoke testing you need a running Perl. You can either install the Synology supplied package for Perl 5.8.6, or build and install your own, much more recent version. Note that I could not run successful smokes when initiated by the Synology Task Scheduler. I resorted to initiating the smokes via a cron job run on another system, using ssh: ssh nas1 wrk/Test-Smoke/smoke/smokecurrent.sh =head3 Local patches When local patches are applied with smoke testing, the test driver will automatically request regeneration of certain tables after the patches are applied. The Synology supplied Perl 5.8.6 (at least on the DS413) B<is NOT capable> of generating these tables. It will generate opcodes with bogus values, causing the build to fail. You can prevent regeneration by adding the setting 'flags' => 0, to the smoke config, or by adding another patch that inserts exit 0 if $] == 5.008006; in the beginning of the C<regen.pl> program. =head2 Adding libraries The above procedure describes a basic environment and hence results in a basic Perl. If you want to add additional libraries to Perl, you may need some extra settings. For example, the basic Perl does not have any of the DB libraries (db, dbm, ndbm, gdsm). You can add these using iPKGui, however, you need to set environment variable LD_LIBRARY_PATH to the appropriate value: LD_LIBRARY_PATH=/lib:/opt/lib export LD_LIBRARY_PATH This setting needs to be in effect while Perl is built, but also when the programs are run. =head1 REVISION June 2017, for Synology DSM 5.1.5022 and DSM 6.1-15101-4. =head1 AUTHOR Johan Vromans <jvromans@squirrel.nl> H. Merijn Brand <h.m.brand@xs4all.nl> =cut
Save