Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 117761 Details for
Bug 165907
perl: specfile cleanup and update to 5.8.7
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch12, updated for 5.8.7
perl-5.8.7-incpush.patch (text/plain), 1.81 KB, created by
Marius Feraru
on 2005-08-15 16:57:10 UTC
(
hide
)
Description:
Patch12, updated for 5.8.7
Filename:
MIME Type:
Creator:
Marius Feraru
Created:
2005-08-15 16:57:10 UTC
Size:
1.81 KB
patch
obsolete
>--- perl-5.8.7/perl.c.orig 2005-04-22 17:14:27.000000000 +0300 >+++ perl-5.8.7/perl.c 2005-06-17 22:31:31.000000000 +0300 >@@ -109,6 +109,7 @@ > #endif > > static I32 read_e_script(pTHX_ int idx, SV *buf_sv, int maxlen); >+STATIC void incpush_oldversion(pTHX_ char *dir); > > #ifdef IAMSUID > #ifndef DOSUID >@@ -4435,6 +4436,7 @@ > * DLL-based path intuition to work correctly */ > # if !defined(WIN32) > incpush(SITEARCH_EXP, FALSE, FALSE, TRUE); >+ incpush_oldversion(aTHX_ SITEARCH_EXP); > # endif > #endif > >@@ -4456,6 +4458,7 @@ > * DLL-based path intuition to work correctly */ > # if !defined(WIN32) > incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE); >+ incpush_oldversion(aTHX_ PERL_VENDORARCH_EXP); > # endif > #endif > >@@ -4497,6 +4500,36 @@ > # define PERLLIB_MANGLE(s,n) (s) > #endif > >+#define VERSION_DIRECTORY_STRING "/5.8.7" >+STATIC void >+incpush_oldversion(pTHX_ char *dir) >+{ >+#ifdef PERL_INC_VERSION_LIST >+ const char *incverlist[] = { PERL_INC_VERSION_LIST }; >+ const char **incver; >+ const char *verdir; >+ >+ verdir = strstr(dir, VERSION_DIRECTORY_STRING); >+ if (!verdir) >+ return; >+ >+ for (incver = incverlist; *incver; incver++) { >+ char *new_dir = malloc(strlen(dir) + strlen(*incver) + 2); >+ char *p = new_dir; >+ >+ strcpy(new_dir, dir); >+ p += verdir - dir + 1; /* advance to char following '/' in VERSION_DIRECTORY_STRING */ >+ memcpy(p, *incver, strlen(*incver)); /* copy incver there instead */ >+ p += strlen(*incver); /* advance past version we just copied */ >+ strcpy(p, verdir + strlen(VERSION_DIRECTORY_STRING)); /* and copy the rest of the original dir */ >+ >+ incpush(new_dir, FALSE, FALSE, FALSE); >+ free(new_dir); >+ } >+#endif >+} >+ >+ > /* Push a directory onto @INC if it exists. > Generate a new SV if we do this, to save needing to copy the SV we push > onto @INC */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 165907
:
117713
|
117714
|
117724
| 117761