Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > fbfba3aae6cb50e32fbda9b2ce88373d > files > 11

busybox-1.32.1-1.mga8.src.rpm

%bcond_with   		uclibc
%define Werror_cflags	%{nil}
%define _ssp_cflags	%{nil}

Summary:	Multi-call binary combining many common Unix tools into one executable
Name:		busybox
Epoch:		1
Version:	1.32.1
Release:	%mkrel 1
License:	GPLv2
Group:		Shells
URL:		http://www.busybox.net/
Source0:	http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
Source1:	http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2.sig
Patch0:		busybox-1.31.1-stime-fix.patch
Source2:	busybox-1.15.2-config
Source3:	busybox-1.17.2-minimal-config
Patch1:		busybox-i.15.2-no-march_i386.patch
Patch12:	busybox-1.2.2-ls.patch
Patch17:	busybox-1.26.2-use-Os.diff
Patch19:	busybox-1.27.2-CVE-2014-9645.patch
Patch23:	busybox-1.24.2-CVE-2016-6301.patch

BuildRequires:	gcc >= 3.3.1-2mdk
BuildRequires:	pkgconfig(libtirpc)
%if %{with uclibc}
BuildRequires:	uClibc-static-devel >= 0.9.30.3-3
%define __cc	%{uclibc_cc}
%define	cflags	%{uclibc_cflags}
%else
BuildRequires:	glibc-static-devel
%define	cflags	%{optflags}
%endif
BuildRequires:	kernel-userspace-headers

%description
BusyBox combines tiny versions of many common UNIX utilities into a
single small executable. It provides minimalist replacements for most
of the utilities you usually find in GNU coreutils, shellutils, etc.
The utilities in BusyBox generally have fewer options than their
full-featured GNU cousins; however, the options that are included provide
the expected functionality and behave very much like their GNU counterparts.
BusyBox provides a fairly complete POSIX environment for any small or
embedded system.

BusyBox has been written with size-optimization and limited resources in
mind. It is also extremely modular so you can easily include or exclude
commands (or features) at compile time. This makes it easy to customize
your embedded systems. To create a working system, just add /dev, /etc,
and a kernel.

%package	static
Group:		Shells
Summary:	Static linked busybox

%description	static
This package contains a static linked busybox.

%prep
%setup -q
%patch0 -p1 -b .stime
%patch1 -b .no_march~ -p1
%patch12 -b .ls~ -p1
%patch17 -b .Os~ -p1
%patch19 -p1 -b .modprobe
%patch23 -p1 -b .ntpd-dos

%build
cat %{SOURCE2} |sed \
	-e 's|^.*CONFIG_EXTRA_CFLAGS.*$|CONFIG_EXTRA_CFLAGS="%{cflags} -fno-strict-aliasing"|g' \
	> .config
yes "" | %make_build oldconfig V=1
%make_build CC=%{__cc} LDFLAGS="%{ldflags}" V=1
mv busybox_unstripped busybox.full.static
sed -i "s|^.*CONFIG_EXTRA_CFLAGS=\"|CONFIG_EXTRA_CFLAGS=\"$(pkg-config  libtirpc --cflags)|g" .config
%make_build CC=%{__cc} LDFLAGS="%{ldflags} $(shell pkg-config  libtirpc --cflags)" V=1 CONFIG_STATIC=n
mv busybox_unstripped busybox.full


%if %{with uclibc}
cat %{SOURCE3} |sed \
	-e 's|^.*CONFIG_EXTRA_CFLAGS.*$|CONFIG_EXTRA_CFLAGS="%{cflags} -fno-strict-aliasing"|g' \
	> .config
yes "" | %make_build oldconfig V=1
%make_build CC=%{__cc} LDFLAGS="%{ldflags}" V=1
mv busybox_unstripped busybox.minimal.static
%make_build CC=%{__cc} LDFLAGS="%{ldflags}" V=1 CONFIG_STATIC=n
mv busybox_unstripped busybox.minimal
%endif

%check
# FIXME
%if 0
%make_build CC=%{__cc} V=1 check
%endif

%install
install -m755 busybox.full -D %{buildroot}%{_bindir}/busybox
install -m755 busybox.full.static -D %{buildroot}/bin/busybox.static
%if %{with uclibc}
install -m755 busybox.minimal -D %{buildroot}%{uclibc_root}%{_bindir}/busybox.minimal
install -m755 busybox.minimal.static -D %{buildroot}%{uclibc_root}/bin/busybox.minimal.static
%endif

