Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package esbuild for openSUSE:Factory checked in at 2024-06-11 18:29:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/esbuild (Old) and /work/SRC/openSUSE:Factory/.esbuild.new.19518 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "esbuild" Tue Jun 11 18:29:32 2024 rev:11 rq:1179849 version:0.21.5 Changes: -------- --- /work/SRC/openSUSE:Factory/esbuild/esbuild.changes 2024-06-10 17:37:22.726383189 +0200 +++ /work/SRC/openSUSE:Factory/.esbuild.new.19518/esbuild.changes 2024-06-11 18:30:34.899692471 +0200 @@ -1,0 +2,8 @@ +Mon Jun 10 20:15:09 UTC 2024 - Bruno Pitrus <brunopit...@hotmail.com> + +- Use correct optflags for generated C code +- Fix broken debuginfo (work around bsc#1215402) +- 15.6+ and Fedora: don't use vendor +- Run test suite in %check + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ esbuild.spec ++++++ --- /var/tmp/diff_new_pack.FO3tEW/_old 2024-06-11 18:30:37.515788134 +0200 +++ /var/tmp/diff_new_pack.FO3tEW/_new 2024-06-11 18:30:37.527788572 +0200 @@ -15,6 +15,12 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 +# Go source packages are horribly broken on Leap (mismatching versions between libraries and compiler) +%bcond_with vendor +%else +%bcond_without vendor +%endif #macros for Fedora %global goipath github.com/evanw/esbuild @@ -39,28 +45,67 @@ BuildRequires: golang(API) %endif +%if %{without vendor} +%if 0%{?fedora} +BuildRequires: golang-ipath(golang.org/x/sys) +%else +BuildRequires: golang-org-x-sys +%endif +%endif + %description esbuild is a JavaScript bundler and minifier. %{gopkg} %prep +%if %{with vendor} %autosetup -a1 -p1 +%else +%autosetup -p1 +%endif %build -export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" +export CFLAGS="%{optflags} -fpie -fno-fat-lto-objects" +export CXXFLAGS="$CFLAGS" + +export CGO_CFLAGS="$CFLAGS" +export CGO_CXXFLAGS="$CFLAGS" +export CGO_LDFLAGS="%{?build_ldflags}" + +export GOFLAGS='-ldflags=-compressdwarf=false' #fix broken debuginfo bsc#1215402 %if 0%{?fedora} %goprep -k -e -%gobuild ./cmd/esbuild %else -%{goprep} . -go build -v -p 4 -x -buildmode=pie -mod vendor ./cmd/esbuild +%goprep %goipath +export GO111MODULE=off %endif +%gobuild ./cmd/esbuild + %install -install -pvDm755 %{name} "%{buildroot}/%{_bindir}/%{name}" +install -pvDm755 \ +%if 0%{?fedora} +%name \ +%else +%{_builddir}/go/bin/%{name} \ +%endif +"%{buildroot}/%{_bindir}/%{name}" + +%check +export CFLAGS="%{optflags} -fpie -fno-fat-lto-objects" +export CXXFLAGS="$CFLAGS" +export CGO_CFLAGS="$CFLAGS" +export CGO_CXXFLAGS="$CFLAGS" +export CGO_LDFLAGS="%{?build_ldflags}" +export GOFLAGS='-ldflags=-compressdwarf=false' +%if 0%{?fedora} +%gocheck +%else +export GO111MODULE=off +%gotest %goipath/... +%endif %files %license LICENSE.md