diff --git a/libnl-1.1-align.patch b/libnl-1.1-align.patch new file mode 100644 index 0000000..8196d0a --- /dev/null +++ b/libnl-1.1-align.patch @@ -0,0 +1,20 @@ +--- libnl-1.1/lib/route/link.c.BAD 2010-02-27 08:43:45.671957250 -0600 ++++ libnl-1.1/lib/route/link.c 2010-02-28 10:23:42.732957755 -0600 +@@ -364,14 +364,9 @@ + link->ce_mask |= LINK_ATTR_QDISC; + } + +- if (tb[IFLA_MAP]) { +- struct rtnl_link_ifmap *map = nla_data(tb[IFLA_MAP]); +- link->l_map.lm_mem_start = map->mem_start; +- link->l_map.lm_mem_end = map->mem_end; +- link->l_map.lm_base_addr = map->base_addr; +- link->l_map.lm_irq = map->irq; +- link->l_map.lm_dma = map->dma; +- link->l_map.lm_port = map->port; ++ if (tb[IFLA_MAP]) { ++ nla_memcpy(&link->l_map, tb[IFLA_MAP], ++ sizeof(struct rtnl_link_ifmap)); + link->ce_mask |= LINK_ATTR_MAP; + } + diff --git a/libnl.spec b/libnl.spec index fdf0fcf..66fbcc3 100644 --- a/libnl.spec +++ b/libnl.spec @@ -3,7 +3,7 @@ Group: Development/Libraries License: LGPLv2 Name: libnl Version: 1.1 -Release: 10%{?dist} +Release: 11%{?dist} URL: http://www.infradead.org/~tgr/libnl/ Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -80,9 +80,12 @@ done %{_libdir}/pkgconfig/%{name}-1.pc %changelog -* Thu May 13 2010 Dan Williams - 1.1-10 +* Thu May 13 2010 Dan Williams - 1.1-11 - Update source link for package review (rh #592042) +* Fri Feb 26 2010 Dennis Gilmore - 1.1-10 +- add patch for alignment issues + * Tue Dec 22 2009 John W. Linville - 1.1-9 - Install libnl into /%{_lib} instead of %{_libdir}