From b7cc3765dfae29a204ea324bf2e79c0e3db561af Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Thu, 23 Feb 2006 02:15:38 +0000 Subject: - Add a patch to fix a crash when trying to remove a MOVED port with -y option - Bump PORTREVISION PR: 93178 Submitted by: Eric --- ports-mgmt/portmanager/Makefile | 3 +-- .../portmanager/files/patch-libMGPM-src-MGPMrGetPortName.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 ports-mgmt/portmanager/files/patch-libMGPM-src-MGPMrGetPortName.c (limited to 'ports-mgmt/portmanager') diff --git a/ports-mgmt/portmanager/Makefile b/ports-mgmt/portmanager/Makefile index 4acfb01d286a..c46e55219d20 100644 --- a/ports-mgmt/portmanager/Makefile +++ b/ports-mgmt/portmanager/Makefile @@ -7,7 +7,7 @@ PORTNAME= portmanager PORTVERSION= 0.4.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= portmanager @@ -21,7 +21,6 @@ MAN3= libMG.3 MGdbAdd.3 MGdbCreate.3 MGdbDelete.3 \ GNU_CONFIGURE= yes INSTALLS_SHLIB= yes -USE_REINPLACE= yes CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} INSTALL_TARGET= install info diff --git a/ports-mgmt/portmanager/files/patch-libMGPM-src-MGPMrGetPortName.c b/ports-mgmt/portmanager/files/patch-libMGPM-src-MGPMrGetPortName.c new file mode 100644 index 000000000000..5a38bf7f33ed --- /dev/null +++ b/ports-mgmt/portmanager/files/patch-libMGPM-src-MGPMrGetPortName.c @@ -0,0 +1,12 @@ +--- libMGPM/src/MGPMrGetPortName.c.orig Thu Feb 23 03:04:28 2006 ++++ libMGPM/src/MGPMrGetPortName.c Thu Feb 23 03:06:22 2006 +@@ -180,7 +180,8 @@ + } + else + { +- fclose( property->STDIN ); ++ if( property->autoMoved == 0 ) ++ fclose( property->STDIN ); + MGPMlogAdd( property, "installed ", portName, + " removed from system: no longer in ports tree: see /usr/ports/MOVED", " ", " " ); + } -- cgit v1.2.3