Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hugo for openSUSE:Factory checked in at 2021-04-27 21:34:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hugo (Old) and /work/SRC/openSUSE:Factory/.hugo.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hugo" Tue Apr 27 21:34:29 2021 rev:8 rq:888525 version:0.82.1 Changes: -------- --- /work/SRC/openSUSE:Factory/hugo/hugo.changes 2021-04-21 21:00:45.558329858 +0200 +++ /work/SRC/openSUSE:Factory/.hugo.new.12324/hugo.changes 2021-04-27 21:34:37.915980803 +0200 @@ -1,0 +2,6 @@ +Mon Apr 26 10:25:20 UTC 2021 - Fabian Vogt <[email protected]> + +- Build the "extended" version of hugo +- Force dynamic linking against libsass + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hugo.spec ++++++ --- /var/tmp/diff_new_pack.MIjYNb/_old 2021-04-27 21:34:38.591981915 +0200 +++ /var/tmp/diff_new_pack.MIjYNb/_new 2021-04-27 21:34:38.595981922 +0200 @@ -28,7 +28,10 @@ URL: https://github.com/gohugoio/hugo Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz +BuildRequires: gcc-c++ +BuildRequires: pkg-config BuildRequires: golang(API) >= 1.16 +BuildRequires: pkgconfig(libsass) %description Hugo is a static HTML and CSS website generator written in Go. It is optimized @@ -56,11 +59,18 @@ %autosetup -a 1 %build +# Force using the system version of libsass. +# Due to https://github.com/golang/go/issues/26366 it's not vendored properly +# anyway. +export CGO_CFLAGS="$(pkg-config --cflags libsass) -DUSE_LIBSASS_SRC" +export CGO_CXXFLAGS="${CGO_CFLAGS}" +export CGO_LDFLAGS="$(pkg-config --libs libsass)" # Build the binary. go build \ -mod=vendor \ - -buildmode=pie ; + -tags extended \ + -buildmode=pie %install # Install the binary.
