Skip Menu |

This queue is for tickets about the Prima CPAN distribution.

Report information
The Basics
Id: 123451
Status: resolved
Priority: 0/
Queue: Prima

People
Owner: Nobody in particular
Requestors: Craig.Thomson [...] bench.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Folder images not showing after pp compile
Date: Mon, 30 Oct 2017 16:49:55 +0000
To: <bug-Prima [...] rt.cpan.org>
From: <Craig.Thomson [...] bench.com>
Hi, Not really a bug, more of an issue with PAR, but specifically when I try to compile pp with --gui option, the folder icons in the directory tree of OpenDialog won't show up because it fails to load sysimage.gif. Running the .pl script works fine and folder icons show up. I ended up having to go into StdBitmap.pm and hardcode $sysimage on line 61 to : $sysimage = "sysimage.gif" and comment out the next two lines where it tries to retrieve sysimage.gif programmatically. I figured there's no real harm done since if everything is installed correctly then sysimage.gif is always in the same directory as StdBitmap.pm, anyway. But I'm just bringing it up because although it's technically not a bug in Prima, it might be worth noting in the documentation to save other poor schmucks like me some time if they try to package with PAR-pp. Or maybe I'm just a tool and I'm wrong, in which case sorry for bothering you. I know I should really dig into the pp module and find out why it's not loading it, but I'm not afforded the luxury of that kind of extra time where I work...maybe on my own time later. Prima module is pretty sweet for what I needed it for at work, anyway! Thanks! Regards, Craig Thomson Benchmark Electronics, Inc. 100 Innovative Way Nashua, NH 03060 603-879-7147
Hi Craig, Thanks for the report! Long, long time ago I also gave up on PAR because it was tricky to pack binaries into it. The latest I vaguely remember I found an option to somehow tell PAR to unpack binaries onto some predefined path, but it was long ago and I really don't remember anything, also at that time there were more pressing issues with Prima. Now even though I cann help you with an immediate workaround, I'll try to see if there's some magic incantation one needs to use with PAR, and at the very least I promise to make a doc section about what I find. Cheers! Dmitry
Hi Craig, Yes, there was that option. Try this: pp -a Prima/sysimage.gif ... or pp -a Prima/sys/win32/sysimage.gif ... depending on your platform. Dmitry
Finally, I produced a patch and a FAQ section: +=head2 How do I generate Prima executables with PAR? + +You'll need some files that PAR cannot detect automatically. During the compilation +phase Makefile.PL creates utils/par.txt file that contains these files. Include them with this +command: + + pp -A utils/par.txt -o a.out my_prgram + You can pull the latest github snapshot and give it a try Hope this helps Dmitry
Subject: RE: [rt.cpan.org #123451] Folder images not showing after pp compile
Date: Tue, 31 Oct 2017 19:23:46 +0000
To: <bug-Prima [...] rt.cpan.org>
From: <Craig.Thomson [...] bench.com>
Hi Dmitry, Wow! Thank you for replying so quickly. It's good to know you are still out there maintaining your code. And even helping to patch the broken mess that is known as PAR. Much appreciated! Craig Show quoted text
-----Original Message----- From: KARASIK via RT [mailto:bug-Prima@rt.cpan.org] Sent: Tuesday, October 31, 2017 6:15 AM To: Thomson, Craig Subject: [rt.cpan.org #123451] Folder images not showing after pp compile <URL: https://urldefense.proofpoint.com/v2/url?u=https-3A__rt.cpan.org_Ticket_Display.html-3Fid-3D123451&d=DwIDaQ&c=qI44ipyoBm0hVwhmy07quvdiOJrWojxKI35ez1PFJ8U&r=il9vOztAMGjEMoVv6wfnu0ERX0JjgnN5BhNW9cgFghk&m=x0vZGdONLo-rlDJ83OGaLtIJ_ZyXEDNDZCCzukXZ_Co&s=u0LwihNeG9lKTHV2UgLiuhKeiOvaFkEindySLMBMtZQ&e= > Finally, I produced a patch and a FAQ section: +=head2 How do I generate Prima executables with PAR? + +You'll need some files that PAR cannot detect automatically. During the compilation +phase Makefile.PL creates utils/par.txt file that contains these files. Include them with this +command: + + pp -A utils/par.txt -o a.out my_prgram + You can pull the latest github snapshot and give it a try Hope this helps Dmitry
Hi Craig, That's because it's always nice to know that one's code is needed :) I'll close the ticket if it works for you then? /dk
Subject: RE: [rt.cpan.org #123451] Folder images not showing after pp compile
Date: Tue, 31 Oct 2017 19:48:08 +0000
To: <bug-Prima [...] rt.cpan.org>
From: <Craig.Thomson [...] bench.com>
Yes, works for me, thanks :) And I can see what you mean. If I had a cool piece of code and I saw someone using it years later it would make me feel good. Well, nice work! Do you use Perl professionally still, or just as a hobby? Show quoted text
-----Original Message----- From: KARASIK via RT [mailto:bug-Prima@rt.cpan.org] Sent: Tuesday, October 31, 2017 3:42 PM To: Thomson, Craig Subject: [rt.cpan.org #123451] Folder images not showing after pp compile <URL: https://urldefense.proofpoint.com/v2/url?u=https-3A__rt.cpan.org_Ticket_Display.html-3Fid-3D123451&d=DwIDaQ&c=qI44ipyoBm0hVwhmy07quvdiOJrWojxKI35ez1PFJ8U&r=il9vOztAMGjEMoVv6wfnu0ERX0JjgnN5BhNW9cgFghk&m=jiBM_y1SH4hkRZr1q09ncbLVGPHfOwxelAP0il07bmQ&s=3p_bV8FvSVW8n-F4A212V6bPrlmI9jeyM9TYZl20suY&e= > Hi Craig, That's because it's always nice to know that one's code is needed :) I'll close the ticket if it works for you then? /dk
Thank you! Yes, I do use Perl professionally, and it seems that I'm going to continue doing that for at least some years from now - pays well here in Copenhagen, at least :) /dk