change from deprecated libnl-1 to libnl-2

Bug #686554 reported by fatalerrors
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntrack
Fix Released
Wishlist
Alexander Sack

Bug Description

As given in the title the libnl-1 library is deprecated. more of this the actual configure script do not detect the libnl version installed so it terminate properly if only libnl-2 is installed. I'm using a LFS with KDE trunck (future 4.6). I don't want to install libnl-1 only for ntrack so KDE will be built without ntrack support untill it no longer depend on obsolete library.

As the libnl documentation tell, the change should not be too difficult.

Related branches

Revision history for this message
Alexander Sack (asac) wrote :

thx. will check this out!

Changed in ntrack:
status: New → In Progress
assignee: nobody → Alexander Sack (asac)
assignee: Alexander Sack (asac) → nobody
assignee: nobody → Alexander Sack (asac)
Revision history for this message
Alexander Sack (asac) wrote :

ok one try ... will default to libnl2 if libnl-2.0.pc is available and otherwise try fallback to libnl-1.

please verify that this works properly for you

bzr branch lp:~asac/ntrack/lp686554 ntrack-test

and then build in ntrack-test

Thanks!

Changed in ntrack:
importance: Undecided → Wishlist
milestone: none → 010
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

------------------------------------------------------------
revno: 220
fixes bug(s): https://launchpad.net/bugs/686554
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Sun 2010-12-19 03:17:43 +0100
message:
  common: add support for libnl-2.0 and use by default; keep compile time fallback support for libnl-1 - lp:686554
  + add support for HAVE_LIBNL1 and HAVE_LIBNL2 to configure and autoheaders
  + introduce macros for NL_CACHE_MNGR_ALLOC NL_CACHE_MNGR_ADD, NL_PRINT_ERROR and RTNL_ROUTE_GET_PRIO to abstract from libnl1/2 api changes
  + introduce typedef for NTRACK_nl_handle that abstracts from nl_handle (libnl1) vs. nl_sock (libnl2)
  + allocate nl_handle for HAVE_LIBNL1 and nl_sock for HAVE_LIBNL2 in libnl backend init
------------------------------------------------------------

Revision history for this message
Alexander Sack (asac) wrote :

pushed the work to lp:ntrack

Revision history for this message
Alexander Sack (asac) wrote :
Changed in ntrack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.