[Gluster-devel] [PATCH] Hopefully fix rpm building for everyone by rm-ing *.a and *.la
Harshavardhana
harsha at gluster.com
Thu Dec 3 08:53:49 UTC 2009
Thanks Erick, figured out this to be a libtool issue it produces *.a for a
debian based tarball, not on Fedora 11 libtool.
Regards
--
Harshavardhana
Gluster - http://www.gluster.com
On Thu, Dec 3, 2009 at 4:32 AM, Erick Tryzelaar <
idadesub at users.sourceforge.net> wrote:
> My Fedora 11 machine doesn't seem to make the .a files, so it errors out,
> but it appears someone else's machine does, so try to fix it by explicitly
> removing the .a and .la files, rather than excluding them from the %files
> section.
> ---
> glusterfs.spec.in | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/glusterfs.spec.in b/glusterfs.spec.in
> index 9ce6f1b..446018a 100644
> --- a/glusterfs.spec.in
> +++ b/glusterfs.spec.in
> @@ -143,7 +143,8 @@ sed -i
> 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
> %{buildroot}%{_includedir}/glusterfs/
>
> # Remove unwanted files from all the shared libraries
> -find %{buildroot}%{_libdir}/glusterfs -name '*.la' | xargs rm -f
> +find %{buildroot}%{_libdir} -name '*.la' | xargs rm -f
> +find %{buildroot}%{_libdir} -name '*.a' | xargs rm -f
>
> %clean
> %{__rm} -rf %{buildroot}
> @@ -197,8 +198,6 @@ fi
> %{_includedir}/glusterfs
> %{_includedir}/libglusterfsclient.h
> %exclude %{_includedir}/glusterfs/y.tab.h
> -%exclude %{_libdir}/*.la
> -%exclude %{_libdir}/*.a
> %{_libdir}/*.so
>
> %changelog
> --
> 1.6.2.5
>
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20091203/1fe48627/attachment-0003.html>
More information about the Gluster-devel
mailing list