Bug 147898 - [patch] sysutils/uhidd: open /usr/local/etc/uhidd.conf failed: No such file or directory
Summary: [patch] sysutils/uhidd: open /usr/local/etc/uhidd.conf failed: No such file o...
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: 2010-06-16 06:40 UTC by swell.k
Modified: 2010-08-26 16:00 UTC (History)
0 users

See Also:


Attachments
a.diff (2.30 KB, patch)
2010-06-16 06:40 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2010-06-16 06:40:01 UTC
- respect PREFIX for location of uhidd.conf
- use PTHREAD_LIBS instead of -lpthread
- try to guess kernel sources based on SYSDIR (used by bsd.kmod.mk)
  or SRC_BASE (used by ports like virtualbox and kqemu)
- use KMODDIR in plist, too
- I don't think SUB_FILES needs to be *after* bsd.port.pre.mk
- inherit DEBUG_FLAGS from make.conf, not only from command line
- mimic bsd.kmod.mk in installing .symbols file and add entry to plist

How-To-Repeat:   $ uhidd -dv /dev/ugen1.2
  uhidd[3559]: open /usr/local/etc/uhidd.conf failed: No such file or directory
  uhidd[3559]: proceed without configuration file
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-16 06:40:36 UTC
Maintainer of sysutils/uhidd,

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

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-16 06:40:38 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 kaiw freebsd_committer freebsd_triage 2010-06-16 11:21:34 UTC
Thanks. The patch looks good to me. Approved!

Kai
Comment 4 kaiwang27 2010-06-16 11:44:22 UTC
Thanks! Approved. (Sorry wrong email address used in the last reply)
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2010-06-16 11:46:42 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 6 swell.k 2010-06-22 03:36:43 UTC
Oops, make SRC_BASE alone work, too.

--- b.diff begins here ---
--- sysutils/uhidd/Makefile~
+++ sysutils/uhidd/Makefile
@@ -18,8 +18,10 @@ NO_PACKAGE=	should be recompiled for a p
 
 OPTIONS=	DEVD "Install devd files" on
 
+MAKE_ENV+=	SYSDIR=${SYSDIR}
 KMODDIR?=	/boot/modules
 SRC_BASE?=	/usr/src
+SYSDIR?=	${SRC_BASE}/sys
 
 USE_RC_SUBR=	uhidd
 SUB_FILES=	pkg-message
--- b.diff ends here ---
Comment 7 Pav Lucistnik freebsd_committer freebsd_triage 2010-08-26 15:45:53 UTC
State Changed
From-To: open->closed

Committed, thanks
Comment 8 dfilter service freebsd_committer freebsd_triage 2010-08-26 15:50:52 UTC
pav         2010-08-26 14:50:38 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/uhidd       Makefile pkg-plist 
  Log:
  - respect PREFIX for location of uhidd.conf
  - use PTHREAD_LIBS instead of -lpthread
  - try to guess kernel sources based on SYSDIR (used by bsd.kmod.mk)
    or SRC_BASE (used by ports like virtualbox and kqemu)
  - use KMODDIR in plist, too
  - I don't think SUB_FILES needs to be *after* bsd.port.pre.mk
  - inherit DEBUG_FLAGS from make.conf, not only from command line
  - mimic bsd.kmod.mk in installing .symbols file and add entry to plist
  
  PR:             ports/147898
  Submitted by:   Anonymous <swell.k@gmail.com>
  Approved by:    Kai Wang <kaiwang27@gmail.com> (maintainer)
  
  Revision  Changes    Path
  1.4       +17 -2     ports/sysutils/uhidd/Makefile
  1.2       +2 -1      ports/sysutils/uhidd/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"