%files
%doc AUTHORS README TODO
%{_bindir}/busybox
%if %{with uclibc}
%{uclibc_root}%{_bindir}/busybox.minimal
%endif

%files static
%doc AUTHORS README TODO
/bin/busybox.static
%if %{with uclibc}
%{uclibc_root}/bin/busybox.minimal.static
%endif


%changelog
* Fri Jan 01 2021 luigiwalser <luigiwalser> 1:1.32.1-1.mga8
+ Revision: 1667980
- 1.32.1

* Wed Dec 30 2020 kekepower <kekepower> 1:1.33.0-1.mga8
+ Revision: 1665584
- Update to version 1.33.0

* Fri Nov 27 2020 tmb <tmb> 1:1.32.0-3.mga8
+ Revision: 1649770
- rebuild for missing signature

* Wed Nov 25 2020 tv <tv> 1:1.32.0-2.mga8
+ Revision: 1649336
- fix compiling dynamic version with tirpc/glibc-2.32
- disable rpc stuff in static version (glibc-2.32...)

* Sun Jun 28 2020 kekepower <kekepower> 1:1.32.0-1.mga8
+ Revision: 1600109
- Update to version 1.32.0

* Tue Feb 18 2020 umeabot <umeabot> 1:1.31.1-2.mga8
+ Revision: 1538117
- Mageia 8 Mass Rebuild

* Thu Nov 14 2019 daviddavid <daviddavid> 1:1.31.1-1.mga8
+ Revision: 1459930
- new version: 1.31.1

* Thu Feb 14 2019 kekepower <kekepower> 1:1.30.1-1.mga7
+ Revision: 1367064
- Update to version 1.30.1

* Sun Dec 30 2018 kekepower <kekepower> 1:1.30.0-1.mga7
+ Revision: 1347253
- Update to versino 1.30.0
- Rediffed Patch1

* Sat Sep 22 2018 umeabot <umeabot> 1:1.28.4-2.mga7
+ Revision: 1295748
- Mageia 7 Mass Rebuild

* Fri May 25 2018 kekepower <kekepower> 1:1.28.4-1.mga7
+ Revision: 1232094
- Update to version 1.28.4

* Wed Apr 04 2018 kekepower <kekepower> 1:1.28.3-1.mga7
+ Revision: 1215278
- Update to version 1.28.3

* Tue Mar 27 2018 kekepower <kekepower> 1:1.28.2-1.mga7
+ Revision: 1212858
- Update to version 1.28.2

* Sun Feb 18 2018 kekepower <kekepower> 1:1.28.1-1.mga7
+ Revision: 1202770
- Update to version 1.28.1
- Revert to last version as 1.28.0 is an unstable release
- Updated to version 1.28.0

* Wed Oct 25 2017 mjack <mjack> 1:1.27.2-1.mga7
+ Revision: 1173745
- Updated to version 1.27.2
- Rediffed patch: CVE-2014-9645.patch

* Thu Sep 21 2017 tv <tv> 1:1.26.2-1.mga7
+ Revision: 1156732
- new release
- rediff -Os patch
- drop merged patch
- use new build macros (thus fixing build)

* Thu Aug 04 2016 luigiwalser <luigiwalser> 1:1.24.2-2.mga6
+ Revision: 1044429
- add upstream patch to fix CVE-2016-6301

* Fri Mar 18 2016 luigiwalser <luigiwalser> 1:1.24.2-1.mga6
+ Revision: 992836
- 1.24.2
- remove upstream patch 20

* Mon Mar 14 2016 luigiwalser <luigiwalser> 1:1.24.1-2.mga6
+ Revision: 990565
- add upstream patches to fix CVE-2016-2147 and CVE-2016-2148

* Sat Dec 26 2015 luigiwalser <luigiwalser> 1:1.24.1-1.mga6
+ Revision: 915270
- 1.24.1

* Wed Oct 28 2015 luigiwalser <luigiwalser> 1:1.23.2-2.mga6
+ Revision: 896066
- add upstream patch to fix segfault in unzip

* Sat Jul 25 2015 blino <blino> 1:1.23.2-1.mga6
+ Revision: 857328
- 1.23.2
- remove merged/fixed patches

* Mon Jan 26 2015 luigiwalser <luigiwalser> 1:1.22.1-5.mga5
+ Revision: 812345
- add upstream patch to fix CVE-2014-9645

* Wed Oct 15 2014 umeabot <umeabot> 1:1.22.1-4.mga5
+ Revision: 738800
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1:1.22.1-3.mga5
+ Revision: 678252
- Mageia 5 Mass Rebuild

* Tue Aug 19 2014 luigiwalser <luigiwalser> 1:1.22.1-2.mga5
+ Revision: 665667
- add upstream patch to fix CVE-2014-4607

* Fri Feb 14 2014 luigiwalser <luigiwalser> 1:1.22.1-1.mga5
+ Revision: 591030
- 1.22.1

* Tue Nov 12 2013 tv <tv> 1:1.21.1-3.mga4
+ Revision: 550841
- patch 17: uses -Os
- disable uClibc build (trades 41k of overhead in busybox for saving 444k of
  dynamic uclibc in stage2: we don't want _both_ glibc & uclibc!)

* Sat Oct 19 2013 umeabot <umeabot> 1:1.21.1-2.mga4
+ Revision: 528921
- Mageia 4 Mass Rebuild

* Sat Jun 29 2013 fwang <fwang> 1:1.21.1-1.mga4
+ Revision: 448336
- new version 1.21.1

* Fri Jan 11 2013 umeabot <umeabot> 1:1.20.2-2.mga3
+ Revision: 347231
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jul 17 2012 rtp <rtp> 1:1.20.2-1.mga3
+ Revision: 271832
- bump dep on uClibc to get suitable headers
+ luigiwalser <luigiwalser>
- 1.20.2
- try different patches to not use missing header
- add BuildRequires kernel-userspace-headers and upstream patch to fix build
- re-diff patch from upstream to fix CVE-2011-2716

* Fri Jan 06 2012 shlomif <shlomif> 1:1.19.3-1.mga2
+ Revision: 192380
- New busybox version - 1.19.3

* Wed Apr 13 2011 tv <tv> 1:1.18.4-1.mga1
+ Revision: 84497
- drop patches 100-103 (merged upstream)
- new release

* Thu Jan 27 2011 erwan <erwan> 1:1.18.2-2.mga1
+ Revision: 42223
- Fixing typo
- Rebuild
- Adding latest patches

* Thu Jan 27 2011 erwan <erwan> 1:1.18.2-1.mga1
+ Revision: 42215
- imported package busybox


* Mon Nov 29 2010 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.17.2-2mdv2011.0
+ Revision: 603140
- update versioned uclibc buildrequires
- accurate GPL version
- update minimal config

  + Eugeni Dodonov <eugeni@mandriva.com>
    - Updated to 1.17.2.

* Tue Feb 09 2010 Eugeni Dodonov <eugeni@mandriva.com> 1:1.16.0-2mdv2010.1
+ Revision: 502912
- Enable new mkfs.ext2 plugin.

* Thu Feb 04 2010 Eugeni Dodonov <eugeni@mandriva.com> 1:1.16.0-1mdv2010.1
+ Revision: 500869
- Add missing signature file.
- Update to 1.16.0.
  Rediff P12.

* Thu Dec 17 2009 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.15.3-1mdv2010.1
+ Revision: 479817
- new release: 1.15.3
- enable CONFIG_FINDFS for minimal config (usable by mkinitrd)
- build both static & dynamic binaries
- don't disable -debug package with uclibc
- build a minimal busybox.minimal binary for use with mkinitrd
- hush: Enable support for local variables in functions.
- drop busybox.links from docs, same can be achieved with 'busybox --install'...
- update configuration
- don't disable EJECT with glibc, misunderstandting due to missing headers on my part..
- use new %%{uclibc_cc} macro

* Mon Nov 30 2009 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.15.2-2mdv2010.1
+ Revision: 471727
- update to work with new libified uclibc
- don't build deprecated msh shell
- don't force -march=i386 on x86 (P1)
- disable stack protector when building against uclibc
- disable CONFIG_EJECT if building against glibc (header breakage)
- make sure that  we don't try to use uclibc gcc wrapper when linking against
  static glibc
- disable debug packages if linking against uclibc
- fix proper prefix for uclibc gcc wrapper
- build with %%{optflags} & %%{ldflags}
- statically link against uClibc again (now on all platforms as well)

* Tue Nov 10 2009 Eugeni Dodonov <eugeni@mandriva.com> 1:1.15.2-1mdv2010.1
+ Revision: 464108
- Updated to 1.15.2.
  Drop P14 (msh is no more).

* Thu Aug 13 2009 Pascal Terjan <pterjan@mandriva.org> 1:1.14.3-2mdv2010.0
+ Revision: 416027
- Update config (so that we get back things like lsmod/rmmod/working modprobe)

* Wed Aug 12 2009 Frederik Himpe <fhimpe@mandriva.org> 1:1.14.3-1mdv2010.0
+ Revision: 415670
- update to new version 1.14.3

* Fri Jun 26 2009 Eugeni Dodonov <eugeni@mandriva.com> 1:1.14.2-1mdv2010.0
+ Revision: 389334
- Updated to 1.14.2

* Thu Jun 11 2009 Eugeni Dodonov <eugeni@mandriva.com> 1:1.14.1-1mdv2010.0
+ Revision: 385186
- Updated to 1.14.1

* Sun Mar 22 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.13.3-1mdv2009.1
+ Revision: 360094
- Updated to version 1.13.3

* Tue Jan 27 2009 Jérôme Soyer <saispo@mandriva.org> 1:1.13.2-1mdv2009.1
+ Revision: 334151
- New upstream release

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild early 2009.0 package (before pixel changes)

* Fri May 16 2008 Oden Eriksson <oeriksson@mandriva.com> 1:1.6.1-5mdv2009.0
+ Revision: 208121
- added P2 in an attempt to fix #40789

* Tue Mar 25 2008 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.6.1-4mdv2008.1
+ Revision: 189835
- build unlzma
- dump full paths for busybox function wrappers to busybox.list and package it
  as it may come in handy

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1:1.6.1-3mdv2008.1
+ Revision: 140691
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Sep 12 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.6.1-3mdv2008.0
+ Revision: 84638
- Enable loadkmap and dumpkmap, needed for example when setting up a
  initrd for luks encrypted root and you need to change keyboard layout
  etc. to type passwords, from Rapha?\195?\171l Gertz <rapsys@free.fr>.

* Fri Aug 31 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.6.1-2mdv2008.0
+ Revision: 76912
- Fixed build with uClibc.

  + Thierry Vignaud <tv@mandriva.org>
    - update description

* Wed Aug 22 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.6.1-1mdv2008.0
+ Revision: 68750
- Updated to version 1.6.1, with available official patches.

* Fri Jun 08 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.5.1-3mdv2008.0
+ Revision: 37519
- Disabled deprecated DEVFSD support, as reported by Olivier Blin on
  cooker ML.
- Rename busybox-1.5.1.config to busybox.config, cosmetic change to
  avoid rename of file between each version update causing diff to
  be "lost" on svn diff output.

* Mon Jun 04 2007 Christiaan Welvaart <spturtle@mandriva.org> 1:1.5.1-2mdv2008.0
+ Revision: 35159
- do not use uClibc for ppc

* Wed May 23 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1:1.5.1-1mdv2008.0
+ Revision: 30257
- Updated to 1.5.1.

  + Per Øyvind Karlsen <peroyvind@mandriva.org>
    - build against uclibc on x86_64 too
    - drop 'make dep' as it's not needed anymore
    - forgot signature
    - new release: 1.4.2


* Wed Dec 13 2006 Christiaan Welvaart <cjw@daneel.dyndns.org>
+ 2006-12-13 21:37:32 (96563)
- use glibc for ppc build

* Wed Dec 13 2006 Christiaan Welvaart <cjw@daneel.dyndns.org>
+ 2006-12-13 21:31:42 (96560)
Import busybox

* Sat Apr 22 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.1.2-1mdk
- 1.1.2
- fix --with options

* Tue Apr 11 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.1.1-3mdk
- fix buildrequires

* Fri Apr 07 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.1.1-1mdk
- New release 1.1.1
- regenerate config
- better macro for uclibc

* Wed Sep 07 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.01-2mdk
- fix build on x86_64

* Thu Sep 01 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.01-1mdk
- 1.01
- %%mkrel

* Wed Apr 27 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.00-3mdk
- don't use uclibc on sparc, seems to be broken

* Tue Mar 08 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.00-2mdk
- rebuild against new uClibc
- use cpu optimizations

* Fri Dec 24 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.00-1mdk
- 1.00
- regenerate config (S2)
- cosmetics

* Tue Jan 06 2004 Jaco Greeff <jaco@mandrake.org> 1.00-0.pre5.1mdk
- 1.00-pre5
- Re-generated config to cater for new options since pre4