pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: libnbcompat



> Look for USE_FEATURES examples in pkgsrc. But sorry I can't see
> where it
> is documented.

I dug a bit deeper, and turned up mk/features.  Comments in there indicate that 
you need to patch the files needing the functionality to conditionally use the 
nbcompat headers, in addition to just setting USE_FEATURES.

I noticed that although mk/features/features-vars.mk seemed to provide for 
setenv, it isn't mentioned in the list of features.  It grabbed my attention, 
because that's the function I needed.  :)  Here's a patch.


--- features-vars.mk.orig       Fri Mar 12 07:33:23 2010
+++ features-vars.mk    Fri Mar 12 07:37:08 2010
@@ -44,6 +44,7 @@
 #      * getprogname, setprogname
 #      * glob
 #      * regcomp
+#      * setenv: The functions setenv and unsetenv.
 #      * snprintf, vsnprintf
 #      * utimes
 #      * nbcompat: All of the above.
@@ -136,7 +137,7 @@

 .for _feature_ in setenv
 .  if !empty(USE_FEATURES:M${_feature_})
-.    if !empty(MACHINE_PLATFORM:MHPUX-11.11-hppa) # XXX too narrow?
+.    if (${OPSYS} == "SunOS" && ${OS_VERSION} < 10) || 
!empty(MACHINE_PLATFORM:MHPUX-11.11-hppa) # XXX too narrow?
 MISSING_FEATURES+=     ${_feature_}
 .   endif
 .  endif


I patched the relevant files in the package, as directed, and tried again but 
get the same error.  I don't think I'd need to rebuild libnbcompat because of 
the patch above.  But libnbcompat isn't getting buildlinked, so maybe that's 
the problem.


Thanks,
Tim
-- 
Tim Larson
App Admin, Intercall Production Services
 


Home | Main Index | Thread Index | Old Index