- Previous thread: Java in pkgsrc on Solaris
- Next thread: Yet another pkgin(-0.3.3.1) bug?
- Threads sorted by date: netbsd-pkgsrc-users 201003
Practically speaking, how do I use this? I'm building a package on a platform that is missing a function supplied by nbcompat. I started looking at patching, but they're all over. It would be far easier to link against this library, but only on this OS. Is there a way to tell the package to do that?
Thanks,
Tim
Thanks,
Tim
On Wed, 10 Mar 2010, Larson, Timothy E. wrote:
Look for USE-FEATURES examples in pkgsrc. But sorry I can't see where it
is documented.
Look for USE-FEATURES examples in pkgsrc. But sorry I can't see where it
is documented.
Thanks. I've been looking at them for a couple hours now, scratching my head, not sure what it's supposed to do. I see some have nbcompat there, but that seems to try to build another copy of it locally, which I wouldn't think I'd need. If I put just the functions I'm missing, as I see some packages do, I don't notice any difference.
Do I need a conditional dependency on libnbcompat (haven't seen anything like that)? Do I need LDADD.SomeOS or LDFLAGS.SomeOS to add it (not much documentation on this either)? I'm groping, here...
Anybody familiar with this functionality?
Thanks,
Tim
--
Tim Larson
App Admin, Intercall Production Services
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.
.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
Related Threads
- opensuse-kde - Kde4 factory desktop 11.2 plasmoid problems - opensuse-kde
- PHP-DEV - Upload progress in sessions - php-internals
- platform-dev - Preferences API in NetBeans - netbeans-platform-dev
- MeeGo-dev - MeeGo Platform Bug Jar 2010.19 - meego-dev
- optimizing a DSO - gcc-gcc
- Vim 7.3a: Version number glitch in Makefile - vim-dev
- 2.6.34 kernel, and why trying to shut down reboots? - ubuntu-users
- Running Mapreduce program apart from command prompt - hadoop-mapreduce-user
- Performance Issues between 2.8 and 3.1.0/3.1.1 - xerces-c-users
- Current problem reports assigned to freebsd-i386 - FreeBSD.org - freebsd-i386