Hi,

removing the gdb package might leave .pyc files around if you ran gdb as
root, the diff below addresses the issue.

ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/gdb/Makefile,v
retrieving revision 1.57
diff -u -p -r1.57 Makefile
--- Makefile    24 Oct 2018 14:28:00 -0000      1.57
+++ Makefile    25 Oct 2018 16:37:20 -0000
@@ -4,7 +4,7 @@ COMMENT=        GNU debugger
 CATEGORIES=    devel
 
 DISTNAME=      gdb-7.12.1
-REVISION=      4
+REVISION=      5
 
 HOMEPAGE=      https://www.gnu.org/software/gdb/
 
@@ -38,5 +38,8 @@ MODULES +=    lang/python
 LIB_DEPENDS += ${MODPY_LIB_DEPENDS}
 TEST_DEPENDS +=        devel/dejagnu
 MODPY_BUILDDEP = No
+
+post-install:
+       ${MODPY_BIN} -m compileall ${PREFIX}/share/gdb/python
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/gdb/pkg/PLIST,v
retrieving revision 1.18
diff -u -p -r1.18 PLIST
--- pkg/PLIST   9 Oct 2016 11:39:20 -0000       1.18
+++ pkg/PLIST   25 Oct 2018 16:37:20 -0000
@@ -26,31 +26,54 @@ share/gdb/
 share/gdb/python/
 share/gdb/python/gdb/
 share/gdb/python/gdb/FrameDecorator.py
+share/gdb/python/gdb/FrameDecorator.pyc
 share/gdb/python/gdb/FrameIterator.py
+share/gdb/python/gdb/FrameIterator.pyc
 share/gdb/python/gdb/__init__.py
+share/gdb/python/gdb/__init__.pyc
 share/gdb/python/gdb/command/
 share/gdb/python/gdb/command/__init__.py
+share/gdb/python/gdb/command/__init__.pyc
 share/gdb/python/gdb/command/explore.py
+share/gdb/python/gdb/command/explore.pyc
 share/gdb/python/gdb/command/frame_filters.py
+share/gdb/python/gdb/command/frame_filters.pyc
 share/gdb/python/gdb/command/pretty_printers.py
+share/gdb/python/gdb/command/pretty_printers.pyc
 share/gdb/python/gdb/command/prompt.py
+share/gdb/python/gdb/command/prompt.pyc
 share/gdb/python/gdb/command/type_printers.py
+share/gdb/python/gdb/command/type_printers.pyc
 share/gdb/python/gdb/command/unwinders.py
+share/gdb/python/gdb/command/unwinders.pyc
 share/gdb/python/gdb/command/xmethods.py
+share/gdb/python/gdb/command/xmethods.pyc
 share/gdb/python/gdb/frames.py
+share/gdb/python/gdb/frames.pyc
 share/gdb/python/gdb/function/
 share/gdb/python/gdb/function/__init__.py
+share/gdb/python/gdb/function/__init__.pyc
 share/gdb/python/gdb/function/as_string.py
+share/gdb/python/gdb/function/as_string.pyc
 share/gdb/python/gdb/function/caller_is.py
+share/gdb/python/gdb/function/caller_is.pyc
 share/gdb/python/gdb/function/strfns.py
+share/gdb/python/gdb/function/strfns.pyc
 share/gdb/python/gdb/printer/
 share/gdb/python/gdb/printer/__init__.py
+share/gdb/python/gdb/printer/__init__.pyc
 share/gdb/python/gdb/printer/bound_registers.py
+share/gdb/python/gdb/printer/bound_registers.pyc
 share/gdb/python/gdb/printing.py
+share/gdb/python/gdb/printing.pyc
 share/gdb/python/gdb/prompt.py
+share/gdb/python/gdb/prompt.pyc
 share/gdb/python/gdb/types.py
+share/gdb/python/gdb/types.pyc
 share/gdb/python/gdb/unwinder.py
+share/gdb/python/gdb/unwinder.pyc
 share/gdb/python/gdb/xmethod.py
+share/gdb/python/gdb/xmethod.pyc
 share/gdb/syscalls/
 share/gdb/syscalls/aarch64-linux.xml
 share/gdb/syscalls/amd64-linux.xml


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to