[Bug 1819148] Review Request: act - Automatic Component Toolkit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1819148

Weiping <zwp10758@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zwp10758@xxxxxxxxx



--- Comment #1 from Weiping <zwp10758@xxxxxxxxx> ---
Hi,

this is an informal review:

> Name:           act
> %global lname   AutomaticComponentToolkit
It's not recommended to use lname, please follow name guideline:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/


> %{?gometa}
> %{?!gometa:BuildRequires: /usr/bin/go}
Packages MUST have BuildRequires: go-rpm-macros.
https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_dependencies



> mkdir -p %{buildroot}%{_bindir}
> install -m 0755 -vp act %{buildroot}%{_bindir}/

Better to use these macors:
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_binary_package_installation

Please add
%global golicenses      LICENSE.md
%global godocs          README.md



There is an example, for simple binary package:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_simple_binary_package


fedora-review failed to build this package:
+ GO111MODULE=off
+ go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -ldflags '
-B 0x4b072daa5c63e7865a65639d9d94578a8d195116 -extldflags '\''-Wl,-z,relro
-Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\'''
-a -v -x -o act Source/actutils.go Source/automaticcomponenttoolkit.go
Source/buildbindingccpp.go Source/buildbindingcsharp.go
Source/buildbindinggo.go Source/buildbindingnode.go
Source/buildbindingpascal.go Source/buildbindingpython.go
Source/buildimplementationcpp.go Source/buildimplementationpascal.go
Source/componentdefinition.go Source/componentdiff.go Source/languagec.go
Source/languagecpp.go Source/languagepascal.go Source/languagewriter.go
WORK=/tmp/go-build362236170
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed
runtime stack:
runtime.throw(0xa3b43e, 0xc)
        /usr/lib/golang/src/runtime/panic.go:1112 +0x72


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux