crt spec
by Farkas Levente
hi,
i drop the mingw-w64-crt-search-for-correct-sysroot.patch from the spec
and replace with this in the %prep since the patch not working for me
and always have to updated to the current crt release:
---------------------------
# By default the configure script looks for $sysroot/$host/include
# while we use $sysroot/mingw/include for this
sed -i "s,\$host/include,mingw/include,g" configure*
sed -i "s,\$(host)/include,mingw/include,g" Makefile.*
---------------------------
--
Levente "Si vis pacem para bellum!"
12 years, 10 months
[mingw32-libpng] Spec cleanup
by Kalev Lember
commit a5e9f8ec0689a24e9125bb92c69ca1d0351ad4fe
Author: Kalev Lember <kalevlember(a)gmail.com>
Date: Fri Jul 22 13:11:15 2011 +0300
Spec cleanup
Dropped unused patches, switched to using automatic mingw dep
extraction, and removed boilerplate code that isn't needed with
current rpmbuild.
Also dropped mingw32-libpng-fix-invalid-exports.patch, which doesn't
appear to be needed any more.
libpng-multilib.patch | 23 ----------------
libpng-pngconf.patch | 42 ------------------------------
mingw32-libpng-fix-invalid-exports.patch | 14 ----------
mingw32-libpng.spec | 25 ++---------------
4 files changed, 3 insertions(+), 101 deletions(-)
---
diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec
index 3cfcc7c..4ec429d 100644
--- a/mingw32-libpng.spec
+++ b/mingw32-libpng.spec
@@ -1,8 +1,5 @@
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
-%global _use_internal_dependency_generator 0
-%global __find_requires %{_mingw32_findrequires}
-%global __find_provides %{_mingw32_findprovides}
%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-libpng
@@ -13,14 +10,12 @@ Summary: MinGW Windows Libpng library
License: zlib
URL: http://www.libpng.org/pub/png/
Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.xz
-Patch2: mingw32-libpng-fix-invalid-exports.patch
Group: Development/Libraries
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: mingw32-filesystem >= 49
+BuildRequires: mingw32-filesystem >= 68
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-zlib
@@ -37,23 +32,13 @@ MinGW Windows Libpng library.
%prep
%setup -q -n libpng-%{version}
-# The configure script tries to generate a prefix which is used for
-# symbol declarations. However, when this prefix is prefix is used
-# the resulting DLL's don't have any exported symbols at all
-# When we drop this prefix we retain backwards compatibility with
-# older versions of mingw32-libpng. We might need to research this
-# issue more to find out the real cause, but this will do for now
-%patch2 -p0
-
%build
%{_mingw32_configure} --disable-static
-make
+make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
make DESTDIR=$RPM_BUILD_ROOT install
# No need to distribute manpages which appear in the Fedora
@@ -61,12 +46,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
%doc ANNOUNCE CHANGES LICENSE README TODO
%{_mingw32_bindir}/libpng-config
%{_mingw32_bindir}/libpng14-14.dll
@@ -87,6 +67,7 @@ rm -rf $RPM_BUILD_ROOT
- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
- Generate debuginfo subpackage
- Removed static libs from the main package
+- Spec cleanup
* Wed Jun 29 2011 Richard W.M. Jones <rjones(a)redhat.com> - 1.4.3-3
- Include fix for CVE-2011-2501 (RHBZ#717510, RHBZ#717511).
12 years, 10 months
[mingw32-libpng] Removed static libs from the main package
by Kalev Lember
commit b6236ad3445bb4f2615736c9d1391f895d74653c
Author: Kalev Lember <kalevlember(a)gmail.com>
Date: Fri Jul 22 13:09:32 2011 +0300
Removed static libs from the main package
If anyone needs the static libs, these should go into -static subpackage
instead, along with libpng.a which wasn't properly packaged up earlier
either.
mingw32-libpng.spec | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec
index 5c04260..3cfcc7c 100644
--- a/mingw32-libpng.spec
+++ b/mingw32-libpng.spec
@@ -47,7 +47,7 @@ MinGW Windows Libpng library.
%build
-%{_mingw32_configure}
+%{_mingw32_configure} --disable-static
make
@@ -56,8 +56,6 @@ rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libpng.a
-
# No need to distribute manpages which appear in the Fedora
# native packages already.
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
@@ -78,7 +76,6 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_includedir}/pngconf.h
%{_mingw32_libdir}/libpng.dll.a
%{_mingw32_libdir}/libpng.la
-%{_mingw32_libdir}/libpng14.a
%{_mingw32_libdir}/libpng14.dll.a
%{_mingw32_libdir}/libpng14.la
%{_mingw32_libdir}/pkgconfig/libpng.pc
@@ -89,6 +86,7 @@ rm -rf $RPM_BUILD_ROOT
* Fri Jul 22 2011 Kalev Lember <kalevlember(a)gmail.com> - 1.4.8-1
- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
- Generate debuginfo subpackage
+- Removed static libs from the main package
* Wed Jun 29 2011 Richard W.M. Jones <rjones(a)redhat.com> - 1.4.3-3
- Include fix for CVE-2011-2501 (RHBZ#717510, RHBZ#717511).
12 years, 10 months
[mingw32-libpng] Generate debuginfo subpackage
by Kalev Lember
commit c07ed8c1f2cd17999570c72e1c946c1a7764a7d7
Author: Kalev Lember <kalevlember(a)gmail.com>
Date: Fri Jul 22 13:07:54 2011 +0300
Generate debuginfo subpackage
mingw32-libpng.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec
index 4b8b12e..5c04260 100644
--- a/mingw32-libpng.spec
+++ b/mingw32-libpng.spec
@@ -3,6 +3,7 @@
%global _use_internal_dependency_generator 0
%global __find_requires %{_mingw32_findrequires}
%global __find_provides %{_mingw32_findprovides}
+%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-libpng
Version: 1.4.8
@@ -30,6 +31,9 @@ Requires: pkgconfig
MinGW Windows Libpng library.
+%{?_mingw32_debug_package}
+
+
%prep
%setup -q -n libpng-%{version}
@@ -84,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Jul 22 2011 Kalev Lember <kalevlember(a)gmail.com> - 1.4.8-1
- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
+- Generate debuginfo subpackage
* Wed Jun 29 2011 Richard W.M. Jones <rjones(a)redhat.com> - 1.4.3-3
- Include fix for CVE-2011-2501 (RHBZ#717510, RHBZ#717511).
12 years, 10 months
[mingw32-libpng] Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
by Kalev Lember
commit af26964030b1e706413e09b98c61e467abf14c3c
Author: Kalev Lember <kalevlember(a)gmail.com>
Date: Fri Jul 22 13:01:56 2011 +0300
Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
.gitignore | 1 +
libpng-CVE-2011-2501.patch | 49 --------------------------------------------
mingw32-libpng.spec | 20 ++++++-----------
sources | 2 +-
4 files changed, 9 insertions(+), 63 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0a4a22c..c807b4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
libpng-1.4.3.tar.bz2
+/libpng-1.4.8.tar.xz
diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec
index 5d944e6..4b8b12e 100644
--- a/mingw32-libpng.spec
+++ b/mingw32-libpng.spec
@@ -5,23 +5,15 @@
%global __find_provides %{_mingw32_findprovides}
Name: mingw32-libpng
-Version: 1.4.3
-Release: 3%{?dist}
+Version: 1.4.8
+Release: 1%{?dist}
Summary: MinGW Windows Libpng library
License: zlib
URL: http://www.libpng.org/pub/png/
-Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
+Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.xz
Patch2: mingw32-libpng-fix-invalid-exports.patch
-# https://bugzilla.redhat.com/show_bug.cgi?id=717510
-# https://bugzilla.redhat.com/show_bug.cgi?id=717511
-# CVE-2011-2501
-#
-# *** NOTE *** When updating the package, please ensure the
-# new version either contains this fix, or this patch is retained.
-Patch3: libpng-CVE-2011-2501.patch
-
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -49,8 +41,6 @@ MinGW Windows Libpng library.
# issue more to find out the real cause, but this will do for now
%patch2 -p0
-%patch3 -p1
-
%build
%{_mingw32_configure}
@@ -82,6 +72,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_includedir}/libpng14
%{_mingw32_includedir}/png.h
%{_mingw32_includedir}/pngconf.h
+%{_mingw32_libdir}/libpng.dll.a
%{_mingw32_libdir}/libpng.la
%{_mingw32_libdir}/libpng14.a
%{_mingw32_libdir}/libpng14.dll.a
@@ -91,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Jul 22 2011 Kalev Lember <kalevlember(a)gmail.com> - 1.4.8-1
+- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)
+
* Wed Jun 29 2011 Richard W.M. Jones <rjones(a)redhat.com> - 1.4.3-3
- Include fix for CVE-2011-2501 (RHBZ#717510, RHBZ#717511).
diff --git a/sources b/sources
index 386932d..046b6f5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9347eeda4241401f7da4dc9ba7f6a416 libpng-1.4.3.tar.bz2
+2ce595d571f2b06a9403ed5bcfa4ecbd libpng-1.4.8.tar.xz
12 years, 10 months
[Bug 724906] CVE-2011-0216 libxml, libxml2, mingw32-libxml2: Off-by-one error leading to (heap-based buffer overflow and application crash) via a crafted web site
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=724906
Jan Lieskovsky <jlieskov(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |drizt(a)land.ru,
| |erik-fedora(a)vanpienbroek.nl
| |,
| |fedora-mingw(a)lists.fedorapr
| |oject.org,
| |ktietz(a)redhat.com,
| |lfarkas(a)lfarkas.org,
| |mnowak(a)redhat.com,
| |paul(a)city-fan.org,
| |rjones(a)redhat.com,
| |veillard(a)redhat.com
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 10 months