Bug 182200 - mail/pyzor: missing dependency databases/py-gdbm
Summary: mail/pyzor: missing dependency databases/py-gdbm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 09:10 UTC by Kai Gallasch
Modified: 2013-10-22 11:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Gallasch 2013-09-18 09:10:00 UTC
mail/pyzor is missing a dependency databases/py-gdbm

after installing mail/pyzor, running pyzord  generates a traceback.


mail[prod]:/usr/ports #	pyzord -d
Traceback (most recent call last):
  File "/usr/local/bin/pyzord", line 8, in <module>
    import pyzor.server
  File "/usr/local/lib/python2.7/site-packages/pyzor/server.py", line 9, in <module>
    import gdbm
ImportError: No module named gdbm

Fix: 

manually install missing dependency databases/py-gdbm port.

mail[prod]:/usr/ports/databases # portmaster databases/py-gdbm

===>>> Port directory: /usr/ports/databases/py-gdbm

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for databases/py-gdbm in background
===>>> Gathering dependency list for databases/py-gdbm from ports
===>>> Initial dependency check complete for databases/py-gdbm


===>>> Starting build for databases/py-gdbm <<<===

===>>> All dependencies are up to date

===>  Cleaning for py27-gdbm-2.7.5_2
===> Fetching all distfiles required by py27-gdbm-2.7.5_2 for building
===>  Extracting for py27-gdbm-2.7.5_2
=> SHA256 Checksum OK for python/Python-2.7.5.tar.xz.
===>  Patching for py27-gdbm-2.7.5_2
===>   py27-gdbm-2.7.5_2 depends on file: /usr/local/bin/python2.7 - found
===>   py27-gdbm-2.7.5_2 depends on executable: python - found
===>   py27-gdbm-2.7.5_2 depends on shared library: gdbm - found
===>  Configuring for py27-gdbm-2.7.5_2
running config
===>  Building for py27-gdbm-2.7.5_2
running build
running build_ext
building 'gdbm' extension
creating build
creating build/temp.freebsd-9.1-STABLE-amd64-2.7
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include -I/usr/local/include/python2.7 -c gdbmmodule.c -o build/temp.freebsd-9.1-STABLE-amd64-2.7/gdbmmodule.o
creating build/lib.freebsd-9.1-STABLE-amd64-2.7
cc -shared -O2 -pipe -fno-strict-aliasing build/temp.freebsd-9.1-STABLE-amd64-2.7/gdbmmodule.o -L/usr/local/lib -lgdbm -o build/lib.freebsd-9.1-STABLE-amd64-2.7/gdbm.so
===>  Installing for py27-gdbm-2.7.5_2
===>   Generating temporary packing list
===>  Checking if databases/py-gdbm already installed
running install
running build
running build_ext
running install_lib
copying build/lib.freebsd-9.1-STABLE-amd64-2.7/gdbm.so -> /usr/local/lib/python2.7/lib-dynload
===>   Registering installation for py27-gdbm-2.7.5_2

===>>> Waiting for background 'make clean' processes to finish

===>>> Installation of databases/py-gdbm (py27-gdbm-2.7.5_2) complete

===>>> Exiting


mail[prod]:/usr/ports/databases # pyzord -d
acquiring lock
acquired lock
reorganizing the database
releasing lock
released lock
acquiring lock
acquired lock
releasing lock
released lock
listening on ('0.0.0.0', 24441)
/root/.pyzor/pyzord.access does not exist; using default ACL: allowing anonymous to do ['check', 'report', 'ping', 'info']
How-To-Repeat: install pyzor, run pyzord from command line.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-18 09:10:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-18 09:10:09 UTC
Maintainer of mail/pyzor,

Please note that PR ports/182200 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182200

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-18 09:10:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 William Grzybowski freebsd_committer freebsd_triage 2013-10-22 10:53:38 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-10-22 10:53:42 UTC
Author: wg
Date: Tue Oct 22 09:53:35 2013
New Revision: 331246
URL: http://svnweb.freebsd.org/changeset/ports/331246

Log:
  mail/pyzor: add missing dependency
  
  - Add missing dependency [1]
  - Allow staging
  - Use autoplist
  - Remove leading article from COMMENT
  
  PR:		ports/182200 [1]

Deleted:
  head/mail/pyzor/pkg-plist
Modified:
  head/mail/pyzor/Makefile

Modified: head/mail/pyzor/Makefile
==============================================================================
--- head/mail/pyzor/Makefile	Tue Oct 22 09:37:51 2013	(r331245)
+++ head/mail/pyzor/Makefile	Tue Oct 22 09:53:35 2013	(r331246)
@@ -3,28 +3,31 @@
 
 PORTNAME=	pyzor
 PORTVERSION=	0.5.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail python
 MASTER_SITES=	SF
 
 MAINTAINER=	chalpin@cs.wisc.edu
-COMMENT=	A collaborative, networked system to detect and block spam
+COMMENT=	Collaborative, networked system to detect and block spam
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gdbm>=0:${PORTSDIR}/databases/py-gdbm
 
 USE_BZIP2=	yes
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-MAN1=		pyzor.1 pyzord.1
+PLIST_FILES=	man/man1/pyzor.1.gz \
+		man/man1/pyzord.1.gz
 
-NO_STAGE=	yes
 post-patch:
 	${REINPLACE_CMD} -e '1s,^#!/usr/bin/python,#!/usr/bin/env -S python -Wignore::DeprecationWarning,' \
 	${WRKSRC}/scripts/pyzor ${WRKSRC}/scripts/pyzord
 
 post-install:
-	${CHMOD} ${SHAREMODE} ${DOCSDIR}/usage.html
-	${CHMOD} ${BINMODE} ${PREFIX}/bin/pyzor ${PREFIX}/bin/pyzord
-	${INSTALL_MAN} ${WRKSRC}/docs/pyzor.1 ${MAN1PREFIX}/man/man1
-	${INSTALL_MAN} ${WRKSRC}/docs/pyzord.1 ${MAN1PREFIX}/man/man1
+	${CHMOD} ${SHAREMODE} ${STAGEDIR}${DOCSDIR}/usage.html
+	${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/pyzor ${STAGEDIR}${PREFIX}/bin/pyzord
+	${INSTALL_MAN} ${WRKSRC}/docs/pyzor.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/docs/pyzord.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"