]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - glibc/glibc.nm
audit: Move libs and all others to /usr.
[people/arne_f/ipfire-3.x.git] / glibc / glibc.nm
index a451dee539ac1dc9279921ea44c6fee317c413e1..e5a6aa0ff8034753a30b2efaff4d72685cc65fc2 100644 (file)
@@ -4,8 +4,9 @@
 ###############################################################################
 
 name       = glibc
-version    = 2.14.1
-release    = 1
+version    = 2.15
+release    = 3
+thisapp    = %{name}-2.15-a316c1f
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Base
@@ -24,10 +25,10 @@ description
 end
 
 # The version of the ports addon.
-ports_version = %{version}
+ports_version = 2.15-8a70b2d
 
 source_dl  = http://ftp.gnu.org/gnu/glibc/
-sources    = %{thisapp}.tar.xz glibc-ports-%{ports_version}.tar.xz
+sources    = %{thisapp}.tar.gz glibc-ports-%{ports_version}.tar.gz
 
 build
        # Optimize glibc for kernel
@@ -46,11 +47,13 @@ build
        end
 
        # Build glibc with custom cflags
-       GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -DPIC
+       GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -fPIC -DPIC
 
        if "%{DISTRO_ARCH}" == "i686"
                GLIBC_FLAGS += -march=i686 -mtune=generic
-       elif "%{DISTRO_ARCH}" == "x86_64"
+       end
+
+       if "%{DISTRO_ARCH}" == "x86_64"
                GLIBC_FLAGS += -mtune=generic
        end
 
@@ -146,13 +149,12 @@ build
        configure_options = \
                --build=%{DISTRO_BUILDTARGET} \
                --prefix=/usr \
-               --libexecdir=/usr/lib/glibc \
+               --libexecdir=%{libdir}/glibc \
                --disable-profile \
                --enable-add-ons \
                --enable-kernel=%{OPTIMIZED_KERNEL} \
                --with-selinux \
                --disable-werror \
-               --enable-experimental-malloc \
                --enable-bind-now \
                --enable-nss-crypt
 
@@ -224,18 +226,18 @@ build
                rm -vf %{BUILDROOT}/etc/ld.so.cache
 
                # Include /usr/lib/gconv/gconv-modules.cache
-               > %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache
-               chmod 644 %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache
+               > %{BUILDROOT}%{libdir}/gconv/gconv-modules.cache
+               chmod 644 %{BUILDROOT}%{libdir}/gconv/gconv-modules.cache
 
-               strip -g %{BUILDROOT}/usr/lib/*.o
+               strip -g %{BUILDROOT}%{libdir}/*.o
 
                # Move some libs to correct place
-               mv -v %{BUILDROOT}/lib/lib{memusage,pcprofile}.so %{BUILDROOT}/usr/lib/
+               mv -v %{BUILDROOT}/%{lib}/lib{memusage,pcprofile}.so %{BUILDROOT}%{libdir}
        end
 
        keep_libraries
-               /usr/lib/libc_nonshared.a
-               /usr/lib/libpthread_nonshared.a
+               %{libdir}/libc_nonshared.a
+               %{libdir}/libpthread_nonshared.a
        end
 end
 
@@ -253,6 +255,7 @@ packages
                        /usr/bin
                        /usr/sbin
                        /usr/share
+                       /usr/lib/locale
                        !/usr/share/zoneinfo
                end
        end
@@ -274,7 +277,7 @@ packages
 
                requires = glibc-headers=%{thisver}
 
-               files = /usr/lib/*.a /usr/lib/*.o
+               files = %{libdir}/*.a %{libdir}/*.o
        end
 
        package glibc-headers
@@ -327,8 +330,8 @@ packages
                        /usr/bin/mtrace
                        /usr/bin/pcprofiledump
                        /usr/bin/xtrace
-                       /usr/lib/libmemusage.so
-                       /usr/lib/libpcprofile.so
+                       %{libdir}/libmemusage.so
+                       %{libdir}/libpcprofile.so
                end
        end