Add patch for rpm2cpio.

PR:		ports/22257
Submitted by:	Scott Renfro <scott@renfro.org>
This commit is contained in:
Yukihiro Nakai 2000-10-25 10:30:11 +00:00
parent ebcb327ef6
commit 0a7bac63bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34220
4 changed files with 24 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= rpm
PORTVERSION= 3.0.6
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/

View File

@ -0,0 +1,11 @@
--- rpm2cpio.c.orig Wed Oct 25 19:26:40 2000
+++ rpm2cpio.c Wed Oct 25 19:26:59 2000
@@ -55,7 +55,7 @@
}
gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */
- if (gzdi == NULL || Ferror(gzdi)) {
+ if (gzdi == NULL) {
fprintf(stderr, _("cannot re-open payload: %s\n"), Fstrerror(gzdi));
exit(EXIT_FAILURE);
}

View File

@ -7,7 +7,7 @@
PORTNAME= rpm
PORTVERSION= 3.0.6
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/

11
misc/rpm/files/patch-bh Normal file
View File

@ -0,0 +1,11 @@
--- rpm2cpio.c.orig Wed Oct 25 19:26:40 2000
+++ rpm2cpio.c Wed Oct 25 19:26:59 2000
@@ -55,7 +55,7 @@
}
gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */
- if (gzdi == NULL || Ferror(gzdi)) {
+ if (gzdi == NULL) {
fprintf(stderr, _("cannot re-open payload: %s\n"), Fstrerror(gzdi));
exit(EXIT_FAILURE);
}