New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExtUtils-CBuilder on Windows does not embed manifests #12003
Comments
From Samuel.Ferencik@barclayscapital.comThis is a bug report for perl from sferencik@gmail.com, ExtUtils::CBuilder 0.280205 on Windows tries to embed a manifest into the DLL The reason is that the embedding is done by the following command: if exist -manifest "XSTest.dll.manifest" mt -nologo -manifest "XSTest.dll.manifest" -outputresource:"XSTest.dll";2 The '-manifest' switch after 'if exists' does not make sense, and DOS fails to if exist "XSTest.dll.manifest" mt -nologo -manifest "XSTest.dll.manifest" -outputresource:"XSTest.dll";2 The command is put together in ExtUtils\CBuilder\Platform\Windows\MSVC.pm. This error was observed when running the tests for ExtUtils::ParseXS 3.15. Flags: Site configuration information for perl v5.8.8: Configured by SYSTEM at Tue Aug 29 12:39:43 2006. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. |
From @steve-m-haySamuel.Ferencik@barclayscapital.com (via RT) wrote on 2012-03-15:
Thanks for the report. Something like the patch below should fix this. I will test it properly and apply it later if all is well. diff --git a/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm b/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm use vars qw($VERSION); sub arg_exec_file { my $output = $spec{output}; $spec{def_file} &&= '-def:' . $spec{def_file}; # Embed the manifest file if it exists return @cmds; |
The RT System itself - Status changed from 'new' to 'open' |
From @steve-m-haySamuel.Ferencik@barclayscapital.com wrote on 2012-03-16:
I think my original patch should be fine. It just does the same for "manifest" as is already done for "output". The list of files to cleanup is added to in link() in the Windows.pm file, and that happens immediately after the filenames have been defined, well before anything is called which prepends strings like "-manifest " to them, so the correct (bare) filename does get cleaned up correctly. |
From @steve-m-hayNow applied to blead as #c2f56b9483. |
From [Unknown Contact. See original ticket]Now applied to blead as #c2f56b9483. |
@steve-m-hay - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#111782 (status was 'resolved')
Searchable as RT111782$
The text was updated successfully, but these errors were encountered: