WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] what files for perl modules needed for a submission  (Read 3841 times)

aus9

  • Guest
Hi
its early days yet but can anyone look at these and advise which if any can be safely left out of any submission?
I am aware the wiki is not yet edittable etc.
http://wiki.tinycorelinux.net/doku.php?id=wiki:creating_extensions

Quote
/usr/local/bin/config_data
/usr/local/lib/perl5/site_perl/5.28.0/Linux/DesktopFiles.pm
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/inc-latest-0.500/install.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/inc-latest-0.500/MYMETA.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Data-Dump-1.23/install.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Data-Dump-1.23/MYMETA.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Linux-DesktopFiles-0.25/install.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Linux-DesktopFiles-0.25/MYMETA.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Module-Build-0.4231/install.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/.meta/Module-Build-0.4231/MYMETA.json
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/auto/inc/latest/.packlist
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/auto/Data/Dump/.packlist
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/auto/Linux/DesktopFiles/.packlist
/usr/local/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi/auto/Module/Build/.packlist
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Base.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Compat.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Config.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Cookbook.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Dumper.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Notes.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/PPMMaker.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/PodParser.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/API.pod
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Authoring.pod
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Bundling.pod
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/ConfigData.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/Default.pm
(gap by me)
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/MacOS.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/Unix.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/VMS.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/VOS.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/Windows.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/aix.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/cygwin.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/darwin.pm
/usr/local/lib/perl5/site_perl/5.28.0/Module/Build/Platform/os2.pm
/usr/local/lib/perl5/5.28.0/x86_64-linux-thread-multi/perllocal.pod

I am also thinking some OS like cygwin, Windows etc can be left out too?
Maybe the Build dir too?

Thanks for reading
« Last Edit: October 27, 2022, 11:11:06 PM by Rich »

aus9

  • Guest
Re: what files for perl modules needed for a submission
« Reply #1 on: July 04, 2020, 06:57:39 AM »
PS
one of the TCE names is likely to be perl_inc_latest.tcz
based on the name for another perl module  perl_xml_parser.tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: what files for perl modules needed for a submission
« Reply #2 on: July 04, 2020, 08:34:40 AM »
I'm pretty sure the *.packlist files could be removed and *pod is documentation(?).

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 396
Re: what files for perl modules needed for a submission
« Reply #3 on: July 04, 2020, 09:47:16 AM »
Just a small suggestion : I think you can use "make clean" to clean all intermediate files  :o .
I also suggest reading this :
https://perldoc.perl.org/perlmodlib.html

I think I found something here : http://perl.mines-albi.fr/perl5.6.1/site_perl/5.6.1/Module/Build.html
I think commands "./Build distcheck", "./Build clean", "./Build distclean" help you.
« Last Edit: July 04, 2020, 09:59:53 AM by Sashank999 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: what files for perl modules needed for a submission
« Reply #4 on: July 04, 2020, 09:54:41 AM »
“make clean” will remove all files produced by “make”.

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 396
Re: what files for perl modules needed for a submission
« Reply #5 on: July 04, 2020, 10:01:03 AM »
Well, I am thinking that some perl modules use GNU make and hence I said that.

See the second paragraph that I edited in my before post.

aus9

  • Guest
Re: what files for perl modules needed for a submission
« Reply #6 on: July 04, 2020, 08:54:45 PM »
@Sashank999

I think you mistake me for a real coder. I am attempting to build something....not even close to be able to say it works, with cpanm which is in TC64, also known as cpanminus, this "automates" the download of specified module - builds it - installs it.
https://metacpan.org/pod/App::cpanminus
I am using the wiki for the timestamp method to see what files I need to grab, if any.

Quote
I think commands "./Build distcheck", "./Build clean", "./Build distclean" help you.

I build as root, the downloads are under /root/.cpanm.....which I do not save as yet.
but I can try those command out to see what a diff it makes.
But I guess I won't need cpanm and just use it first boot to find the download url
and then full reboot and do the rest manually. The terminal "tells" me what it is doing

Thanks for the tip. I will let you know how that goes.

@Juanito
Quote
'm pretty sure the *.packlist files could be removed and *pod is documentation
thanks this is what I was looking for.
« Last Edit: July 04, 2020, 08:56:46 PM by aus9 »

aus9

  • Guest
Re: what files for perl modules needed for a submission
« Reply #7 on: July 04, 2020, 10:21:53 PM »
@Juanito
Sorry I mucked up  copy and paste above....it should read I'm not 'm
Do we need to rebuild perl5 for 11x?
Code: [Select]
cat /tmp/tcloop/perl5/usr/local/lib/perl5/5.28.0/x86_64-linux-thread-multi/Config.pm | grep osvers
    osvers => '4.14.10-tinycore64',

uname -r
5.4.3-tinycore64

I did not know to look there....I am just reading bits of Makefile generated by cpanm.
« Last Edit: July 04, 2020, 10:34:25 PM by aus9 »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: what files for perl modules needed for a submission
« Reply #8 on: July 04, 2020, 11:02:23 PM »
Hi aus9
... Do we need to rebuild perl5 for 11x? ...
Probably not.

Quote
... osvers => '4.14.10-tinycore64', ...
That would be TC version 9.x.

Code: [Select]
... perl5/5.28.0 ... That is the same version used in TC 10.x.  TC 9.x has perl5 version 5.26.1.

The version in the TC10 repo was probably compiled on a TC9 machine and copied to the TC11 repo. The perl5 extension does not
list any kernel modules as dependencies, so it's probably not sensitive to the kernel version.

aus9

  • Guest
Re: what files for perl modules needed for a submission
« Reply #9 on: July 04, 2020, 11:26:49 PM »
Hi Rich

glad to know.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: what files for perl modules needed for a submission
« Reply #10 on: July 05, 2020, 01:33:09 AM »
Do we need to rebuild perl5 for 11x?

I was planning to update perl with the next major update to tinycore - note that updating perl would break existing perl extensions like perl_xml_parser.

I also see a perl warning in several app builds - something about future perl versions not being backward compatible for certain expressions/functions.

aus9

  • Guest
Re: what files for perl modules needed for a submission
« Reply #11 on: July 05, 2020, 01:39:38 AM »
well I have given up on something. It started to want more and more stuff.
I do not want anything broken so will look at an alternative that does not need perl modules.

@Rich
Can you mark as Solved please

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [Solved] what files for perl modules needed for a submission
« Reply #12 on: July 05, 2020, 01:48:14 AM »
Hi aus9
... @Rich
Can you mark as Solved please
Done.