Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pgloader for openSUSE:Factory 
checked in at 2021-08-23 10:08:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pgloader (Old)
 and      /work/SRC/openSUSE:Factory/.pgloader.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pgloader"

Mon Aug 23 10:08:01 2021 rev:8 rq:913332 version:3.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/pgloader/pgloader.changes        2021-03-16 
15:46:51.141270432 +0100
+++ /work/SRC/openSUSE:Factory/.pgloader.new.1899/pgloader.changes      
2021-08-23 10:08:58.564189988 +0200
@@ -1,0 +2,6 @@
+Wed Aug 18 07:46:37 UTC 2021 - Jan Engelhardt <jeng...@inai.de>
+
+- Reduce filesize of /usr/bin/pgloader by 19MB
+- Fix leap>=43 condition (there is no Leap 43 anywhere near).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pgloader.spec ++++++
--- /var/tmp/diff_new_pack.8kfGlT/_old  2021-08-23 10:08:59.112189349 +0200
+++ /var/tmp/diff_new_pack.8kfGlT/_new  2021-08-23 10:08:59.116189344 +0200
@@ -33,8 +33,9 @@
 BuildRequires:  freetds-devel
 BuildRequires:  pkgconfig
 BuildRequires:  sbcl
+BuildRequires:  strace
 BuildRequires:  pkgconfig(sqlite3)
-%if 0%{?leap_version} >= 430000 || 0%{?suse_version} > 4300
+%if 0%{?suse_version} >= 1500
 BuildRequires:  pkgconfig(libcrypto)
 BuildRequires:  pkgconfig(libopenssl)
 BuildRequires:  pkgconfig(libssl)
@@ -77,16 +78,24 @@
 %if "%{_arch}" == "i386" || "%{_arch}" == "arm"
 export DYNSIZE="DYNSIZE=1024"
 %endif
-make V=1 %{?_smp_mflags} ${DYNSIZE} %{name}
+%make_build V=1 ${DYNSIZE} %{name}
 
 %install
 install -d %{buildroot}%{_bindir}
-install -m 755 bin/pgloader %{buildroot}%{_bindir}/pgloader
+#
+# SBCL produces ELF files that
+# (1.) have excessive gaps and which could be fixed by objcopy/strip/etc.
+# (2.) do not have any .debug_* sections, therefore rpm's debuginfo
+#      mechanism (would do strip) does not trigger at all.
+#
+# Hence this copyin-copyout call with objcopy, which reduces filesize from 20MB
+# to 300KB.
+#
+objcopy bin/pgloader %{buildroot}%{_bindir}/pgloader
 
 %fdupes %{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %license local-projects/%{name}-%{version}/LICENSE
 %doc local-projects/%{name}-%{version}/README.md 
local-projects/%{name}-%{version}/TODO.md
 %{_bindir}/pgloader

Reply via email to