busybox 1:1.30.1-2 (x86_64;znver1;armv7hnl;aarch64) 2019-9319
9999

Status published
Submitter nobodydead [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/647529
Packages
busybox-1:1.30.1-2.x86_64.source
busybox-1:1.30.1-2.x86_64.binary
busybox-debuginfo-1:1.30.1-2.x86_64.debuginfo
busybox-static-1:1.30.1-2.x86_64.binary
busybox-static-debuginfo-1:1.30.1-2.x86_64.debuginfo
busybox-1:1.30.1-2.znver1.source
busybox-1:1.30.1-2.znver1.binary
busybox-debuginfo-1:1.30.1-2.znver1.debuginfo
busybox-static-1:1.30.1-2.znver1.binary
busybox-static-debuginfo-1:1.30.1-2.znver1.debuginfo
busybox-1:1.30.1-2.armv7hnl.binary
busybox-1:1.30.1-2.armv7hnl.source
busybox-debuginfo-1:1.30.1-2.armv7hnl.debuginfo
busybox-static-1:1.30.1-2.armv7hnl.binary
busybox-static-debuginfo-1:1.30.1-2.armv7hnl.debuginfo
busybox-1:1.30.1-2.aarch64.binary
busybox-1:1.30.1-2.aarch64.source
busybox-debuginfo-1:1.30.1-2.aarch64.debuginfo
busybox-static-1:1.30.1-2.aarch64.binary
busybox-static-debuginfo-1:1.30.1-2.aarch64.debuginfo
Build Date 2019-11-28 15:56:07 +0000 UTC
Last Updated 2019-12-05 19:35:18.664812238 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 35b4adab991da40a9ca38b534999bf7bf3d16eeb

commit 35b4adab991da40a9ca38b534999bf7bf3d16eeb
Author:     tpgxyz <tpgxyz@gmail.com>
AuthorDate: Thu Nov 28 13:27:14 2019 +0100
Commit:     tpgxyz <tpgxyz@gmail.com>
CommitDate: Thu Nov 28 13:27:14 2019 +0100

    build with clang, optimize for size with Oz
---
 busybox.spec | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/busybox.spec b/busybox.spec
index 2269ed0..50fbf4a 100644
--- a/busybox.spec
+++ b/busybox.spec
@@ -1,11 +1,11 @@
 %define Werror_cflags %{nil}
 %define _ssp_cflags %{nil}
-%define	cflags	%{optflags}
+%define cflags %{optflags} -Oz
 
 Summary:	Multi-call binary combining many common Unix tools into one executable
 Name:		busybox
 Version:	1.30.1
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPLv2
 Group:		Shells
@@ -48,14 +48,7 @@ Summary:	Static linked busybox
 This package contains a static linked busybox.
 
 %prep
-%setup -q
-%autopatch -p1
-
-%ifnarch %{x86_64}
-export CC=gcc
-export CXX=g++
-%global __cc gcc
-%endif
+%autosetup -p1
 
 # respect cflags
 %if "%(basename %{__cc})" == "clang"
@@ -75,7 +68,7 @@ sed -i \
 
 %build
 mkdir -p full.static
-pushd full.static
+cd full.static
 cp %{SOURCE2} .config
 %ifarch aarch64
 sed -e 's!CONFIG_FEATURE_HAVE_RPC=y!CONFIG_FEATURE_HAVE_RPC=n!g' .config
@@ -83,10 +76,10 @@ sed -e 's!CONFIG_FEATURE_INETD_RPC=y!CONFIG_FEATURE_INETD_RPC=n!g' .config
 %endif
 yes "" | %make oldconfig V=1 KBUILD_SRC=.. -f ../Makefile
 %make_build CC=%{__cc} STRIP="%{__strip}" LDFLAGS="%{ldflags}" V=1 CONFIG_STATIC=y CONFIG_EXTRA_CFLAGS="%{cflags}" KBUILD_SRC=.. -f ../Makefile
-popd
+cd -
 
 mkdir -p full
-pushd full
+cd full
 cp %{SOURCE2} .config
 %ifarch aarch64
 sed -e 's!CONFIG_FEATURE_HAVE_RPC=y!CONFIG_FEATURE_HAVE_RPC=n!g' .config
@@ -94,7 +87,7 @@ sed -e 's!CONFIG_FEATURE_INETD_RPC=y!CONFIG_FEATURE_INETD_RPC=n!g' .config
 %endif
 yes "" | %make oldconfig V=1 KBUILD_SRC=.. -f ../Makefile
 %make_build CC=%{__cc} STRIP="%{__strip}" LDFLAGS="%{ldflags}" V=1 CONFIG_STATIC=n CONFIG_EXTRA_CFLAGS="%{cflags}" KBUILD_SRC=.. -f ../Makefile
-popd
+cd -
 
 %check
 # FIXME
Not Available

benbullard79 [@T] cox.net7 days and no negative comments1602d 01hrs
benbullard79 [@T] cox.net7 days and no negative comments1602d 01hrs