diff options
author | johans <johans@FreeBSD.org> | 2011-11-15 05:47:47 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2011-11-15 05:47:47 +0800 |
commit | 149829fce8157614342dab097af6242cf6b9b78e (patch) | |
tree | abfab9101ae05a78852b379b1e386ab505de163f /archivers/rpm4 | |
parent | 8b9c13bb88952e63f723dac7d31f29aa277b4703 (diff) | |
download | freebsd-ports-gnome-149829fce8157614342dab097af6242cf6b9b78e.tar.gz freebsd-ports-gnome-149829fce8157614342dab097af6242cf6b9b78e.tar.zst freebsd-ports-gnome-149829fce8157614342dab097af6242cf6b9b78e.zip |
Fix conflicting glob_t definitions, which triggered a crash
when importing the rpm4 module in Python.
PR: ports/162483
Submitted by: Sean Mitchell <smitchell@hcn-inc.com>
Feature safe: yes
Diffstat (limited to 'archivers/rpm4')
-rw-r--r-- | archivers/rpm4/Makefile | 1 | ||||
-rw-r--r-- | archivers/rpm4/files/patch-misc_glob.h | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile index 363b19bce3c2..581bcce45851 100644 --- a/archivers/rpm4/Makefile +++ b/archivers/rpm4/Makefile @@ -6,6 +6,7 @@ PORTNAME= rpm PORTVERSION= 4.9.1.2 +PORTREVISION= 1 CATEGORIES= archivers MASTER_SITES= http://rpm.org/releases/rpm-${PORTVERSION:R:R}.x/ \ ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/ diff --git a/archivers/rpm4/files/patch-misc_glob.h b/archivers/rpm4/files/patch-misc_glob.h new file mode 100644 index 000000000000..6d8b056c8d48 --- /dev/null +++ b/archivers/rpm4/files/patch-misc_glob.h @@ -0,0 +1,18 @@ +--- misc/glob.h.orig 2011-11-14 22:06:03.000000000 +0100 ++++ misc/glob.h 2011-11-14 22:07:01.000000000 +0100 +@@ -110,10 +110,11 @@ + #endif + typedef struct + { +- __size_t gl_pathc; /* Count of paths matched by the pattern. */ +- char **gl_pathv; /* List of matched pathnames. */ +- __size_t gl_offs; /* Slots to reserve in `gl_pathv'. */ +- int gl_flags; /* Set to FLAGS, maybe | GLOB_MAGCHAR. */ ++ __size_t gl_pathc; /* Count of total paths so far. */ ++ __size_t gl_matchc; /* Count of paths matching pattern. */ ++ __size_t gl_offs; /* Reserved at beginning of gl_pathv. */ ++ int gl_flags; /* Copy of flags parameter to glob. */ ++ char **gl_pathv; /* List of paths matching pattern. */ + + /* If the GLOB_ALTDIRFUNC flag is set, the following functions + are used instead of the normal file access functions. */ |