Bug 1042906 - cmusphinx3: spurious build dependency on libbsd-devel
Summary: cmusphinx3: spurious build dependency on libbsd-devel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cmusphinx3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-13 15:39 UTC by Florian Weimer
Modified: 2013-12-13 23:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-13 23:14:06 UTC
Type: Bug


Attachments (Terms of Use)

Description Florian Weimer 2013-12-13 15:39:38 UTC
I don't think the build dependency on libbsd-devel is needed.  I applied the following patch (after the sed business in the %prep stage), and the package still builds successfully.  The built RPMs didn't have dependencies on libbsd even before that, as libbsd isn't linked in.

diff -up sphinx3-0.8/src/libs3decoder/libcfg/s3_cfg_convert.c.bsd sphinx3-0.8/src/libs3decoder/libcfg/s3_cfg_convert.c
--- sphinx3-0.8/src/libs3decoder/libcfg/s3_cfg_convert.c.bsd    2013-12-13 16:19:45.575368130 +0100
+++ sphinx3-0.8/src/libs3decoder/libcfg/s3_cfg_convert.c        2013-12-13 16:19:55.006411687 +0100
@@ -1,5 +1,4 @@
 
-#include <bsd/libutil.h>
 #include "s3_cfg.h"
 #include "fsg.h"
 
diff -up sphinx3-0.8/src/libs3decoder/libsearch/fsg_history.c.bsd sphinx3-0.8/src/libs3decoder/libsearch/fsg_history.c
--- sphinx3-0.8/src/libs3decoder/libsearch/fsg_history.c.bsd    2013-12-13 16:19:10.457204835 +0100
+++ sphinx3-0.8/src/libs3decoder/libsearch/fsg_history.c        2013-12-13 16:19:20.477251590 +0100
@@ -55,7 +55,6 @@
 #include <kb.h>
 /*#include <phone.h>*/
 #include <search.h>
-#include "bsd/libutil.h"
 
 
 #define __FSG_DBG__    0

Comment 1 Jerry James 2013-12-13 22:52:33 UTC
The original sources are trying to include "libutil.h".  We're adding the "bsd/" on the front of that in the spec file.  So to simplify things, I removed that part of the spec file, and create an empty file named libutil.h instead.  That way no patches are necessary.

Thanks for the report.  A version with no libbsd-devel dependency is building in Rawhide now.

Comment 2 Jerry James 2013-12-13 23:14:06 UTC
The Rawhide build is complete.


Note You need to log in before you can comment on or make changes to this bug.