Commit 4e118136 authored by kende's avatar kende Committed by Simonas Leleiva

Add debuginfo handling

[glibc] Add debuginfo handling. Fixes JB#45224
parent 462a74e8
* Wed Mar 27 2019 Marko Kenttälä <marko.kenttala@jolla.com> - 2.25+git5
- Added debuginfo handling, fixes jb#45224
* Fri Mar 15 2019 Marko Saukko <marko.saukko@jolla.com> - 2.25+git4
- Apply 2.25.6 patch set from ubuntu. Contributes to JB#45152
- Fixes CVE-2017-15670, CVE-2017-15671, CVE-2017-15804,
......
%define glibcsrcdir glibc-2.25
Name: glibc
Summary: GNU C library shared libraries
Version: 2.25+git4
Version: 2.25+git5
Release: 0
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Group: System/Libraries
......@@ -167,16 +169,6 @@ which can be helpful during program debugging.
If unsure if you need this, don't install this package.
%package debug
Summary: Debug libraries from GNU C library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description debug
The glibc-debug package contains debug libraries.
If unsure if you need this, don't install this package.
%package doc
Summary: Documentation for %{name}
Group: Documentation
......@@ -186,10 +178,10 @@ Requires: %{name} = %{version}-%{release}
%{summary}.
%prep
rm -rf glibc-2.25
%setup -q -n %{glibcsrcdir}
xz -dc %SOURCE0 | tar -x
cd glibc-2.25
cd %{glibcsrcdir}
%patch1 -p2
%ifarch %{arm}
%patch2 -p1
......@@ -241,7 +233,7 @@ build_CFLAGS="$BuildFlags -O3"
export MAKEINFO=:
../glibc-2.25/configure CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" \
../%{glibcsrcdir}/configure CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" \
--prefix=%{_prefix} \
"--enable-add-ons=libidn" --without-cvs $EnableKernel \
--enable-bind-now --with-tls \
......@@ -261,19 +253,19 @@ $GCC -Os -static -o build-locale-archive %SOURCE11 \
./build-%{name}-%{version}/locale/locarchive.o \
./build-%{name}-%{version}/locale/md5.o \
-DDATADIR=\"%{_datadir}\" -DPREFIX=\"%{_prefix}\" \
-L./build-%{name}-%{version} -Iglibc-2.25
-L./build-%{name}-%{version} -I%{glibcsrcdir}
%install
rm -rf ${RPM_BUILD_ROOT}
cd build-%{name}-%{version}
make -j1 install_root=${RPM_BUILD_ROOT} install
install -p -m 644 ../glibc-2.25/nss/nsswitch.conf $RPM_BUILD_ROOT/etc/nsswitch.conf
install -p -m 644 ../%{glibcsrcdir}/nss/nsswitch.conf $RPM_BUILD_ROOT/etc/nsswitch.conf
mkdir -p $RPM_BUILD_ROOT/etc/default
install -p -m 644 ../glibc-2.25/nis/nss $RPM_BUILD_ROOT/etc/default/nss
install -p -m 644 ../%{glibcsrcdir}/nis/nss $RPM_BUILD_ROOT/etc/default/nss
install -m 644 ../glibc-2.25/nscd/nscd.conf $RPM_BUILD_ROOT/etc
install -m 644 ../%{glibcsrcdir}/nscd/nscd.conf $RPM_BUILD_ROOT/etc
# Include ld.so.conf
echo 'include /etc/ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT/etc/ld.so.conf
......@@ -416,21 +408,21 @@ rm -rf $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo
# the last bit: more documentation
rm -rf ../documentation
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
bzip2 -9 ../glibc-2.25/ChangeLog*
bzip2 -9 ../%{glibcsrcdir}/ChangeLog*
install -m0644 -t $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \
../glibc-2.25/crypt/README.ufc-crypt \
../glibc-2.25/ChangeLog{,.16,.17}.bz2 \
../glibc-2.25/posix/gai.conf \
../glibc-2.25/README \
../glibc-2.25/NEWS \
../glibc-2.25/INSTALL \
../glibc-2.25/BUGS \
../glibc-2.25/CONFORMANCE \
../glibc-2.25/hesiod/README.hesiod
install -m0644 ../glibc-2.25/timezone/README \
../%{glibcsrcdir}/crypt/README.ufc-crypt \
../%{glibcsrcdir}/ChangeLog{,.16,.17}.bz2 \
../%{glibcsrcdir}/posix/gai.conf \
../%{glibcsrcdir}/README \
../%{glibcsrcdir}/NEWS \
../%{glibcsrcdir}/INSTALL \
../%{glibcsrcdir}/BUGS \
../%{glibcsrcdir}/CONFORMANCE \
../%{glibcsrcdir}/hesiod/README.hesiod
install -m0644 ../%{glibcsrcdir}/timezone/README \
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.timezone
cp ../glibc-2.25/{COPYING,COPYING.LIB,LICENSES} ..
cp ../%{glibcsrcdir}/{COPYING,COPYING.LIB,LICENSES} ..
%if 0%{run_glibc_tests}
......@@ -569,10 +561,6 @@ fi
%ghost %config(missingok,noreplace) /etc/sysconfig/nscd
%endif
%files debug
%defattr(-,root,root)
%{_prefix}/%{_lib}/debug/usr/lib/*
%files doc
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment