Bug 177467 - mail/dbmail install error when lang/perl5.14 has unset USE_PERL
Summary: mail/dbmail install error when lang/perl5.14 has unset USE_PERL
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-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 10:40 UTC by Lukasz Wasikowski
Modified: 2013-05-25 20:00 UTC (History)
0 users

See Also:


Attachments
dbmail-3.0.2-perlbuild.diff (295 bytes, patch)
2013-03-29 12:18 UTC, Alan Hicks
no flags Details | Diff
dbmail-3.0.2-perlbuild.diff (584 bytes, patch)
2013-03-29 14:14 UTC, Alan Hicks
no flags Details | Diff
dbmail.diff (444 bytes, patch)
2013-05-08 12:18 UTC, Alan Hicks
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Wasikowski 2013-03-29 10:40:00 UTC
Unsetting USE_PERL in lang/perl5.14 prevents mail/dbmail from building. Seems that some ports assume that those perl links in /usr/bin are always present.

How-To-Repeat: Install lang/perl5.14 with OPTIONS_FILE_UNSET+=USE_PERL
Try to install mail/dbmail, it ends with:

# tail -n 20 /poudriere/poudriere_data/logs/bulk/usunto/default/dbmail-3.0.2_5.log
gmake[2]: Entering directory `/wrkdirs/usr/ports/mail/dbmail/work/dbmail-3.0.2/test'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/wrkdirs/usr/ports/mail/dbmail/work/dbmail-3.0.2/test'
Making all in man
gmake[2]: Entering directory `/wrkdirs/usr/ports/mail/dbmail/work/dbmail-3.0.2/man'
asciidoc --unsafe -b docbook -d manpage dbmail.txt
xmlto man dbmail.xml 2>/dev/null
./fixsp.pl dbmail.1
gmake[2]: ./fixsp.pl: Command not found
gmake[2]: *** [dbmail.1] Error 127
rm dbmail.xml
gmake[2]: Leaving directory `/wrkdirs/usr/ports/mail/dbmail/work/dbmail-3.0.2/man'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/wrkdirs/usr/ports/mail/dbmail/work/dbmail-3.0.2'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/mail/dbmail.
===>  Cleaning for dbmail-3.0.2_5
build of /usr/ports/mail/dbmail ended at Fri Mar 29 11:17:25 CET 2013
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-29 10:40:07 UTC
Maintainer of mail/dbmail,

Please note that PR ports/177467 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/177467

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-29 10:40:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Alan Hicks 2013-03-29 12:18:38 UTC
Thank you @lukazs for highlighting the missing dependency when building 
documents.

The attached patch fixes the missing build dependency.
Comment 4 Lukasz Wasikowski 2013-03-29 13:39:00 UTC
W dniu 2013-03-29 13:18, Alan Hicks pisze:

> Thank you @lukazs for highlighting the missing dependency when building 
> documents.
> 
> The attached patch fixes the missing build dependency.

This patch did not fix the problem. The problem is that fixsp.pl
hashbang points to perl in /usr/bin/perl, and this symlink is not
present (I don't want it to be present). perl binary in FreeBSD is in
/usr/local/bin/perl - maybe try to patch fixsp.pl to use proper path for
hashbang.

-- 
best regards,
Lukasz Wasikowski
Comment 5 Alan Hicks 2013-03-29 14:14:47 UTC
On Friday 29 March 2013 14:39:00 Åukasz WÄsikowski wrote:
> W dniu 2013-03-29 13:18, Alan Hicks pisze:
> > Thank you @lukazs for highlighting the missing dependency when building
> > documents.
> > 
> > The attached patch fixes the missing build dependency.
> 
> This patch did not fix the problem. The problem is that fixsp.pl
> hashbang points to perl in /usr/bin/perl, and this symlink is not
> present (I don't want it to be present). perl binary in FreeBSD is in
> /usr/local/bin/perl - maybe try to patch fixsp.pl to use proper path for
> hashbang.


Apologies for not fully reading your original report and thank you for the 
pointer, attached patch also includes fix to patch fixsp.pl
Comment 6 Lukasz Wasikowski 2013-03-29 14:38:47 UTC
W dniu 2013-03-29 15:14, Alan Hicks pisze:

> On Friday 29 March 2013 14:39:00 Åukasz WÄsikowski wrote:
>> W dniu 2013-03-29 13:18, Alan Hicks pisze:
>>> Thank you @lukazs for highlighting the missing dependency when building
>>> documents.
>>>
>>> The attached patch fixes the missing build dependency.
>>
>> This patch did not fix the problem. The problem is that fixsp.pl
>> hashbang points to perl in /usr/bin/perl, and this symlink is not
>> present (I don't want it to be present). perl binary in FreeBSD is in
>> /usr/local/bin/perl - maybe try to patch fixsp.pl to use proper path for
>> hashbang.
> 
> Apologies for not fully reading your original report and thank you for the 
> pointer, attached patch also includes fix to patch fixsp.pl

It works great now, that was it. Thank you!

-- 
best regards,
Lukasz Wasikowski
Comment 7 Lukasz Wasikowski 2013-04-18 13:02:56 UTC
If anyone would commit this it would be great. Thank you in advance :)

-- 
best regards,
Lukasz Wasikowski
Comment 8 Alan Hicks 2013-05-08 12:18:26 UTC
Updated patch to use new USES=shebangfix
Comment 9 dfilter service freebsd_committer freebsd_triage 2013-05-25 19:57:57 UTC
Author: az
Date: Sat May 25 18:57:44 2013
New Revision: 319067
URL: http://svnweb.freebsd.org/changeset/ports/319067

Log:
  - Fix issue with building dmail, when perl build
    without /usr/bin/perl symlink.
  
  PR:		ports/177467
  Submitted by:	Lukasz Wasikowski <lukasz@wasikowski.net>
  Approved by:	Alan Hicks <ahicks@p-o.co.uk> (maintainer and patch)

Modified:
  head/mail/dbmail/Makefile   (contents, props changed)

Modified: head/mail/dbmail/Makefile
==============================================================================
--- head/mail/dbmail/Makefile	Sat May 25 18:46:40 2013	(r319066)
+++ head/mail/dbmail/Makefile	Sat May 25 18:57:44 2013	(r319067)
@@ -3,7 +3,7 @@
 
 PORTNAME=	dbmail
 PORTVERSION=	3.0.2
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	mail
 MASTER_SITES=	http://www.dbmail.org/download/3.0/
 
@@ -35,6 +35,8 @@ USE_GMAKE=	yes
 USE_LDCONFIG=	${PREFIX}/lib/dbmail
 USE_RC_SUBR=	dbmail-pop3d dbmail-lmtpd dbmail-imapd dbmail-timsieved
 USE_OPENSSL=	yes
+USES=	shebangfix
+SHEBANG_FILES=	man/fixsp.pl
 
 CFLAGS+=	-fPIC ${PTHREAD_CFLAGS}
 CPPFLAGS+=	-I${LOCALBASE}/include
_______________________________________________
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"
Comment 10 Andrej Zverev freebsd_committer freebsd_triage 2013-05-25 19:58:28 UTC
State Changed
From-To: feedback->closed

Fix Committed.  Thanks!