Bug 243983 - news/fidogate: Configure error during "make package" as user
Summary: news/fidogate: Configure error during "make package" as user
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-08 16:30 UTC by Sergey Anokhin
Modified: 2020-07-03 09:12 UTC (History)
2 users (show)

See Also:


Attachments
Makefile (4.44 KB, text/plain)
2020-02-08 17:31 UTC, Sergey Anokhin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Anokhin 2020-02-08 16:30:34 UTC
Configure error during "make package" under an user.

http://package19.nyi.freebsd.org/data/120amd64-default-build-as-user/525454/logs/fidogate-5.7.log

Looks like unprivileged user can't check files inside /usr/local/news
because it doesn't have needed permissions. 

Need to consult with the Fidogate developer to have mechanism to turn off inn auto-detection and use option from the port's Makefile
Comment 1 Sergey Anokhin 2020-02-08 17:31:43 UTC
Created attachment 211477 [details]
Makefile

Added lines:

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MINN}
CONFIGURE_ARGS+=        --with-inndir=${PREFIX}/news --with-innetcdir=${PREFIX}/news/etc --with-inndbdir=${PREFIX}/news/db --with-innspooldir=${PREFIX}/news/spool
.endif
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-07-03 09:10:01 UTC
A commit references this bug:

Author: danfe
Date: Fri Jul  3 09:09:38 UTC 2020
New revision: 541090
URL: https://svnweb.freebsd.org/changeset/ports/541090

Log:
  - Unbreak configuring as unprivileged user
  - Start option descriptions with capital letter

  PR:		243983
  Submitted by:	maintainer

Changes:
  head/news/fidogate/Makefile
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2020-07-03 09:12:26 UTC
I've committed better and shorter version of the proposed patch, thanks!