.gear/libpixman-e2k.patch | 28 +++ .gear/rules | 3 + .../tags/a5fffeb1a9e19ba46706b69a29128beee88cb9da | 16 ++ .gear/tags/list | 1 + libpixman.spec | 254 +++++++++++++++++++++ pixman/pixman-compiler.h | 6 +- pixman/pixman-implementation.c | 2 +- 7 files changed, 306 insertions(+), 4 deletions(-) diff --git a/.gear/libpixman-e2k.patch b/.gear/libpixman-e2k.patch new file mode 100644 index 0000000..b023ce6 --- /dev/null +++ b/.gear/libpixman-e2k.patch @@ -0,0 +1,28 @@ +diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c +index 0130b7b..f42b299 100644 +--- a/pixman/pixman-x86.c ++++ b/pixman/pixman-x86.c +@@ -72,6 +72,8 @@ detect_cpu_features (void) + return features; + } + ++#elif defined(__e2k__) ++#define detect_cpu_features() -1 + #else + + #define _PIXMAN_X86_64 \ +diff --git a/test/utils-prng.h b/test/utils-prng.h +index f9ae8dd..c2efbbd 100644 +--- a/test/utils-prng.h ++++ b/test/utils-prng.h +@@ -77,6 +77,10 @@ + + #include "pixman-private.h" + ++#ifdef __e2k__ ++#undef HAVE_GCC_VECTOR_EXTENSIONS ++#endif ++ + /*****************************************************************************/ + + #ifdef HAVE_GCC_VECTOR_EXTENSIONS diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..175458b --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +tar: pixman-@version@:. name=pixman-@version@ +diff: pixman-@version@:. . name=pixman-@version@-@release@.patch +copy?: .gear/*.patch diff --git a/.gear/tags/a5fffeb1a9e19ba46706b69a29128beee88cb9da b/.gear/tags/a5fffeb1a9e19ba46706b69a29128beee88cb9da new file mode 100644 index 0000000..8bf8e6c --- /dev/null +++ b/.gear/tags/a5fffeb1a9e19ba46706b69a29128beee88cb9da @@ -0,0 +1,16 @@ +object 244383bf9f3493c014985de46876e40fd5db43f3 +type commit +tag pixman-0.40.0 +tagger Matt Turner 1587333381 -0700 + +pixman 0.40.0 release +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iNUEABYKAH0WIQSzlptPDvl9ch5jjr2cglpmBdQLvgUCXpzJBV8UgAAAAAAuAChp +c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjM5 +NjlCNEYwRUY5N0Q3MjFFNjM4RUJEOUM4MjVBNjYwNUQ0MEJCRQAKCRCcglpmBdQL +vk+WAQDTWF+eDL2fPYJmnyNA6gYkD3JHVSoasr2kGla3553IvQD/cF90KAIqsjvu +x1NHP7dBJqM/F++JC5HQ6gr34bGYkw4= +=cwBF +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..af8e530 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +a5fffeb1a9e19ba46706b69a29128beee88cb9da pixman-0.40.0 diff --git a/libpixman.spec b/libpixman.spec new file mode 100644 index 0000000..497b823 --- /dev/null +++ b/libpixman.spec @@ -0,0 +1,254 @@ +%define srcname pixman + +Name: libpixman +Version: 0.40.0 +Release: alt2 +Epoch: 3 +Summary: Pixel manipulation library +License: MIT +Group: System/Libraries +Url: http://xorg.freedesktop.org + +Packager: Valery Inozemtsev + +Source: %srcname-%version.tar +Patch: %srcname-%version-%release.patch +Patch2000: %name-e2k.patch + +BuildRequires: libpng-devel + +%description +Pixman is a pixel manipulation library for X and cairo + +%package devel +Summary: Pixel manipulation library development package +Group: Development/C +Requires: %name = %epoch:%version-%release + +%description devel +%name-devel contains the libraries and header files needed to +develop programs which make use of %name + +%prep +%setup -q -n %srcname-%version +%patch -p1 +%ifarch %e2k +%patch2000 -p1 +%endif + +%build +%autoreconf +%configure \ + --disable-static +%make_build + +%check +%make check + +%install +%make DESTDIR=%buildroot install + +%files +%_libdir/*.so.* + +%files devel +%_includedir/* +%_libdir/*.so +%_pkgconfigdir/*.pc + +%changelog +* Wed Jul 28 2021 Ilya Kurdyukov 3:0.40.0-alt2 +- added patch for Elbrus + +* Mon Apr 27 2020 Valery Inozemtsev 3:0.40.0-alt1 +- 0.40.0 + +* Tue Apr 23 2019 Valery Inozemtsev 3:0.38.4-alt1 +- 0.38.4 + +* Tue Feb 12 2019 Valery Inozemtsev 3:0.38.0-alt1 +- 0.38.0 + +* Wed Jan 16 2019 Valery Inozemtsev 3:0.36.0-alt1 +- 0.36.0 + +* Tue Nov 29 2016 Valery Inozemtsev 3:0.34.0-alt1 +- 0.34.0 + +* Sun Nov 15 2015 Valery Inozemtsev 3:0.32.8-alt1 +- 0.32.8 (closes: #31472) + +* Fri Sep 05 2014 Valery Inozemtsev 3:0.32.6-alt1 +- 0.32.6 + +* Mon Nov 18 2013 Valery Inozemtsev 3:0.32.4-alt1 +- 0.32.4 + +* Tue Nov 12 2013 Valery Inozemtsev 3:0.32.2-alt1 +- 0.32.2 + +* Thu Aug 08 2013 Valery Inozemtsev 3:0.30.2-alt1 +- 0.30.2 + +* Mon May 13 2013 Valery Inozemtsev 3:0.30.0-alt1 +- 0.30.0 + +* Tue Dec 11 2012 Valery Inozemtsev 3:0.28.2-alt1 +- 0.28.2 + +* Thu Nov 08 2012 Valery Inozemtsev 3:0.28.0-alt1 +- 0.28.0 + +* Sun Jul 01 2012 Valery Inozemtsev 3:0.26.2-alt1 +- 0.26.2 + +* Sun May 27 2012 Valery Inozemtsev 3:0.26.0-alt1 +- 0.26.0 + +* Mon Apr 16 2012 Valery Inozemtsev 3:0.24.4-alt1 +- 0.24.4 + +* Thu Jan 19 2012 Valery Inozemtsev 3:0.24.2-alt1 +- 0.24.2 + +* Mon Nov 07 2011 Valery Inozemtsev 3:0.24.0-alt1 +- 0.24.0 + +* Tue Jul 05 2011 Valery Inozemtsev 3:0.22.2-alt1 +- 0.22.2 + +* Mon May 02 2011 Valery Inozemtsev 3:0.22.0-alt1 +- 0.22.0 + +* Tue Apr 19 2011 Valery Inozemtsev 3:0.21.8-alt1 +- 0.21.8 + +* Thu Feb 24 2011 Valery Inozemtsev 3:0.21.6-alt1 +- 0.21.6 + +* Thu Feb 10 2011 Alexey Tourbin 3:0.21.4-alt2 +- rebuilt for debuginfo +- disabled symbol versioning + +* Wed Jan 19 2011 Valery Inozemtsev 3:0.21.4-alt1 +- 0.21.4 + +* Sun Nov 21 2010 Valery Inozemtsev 3:0.21.2-alt1 +- 0.21.2 + +* Thu Oct 28 2010 Valery Inozemtsev 3:0.20.0-alt1 +- 0.20.0 + +* Sun Oct 24 2010 Valery Inozemtsev 3:0.18.4-alt2 +- rebuild + +* Mon Aug 16 2010 Valery Inozemtsev 3:0.18.4-alt1 +- 0.18.4 + +* Wed Jun 30 2010 Valery Inozemtsev 3:0.18.2-alt1 +- 0.18.2 + +* Mon Apr 19 2010 Valery Inozemtsev 3:0.18.0-alt1 +- 0.18.0 + +* Mon Jan 18 2010 Valery Inozemtsev 2:0.17.4-alt1 +- 0.17.4 + +* Tue Dec 08 2009 Valery Inozemtsev 2:0.17.2-alt2 +- ARM: added '.arch armv7a' directive to NEON assembly file + +* Sun Nov 22 2009 Valery Inozemtsev 2:0.17.2-alt1 +- 0.17.2 + +* Fri Oct 02 2009 Valery Inozemtsev 2:0.16.2-alt1 +- 0.16.2 + +* Thu Sep 03 2009 Valery Inozemtsev 2:0.16.0-alt2 +- enabled the x888_8_8888 sse2 fast path + +* Sun Aug 30 2009 Valery Inozemtsev 2:0.16.0-alt1 +- 0.16.0 + +* Wed Aug 12 2009 Valery Inozemtsev 2:0.15.20-alt1 +- 0.15.20 + +* Tue Jul 21 2009 Valery Inozemtsev 2:0.15.18-alt1 +- 0.15.18 + +* Tue Jul 14 2009 Valery Inozemtsev 2:0.15.16-alt1 +- 0.15.16 + +* Thu Jun 25 2009 Valery Inozemtsev 2:0.15.14-alt1 +- 0.15.14 + +* Sun Jun 21 2009 Valery Inozemtsev 2:0.15.10-alt2 +- 0.15.10 (closes: #20516) + +* Wed Jun 17 2009 Valery Inozemtsev 1:0.15.12-alt1 +- 0.15.12 + +* Fri Jun 05 2009 Valery Inozemtsev 1:0.15.10-alt1 +- 0.15.10 + +* Sun May 31 2009 Valery Inozemtsev 1:0.15.8-alt1 +- 0.15.8 + +* Fri May 22 2009 Valery Inozemtsev 1:0.15.6-alt1 +- 0.15.6 + +* Fri May 15 2009 Valery Inozemtsev 1:0.15.4-alt1 +- 0.15.4 + +* Fri Apr 10 2009 Valery Inozemtsev 1:0.15.2-alt1 +- 0.15.2 + +* Sun Feb 08 2009 Valery Inozemtsev 1:0.14.0-alt1 +- 0.14.0 + +* Wed Nov 26 2008 Valery Inozemtsev 1:0.13.2-alt1 +- 0.13.2 + +* Sat Nov 22 2008 Valery Inozemtsev 1:0.12.0-alt3 +- removed obsolete %%post_ldconfig/%%postun_ldconfig calls + +* Mon Oct 27 2008 Valery Inozemtsev 1:0.12.0-alt2 +- rebuild with gcc4.3 + +* Fri Sep 19 2008 Valery Inozemtsev 1:0.12.0-alt1 +- 0.12.0 + +* Sun Sep 07 2008 Valery Inozemtsev 1:0.11.10-alt1 +- 0.11.10 + +* Wed Aug 13 2008 Valery Inozemtsev 1:0.11.8-alt1 +- 0.11.8 + +* Wed Jun 25 2008 Valery Inozemtsev 1:0.11.6-alt1 +- 0.11.6 + +* Fri Jun 13 2008 Valery Inozemtsev 1:0.10.0-alt3 +- rollback to 0.10.0 (0.11.4 memory leaked) + +* Wed Jun 11 2008 Valery Inozemtsev 0.11.4-alt1 +- 0.11.4 + +* Thu May 01 2008 Valery Inozemtsev 0.10.0-alt2 +- introduced PIXMAN_0.10.0 ABI interface for new functions in libpixman-1.so.0.10.0 + +* Fri Mar 28 2008 Valery Inozemtsev 0.10.0-alt1 +- 0.10.0 + +* Wed Mar 19 2008 Valery Inozemtsev 0.9.6-alt3 +- pixman-0.9.6-x-offset.patch: fix computation of x_offset in pixman_add_traps + +* Wed Jan 16 2008 Valery Inozemtsev 0.9.6-alt2 +- avoid use of C++ keyword xor in header (close #13899) + +* Wed Oct 31 2007 Valery Inozemtsev 0.9.6-alt1 +- 0.9.6 + +* Mon Oct 01 2007 Valery Inozemtsev 0.9.5-alt2 +- GIT snapshot 2007-09-29 (39a67d35f05aa47cf50191e0837a2125593a7bbc) + +* Thu Sep 06 2007 Valery Inozemtsev 0.9.5-alt1 +- initial release diff --git a/pixman/pixman-compiler.h b/pixman/pixman-compiler.h index a02aa49..6394156 100644 --- a/pixman/pixman-compiler.h +++ b/pixman/pixman-compiler.h @@ -109,14 +109,14 @@ #if defined(PIXMAN_NO_TLS) # define PIXMAN_DEFINE_THREAD_LOCAL(type, name) \ - static type name + static type name; # define PIXMAN_GET_THREAD_LOCAL(name) \ (&name) #elif defined(TLS) # define PIXMAN_DEFINE_THREAD_LOCAL(type, name) \ - static TLS type name + static TLS type name; # define PIXMAN_GET_THREAD_LOCAL(name) \ (&name) @@ -176,7 +176,7 @@ #elif defined(_MSC_VER) # define PIXMAN_DEFINE_THREAD_LOCAL(type, name) \ - static __declspec(thread) type name + static __declspec(thread) type name; # define PIXMAN_GET_THREAD_LOCAL(name) \ (&name) diff --git a/pixman/pixman-implementation.c b/pixman/pixman-implementation.c index 2c7de4c..5a2cbfe 100644 --- a/pixman/pixman-implementation.c +++ b/pixman/pixman-implementation.c @@ -63,7 +63,7 @@ typedef struct } cache [N_CACHED_FAST_PATHS]; } cache_t; -PIXMAN_DEFINE_THREAD_LOCAL (cache_t, fast_path_cache); +PIXMAN_DEFINE_THREAD_LOCAL (cache_t, fast_path_cache) static void dummy_composite_rect (pixman_implementation_t *imp,