Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Packaging with strawberry perl

41 views
Skip to first unread message

Kartik Thakore

unread,
Mar 5, 2013, 9:18:37 AM3/5/13
to sdl-...@perl.org, kmx
Hey so,
I was trying to send a friend a simple SDL script with strawberry perl to
play around with. But strawberry perl seemed huge! Especially with the
DBI/Pg and what not in it. How can i get a vanilla version of
portable strawberry perl with no extra libraries installed with it. I will
then jsut cpan install SDL (or SDL2) and package a 'game' that way.

ideas?

kmx

unread,
Mar 5, 2013, 10:53:17 AM3/5/13
to sdl-...@perl.org
There is no such thing as strawberry perl portable "minimal edition"

What you can do:
1/ take strawberry portable
2/ install SDL + all necessary modules
3/ move all c:\portable-strawberry\c\bin\*.dll to
c:\portable-strawberry\perl\bin\
4/ delete
c:\portable-strawberry\c
c:\portable-strawberry\cpan\*
c:\portable-strawberry\data\*
5/ now you still have fully working perl (but without possibility to
install anything from cpan)

--
kmx

Kartik Thakore

unread,
Mar 5, 2013, 11:54:17 AM3/5/13
to kmx, sdl-...@perl.org
What about stuff inside perl\vendor and what not. It has a lot of the stuff
that is not needed (DBI, BerkelyDB, etc )


On Tue, Mar 5, 2013 at 10:53 AM, kmx <k...@volny.cz> wrote:

>
> On 5.3.2013 15:18, Kartik Thakore wrote:
>
>> Hey so,
>> I was trying to send a friend a simple SDL script with strawberry perl to
>> play around with. But strawberry perl seemed huge! Especially with the
>> DBI/Pg and what not in it. How can i get a vanilla version of
>> portable strawberry perl with no extra libraries installed with it. I will
>> then jsut cpan install SDL (or SDL2) and package a 'game' that way.
>>
>> ideas?
>>
>
> There is no such thing as strawberry perl portable "minimal edition"
>
> What you can do:
> 1/ take strawberry portable
> 2/ install SDL + all necessary modules
> 3/ move all c:\portable-strawberry\c\bin\***.dll to
> c:\portable-strawberry\perl\**bin\

kmx

unread,
Mar 5, 2013, 2:31:57 PM3/5/13
to sdl-...@perl.org
In theory you can delete whatever in perl/vendor you only cannot be sure if
some of SDL dependencies is not using it.

--
kmx

Kartik Thakore

unread,
Mar 5, 2013, 2:54:10 PM3/5/13
to kmx, sdl-...@perl.org
Could I delete all of perl/vendor and install SDL using cpan. Then remove
the cpan stuff?


On Tue, Mar 5, 2013 at 2:31 PM, kmx <k...@volny.cz> wrote:

> In theory you can delete whatever in perl/vendor you only cannot be sure
> if some of SDL dependencies is not using it.
>
> --
> kmx
>
>
> On 5.3.2013 17:54, Kartik Thakore wrote:
>
>> What about stuff inside perl\vendor and what not. It has a lot of the
>> stuff
>> that is not needed (DBI, BerkelyDB, etc )
>>
>>
>> On Tue, Mar 5, 2013 at 10:53 AM, kmx <k...@volny.cz> wrote:
>>
>> On 5.3.2013 15:18, Kartik Thakore wrote:
>>>
>>> Hey so,
>>>> I was trying to send a friend a simple SDL script with strawberry perl
>>>> to
>>>> play around with. But strawberry perl seemed huge! Especially with the
>>>> DBI/Pg and what not in it. How can i get a vanilla version of
>>>> portable strawberry perl with no extra libraries installed with it. I
>>>> will
>>>> then jsut cpan install SDL (or SDL2) and package a 'game' that way.
>>>>
>>>> ideas?
>>>>
>>>> There is no such thing as strawberry perl portable "minimal edition"
>>>
>>> What you can do:
>>> 1/ take strawberry portable
>>> 2/ install SDL + all necessary modules
>>> 3/ move all c:\portable-strawberry\c\bin\*****.dll to
>>> c:\portable-strawberry\perl\****bin\

kmx

unread,
Mar 5, 2013, 4:38:14 PM3/5/13
to sdl-...@perl.org
Interesting idea.

My guess is that for portable strawberry you will need to keep at least
perl\vendor\lib\Portable\*
perl\vendor\lib\Portable.pm
+ perhaps File::HomeDir and other Portable's prereqs

--
kmx

Kartik Thakore

unread,
Mar 5, 2013, 5:31:53 PM3/5/13
to kmx, sdl-...@perl.org
hmm what if I cpan install that? Where is the 'script' that runs the
portable thing?
>>>>> 3/ move all c:\portable-strawberry\c\bin\*******.dll to
>>>>> c:\portable-strawberry\perl\******bin\

kmx

unread,
Mar 6, 2013, 3:42:51 AM3/6/13
to sdl-...@perl.org
It isn't gonna work as 'Portable' module is loaded behind the scene for
example every time you 'use Config;'

During the weekend I can prepare a strawberry perl 'Portable Mini Edition'
for you (no external libraries, no extra modules, just perl core + dmake +
gcc toolchain) - it is easier for me than to elaborate
"what-if-I-delete-this" :)

--
kmx

kmx

unread,
Mar 7, 2013, 4:54:05 PM3/7/13
to sdl-...@perl.org
Kartik,

Try this special edition:
http://strawberryperl.com/beta/spp-spec-minimal-5.16.3.1-32bit-portable.zip

Simply:
- unzip into e.g. c:\strawberry-portable
- install SDL + all other required modules
- remove c:\strawberry-portable\c (the whole directory)
- clean c:\strawberry-portable\cpan\*
- clean c:\strawberry-portable\data\*
- zip (after SDL installation should be approx 23MB)
- distribute

--
kmx

Kartik Thakore

unread,
Mar 8, 2013, 5:42:41 PM3/8/13
to kmx, sdl-...@perl.org
AWESOME



On Thu, Mar 7, 2013 at 4:54 PM, kmx <k...@volny.cz> wrote:

> Kartik,
>
> Try this special edition:
> http://strawberryperl.com/**beta/spp-spec-minimal-5.16.3.**
> 1-32bit-portable.zip<http://strawberryperl.com/beta/spp-spec-minimal-5.16.3.1-32bit-portable.zip>
0 new messages