source: pkg/raul/main/pcre3/trunk/debian/patches/fix_soname.patch @ 7357

Revision 7357, 5.1 KB checked in by alanbach-guest, 2 years ago (diff)
  • Switched to source version 3.0 and added soname patch
  • configure

    diff -urN pcre-8.12//configure pcre-8.12.new//configure
    old new  
    1581915819# (Note: The libpcre*_version bits are m4 variables, assigned above) 
    1582015820 
    1582115821EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \ 
    15822                        $NO_UNDEFINED -version-info 0:1:0" 
     15822                       $NO_UNDEFINED -version-info 15:1:12" 
    1582315823 
    1582415824EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \ 
    15825                             $NO_UNDEFINED -version-info 0:0:0" 
     15825                            $NO_UNDEFINED -version-info 15:1:12" 
    1582615826 
    1582715827EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \ 
    1582815828                          $NO_UNDEFINED -version-info 0:0:0 \ 
  • doc/pcreapi.3

    diff -urN pcre-8.12//doc/pcreapi.3 pcre-8.12.new//doc/pcreapi.3
    old new  
    9696.PP 
    9797.B int pcre_config(int \fIwhat\fP, void *\fIwhere\fP); 
    9898.PP 
    99 .B char *pcre_version(void); 
     99.B const char *pcre_version(void); 
    100100.PP 
    101101.B void *(*pcre_malloc)(size_t); 
    102102.PP 
  • doc/pcregrep.1

    diff -urN pcre-8.12//doc/pcregrep.1 pcre-8.12.new//doc/pcregrep.1
    old new  
    33pcregrep - a grep with Perl-compatible regular expressions. 
    44.SH SYNOPSIS 
    55.B pcregrep [options] [long options] [pattern] [path1 path2 ...] 
     6.B zpcregrep [options] [long options] [pattern] [file1 file2 ...] 
    67. 
    78.SH DESCRIPTION 
    89.rs 
     
    7576If the \fBLC_ALL\fP or \fBLC_CTYPE\fP environment variable is set, 
    7677\fBpcregrep\fP uses the value to set a locale when calling the PCRE library. 
    7778The \fB--locale\fP option can be used to override this. 
     79.P  
     80\fBzpcregrep\fR is a wrapper script that allows pcregrep to work on 
     81gzip compressed files. 
    7882. 
    7983.SH "SUPPORT FOR COMPRESSED FILES" 
    8084.rs 
     
    530534.rs 
    531535.sp 
    532536Exit status is 0 if any matches were found, 1 if no matches were found, and 2 
    533 for syntax errors and non-existent or inacessible files (even if matches were 
     537for syntax errors and non-existent or inaccessible files (even if matches were 
    534538found in other files) or too many matching errors. Using the \fB-s\fP option to 
    535539suppress error messages about inaccessble files does not affect the return 
    536540code. 
  • doc/pcre_version.3

    diff -urN pcre-8.12//doc/pcre_version.3 pcre-8.12.new//doc/pcre_version.3
    old new  
    77.B #include <pcre.h> 
    88.PP 
    99.SM 
    10 .B char *pcre_version(void); 
     10.B const char *pcre_version(void); 
    1111. 
    1212.SH DESCRIPTION 
    1313.rs 
  • pcrecpp.cc

    diff -urN pcre-8.12//pcrecpp.cc pcre-8.12.new//pcrecpp.cc
    old new  
    7979// If the user doesn't ask for any options, we just use this one 
    8080static RE_Options default_options; 
    8181 
     82// PCRE6.x compatible API 
     83void RE::Init(const char *c_pat, const RE_Options* options) { 
     84  const string cxx_pat(c_pat); 
     85  Init(cxx_pat, options); 
     86} 
     87 
    8288void RE::Init(const string& pat, const RE_Options* options) { 
    8389  pattern_ = pat; 
    8490  if (options == NULL) { 
  • pcrecpp.h

    diff -urN pcre-8.12//pcrecpp.h pcre-8.12.new//pcrecpp.h
    old new  
    658658 private: 
    659659 
    660660  void Init(const string& pattern, const RE_Options* options); 
     661  // Old version from PCRE 6.x, for compatibility 
     662  void Init(const char *pattern, const RE_Options* options); 
    661663  void Cleanup(); 
    662664 
    663665  // Match against "text", filling in "vec" (up to "vecsize" * 2/3) with 
  • pcreposix.h

    diff -urN pcre-8.12//pcreposix.h pcre-8.12.new//pcreposix.h
    old new  
    133133 
    134134/* The functions */ 
    135135 
    136 PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int); 
    137 PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t, 
     136PCREPOSIX_EXP_DECL int pcreposix_regcomp(regex_t *, const char *, int); 
     137PCREPOSIX_EXP_DECL int pcreposix_regexec(const regex_t *, const char *, size_t, 
    138138                     regmatch_t *, int); 
    139 PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t); 
    140 PCREPOSIX_EXP_DECL void regfree(regex_t *); 
     139PCREPOSIX_EXP_DECL size_t pcreposix_regerror(int, const regex_t *, char *, size_t); 
     140PCREPOSIX_EXP_DECL void pcreposix_regfree(regex_t *); 
    141141 
    142142#ifdef __cplusplus 
    143143}   /* extern "C" */ 
    144144#endif 
    145145 
     146#define regcomp pcreposix_regcomp 
     147#define regexec pcreposix_regexec 
     148#define regerror pcreposix_regerror 
     149#define regfree pcreposix_regfree 
     150 
    146151#endif /* End of pcreposix.h */ 
  • pcretest.c

    diff -urN pcre-8.12//pcretest.c pcre-8.12.new//pcretest.c
    old new  
    11751175int main(int argc, char **argv) 
    11761176{ 
    11771177FILE *infile = stdin; 
    1178 int options = 0; 
     1178long int options = 0; 
    11791179int study_options = 0; 
    11801180int default_find_match_limit = FALSE; 
    11811181int op = 1; 
Note: See TracBrowser for help on using the repository browser.