summaryrefslogtreecommitdiffstats
path: root/package/rpm
Commit message (Collapse)AuthorAgeFilesLines
* package: use SPDX short identifier for LGPLv2/LGPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2/LGPLv2+ is LGPL-2.0/LGPL-2.0+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2(\+)?/LGPL-2.0\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: bump version to 4.13.0.1 (security)Vicente Olivert Riera2017-03-152-4/+5
| | | | | | | | | | | | | | | | | Security fixes: - Fix several out of bounds reads in the OpenPGP parser - Fix handling of OpenPGP reserved tag (should be rejected) - Fix various crashes from malformed packages with invalid tags Release notes: http://rpm.org/wiki/Releases/4.13.0.1 This patch also switches from GitHub to rpm.org since the last one seems to be more up-to-date. [Peter: use RPM_VERSION_MAJOR as suggested by Jerzy Grzegorek] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* rpm: disable static build supportJames Knight2017-01-241-2/+3
| | | | | | | | | The RPM package requires dynamic linking support (dlfcn.h) for its capabilities related to plugins (and possibly more). The following commit adds a dependency to !BR2_STATIC_LIBS. Signed-off-by: James Knight <james.knight@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: add optional dependencies on elfutils and binutilsThomas Petazzoni2016-12-091-0/+10
| | | | | | | Since these are detected by the configure script, we should explicit their dependencies in rpm.mk. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: add patches to fix bfd.h related build issuesThomas Petazzoni2016-12-092-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds two patches to the rpm package to fix two separate but related build issues: - The first patch fixes a build that occurs when rpm is built after elfutils, but without binutils. In this case, dwarf.h is present, so rpm enables the build of a number of additional tools. But one of them uses bfd.h, provided by binutils, without checking for its existence. So the first patch fixes that by checking for bfd.h existence before enabling the tool. Fixes: http://autobuild.buildroot.net/results/810/810e24cab65f67d143da29c78c0f89d37a851cd7/build-end.log - The second patch fixes a build issue that occurs when rpm is built after both dwarf and binutils. In this case, bfd.h complains because config.h is not included. That's a weird and silly issue in bfd.h that the binutils developers don't want to fix, and you have to define PACKAGE or PACKAGE_VERSION before including bfd.h to use it outside of binutils. Fixes: http://autobuild.buildroot.net/results/362/362502f89631c9ba1d71906527674657ccff01ed/build-end.log Thanks a lot to James Knight <james.knight@rockwellcollins.com> for the initial investigation about the first issue. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: switch to version 4.13.0James Knight2016-11-3010-446/+64
| | | | | | | | | | | | | | | | | Switch from RPM5's implementation to rpm.org's more active stream [1]. The history of RPM and the common RPM5-fork is covered in an LWN article "Who maintains RPM?" [2]. Since rpm.org's implementation is used/ maintained on most RPM-based distributions as well as a series of other minor details (see [3]), the switch is being made. [1]: http://lists.buildroot.org/pipermail/buildroot/2015-August/137580.html [2]: https://lwn.net/Articles/196523/ [3]: https://patchwork.ozlabs.org/patch/668151/ Signed-off-by: James Knight <james.knight@rockwellcollins.com> [Thomas: adjust licensing.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: move busybox show others dependency to per-packageThomas Petazzoni2016-07-041-0/+2
| | | | | | | | | | | Having the BR2_PACKAGE_BUSYBOX_SHOW_OTHERS dependencies in package/Config.in is not very practical: it makes this file not very readable, and puts the dependency away from the package itself, which can sometimes be confusing. Therefore, this commit moves the dependency in each package Config.in file. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/rpm: needs gcc >= 5.x on SuperHBernd Kuhls2016-05-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compilation triggers an ICE in gcc with gcc 4.9 ../db/dist/../lock/lock_deadlock.c: In function '__lock_detect_rpmdb': ../db/dist/../lock/lock_deadlock.c:354:1: internal compiler error: Segmentation fault } ^ using this defconfig BR2_sh=y BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y BR2_PACKAGE_RPM=y Compiling rpm with gcc5 works fine using this defconfig: BR2_sh=y BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_GCC_VERSION_5_X=y BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y BR2_PACKAGE_RPM=y This patch adds a dependency to gcc >= 5.x to fix http://autobuild.buildroot.net/results/e4b/e4b7705e3e148755ae34d498c860a3b9b915e0b0/ [Peter: simpify kconfig, add comment explaining why] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* rpm: add hash fileGustavo Zacarias2015-07-281-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove non-lfs enabler patchesGustavo Zacarias2015-04-011-22/+0
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: use pkg-config to detect zlib and poptPeter Korsgaard2015-02-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/98b/98b70ea09ecef214f13a622dcb926e01a6d6f7d9/ http://autobuild.buildroot.net/results/d13/d1343c3be9710d5be3cf6e4369dd5c75102e7b92/ http://autobuild.buildroot.net/results/457/457d3d9231f1422b19ffbac6d4a6ab02c6d6c22f/ http://autobuild.buildroot.net/results/ed8/ed8efe3985e6b423e4c18f9c200aa042ccb9ed23/ And many more. Using --with-zlib=$(STAGING_DIR) causes the configure script to basically do a find $(STAGING_DIR) -name zlib.h to figure out the correct include path for zlib. That is normally ok, but if botan is enabled and built before rpm, then it installs a zlib.h header in $(STAGING_DIR)/usr/include/botan-1.10/botan which confuses this logic and causes configure to fail. Fix it by using --with-zlib=external instead which causes the configure script to use pkg-config to get the CFLAGS/LDFLAGS. Also do it for popt so we don't end up with a similar issue in the future. We unfortunately cannot do it for beecrypt as it doesn't install a .pc file. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/*: rename patches according to the new policyPeter Korsgaard2015-02-038-0/+0
| | | | | | | Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/rpm: use 'none' for location pathRomain Naour2015-02-011-2/+2
| | | | | | | | | The recognized keywords are: (location path: "external:internal:none") Signed-off-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/rpm: use external xz libraryRomain Naour2015-02-011-1/+4
| | | | | | | | | | | | | | | | | Internal xz backend is statically linked and need a static libintl library when BR2_NEEDS_GETTEXT_IF_LOCALE is set. But for a shared only build, there is no static libintl available in the sysroot. Use the external xz library provided by Buildroot instead of using the internal xz backend. Fixes: http://autobuild.buildroot.net/results/2c6/2c61562008418ff58fa3085a3342b0e304923073/ Signed-off-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/rpm: don't use sub-options for bzip2 and xz featuresRomain Naour2015-02-012-21/+3
| | | | | | | | | Allow enabling features depends on the relying packages. Add the old sub-options to Config.in.legacy. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/rpm: add gettext dependencyRomain Naour2015-02-012-0/+5
| | | | | | | | | | | | | | | rpm check for libintl library if BR2_NEEDS_GETTEXT_IF_LOCALE is set. checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl checking how to link with libintl... -lintl But the dependency on gettext package is missing to ensures reproducible builds. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/rpm: sort selected packagesRomain Naour2015-02-011-3/+3
| | | | | | | Sort selected packages alphabetically in Config.in Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: indentation cleanupJerzy Grzegorek2014-12-301-4/+8
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/rpm: add missing kconfig dependency to zlibYann E. MORIN2014-11-181-0/+1
| | | | | | | | | | | Since we build-depend on zlib, forcibly select it from kconfig. This went unnoticed so far, because we did select openssl which in turn selects zlib. But rpm needs zlib for itself, too. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/rpm: add missing dependency to opensslYann E. MORIN2014-11-171-1/+1
| | | | | | | | | | | | | | | | | We forcibly enable use of an extrernal openssl in rpm, so we must depend on it. openssl is correctly selected from kconfig, but there is no build-time dependency to it. It was not an issue so far, because openssl always sorts before rpm, so gets built before. Unless one wants to just build rpm to debug an autobuilder failure, that is. Add that build-time dependency to openssl. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-7/+7
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_INSTALL_TARGET_OPT into FOO_INSTALL_TARGET_OPTSThomas De Schampheleire2014-10-041-1/+1
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_INSTALL_TARGET_OPT. Sed command used: find * -type f | xargs sed -i 's#_INSTALL_TARGET_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: remove the trailing slash sign from <PKG>_SITE variableJerzy Grzegorek2014-07-311-1/+1
| | | | | | | | | | | | Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: add license informationGustavo Zacarias2014-07-021-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* rpm: needs mmuGustavo Zacarias2014-06-021-0/+2
| | | | | | | | Fixes: http://autobuild.buildroot.net/results/7fa/7fa2bd8e464c6708095ec4038b6f3d534b10dd82/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: remove the empty trailing line(s)Jerzy Grzegorek2014-01-041-2/+0
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: add <pkg>_VERSION_MAJOR variableJerzy Grzegorek2013-12-191-2/+3
| | | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: unify comments of toolchain option dependenciesThomas De Schampheleire2013-10-141-2/+2
| | | | | | | | This patch lines up the comments in Config.in files that clarify which toolchain options the package depends on. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* neon: replace 'choice' for XML library with two optionsThomas Petazzoni2013-08-281-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | The NEON library can either be compiled without XML support, with XML support provided by Expat, or with XML support provided by libxml2. Until now, to represent this, a Kconfig 'choice..endchoice' was used. Unfortunately, another package cannot 'select' one of the possible choices. So for example, a package such as 'rpm', or the to-be-added 'subversion' package could not select their dependencies, they had to do a 'depends on !BR2_PACKAGE_NEON_NOXML', which is not how Buildroot handles library dependencies in general. So, this commit replaces the 'choice...endchoice' block with simply two configuration options that are mutually exclusive. The option names are not changed, so no Config.in.legacy addition is needed. An hidden option BR2_PACKAGE_NEON_XML is provided, so that packages that need XML support in NEON but don't care whether it's provided by Expat or libxml2 can simply select BR2_PACKAGE_NEON_XML. The rpm package is updated accordingly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fix white spacesJerzy Grzegorek2013-07-201-4/+4
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix package headers to comply with coding styleAlexandre Belloni2013-06-061-0/+1
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* rpm: needs threads supportGustavo Zacarias2012-07-041-1/+5
| | | | | | | | Because beecrypt needs threads rpm does too since it's a mandatory dependency. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rpm: Fix automagic dependency on opensslMarkos Chandras2012-04-041-0/+1
| | | | | Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* packages: remove redundant AUTORECONF=NO declarationsGustavo Zacarias2012-03-111-2/+0
| | | | | | | [Peter: handle libgtk2 as well] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rpm: use external (BR versions) of file and pcrePeter Korsgaard2011-11-141-2/+16
| | | | | | | | Saves space in rootfs, and fixes build issues (internal pcre needs C++ support for unit test, internal file breaks with incompatible file versions on host). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rpm: only show xz dependency comment if enabledPeter Korsgaard2011-10-111-2/+4
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from AUTOTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: apply libtool patch where possiblePeter Korsgaard2011-02-171-1/+0
| | | | | | | | | | Now that we have libtool-2.2.x patch support, we can get rid of a bunch of _LIBTOOL_PATH = NO, fixing (potential) cross link issues. Notice: php not changed, as it uses a very old 1.5 version for the embedded sqlite, where our buildroot-libtool-v1.5.patch doesn't apply. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* toolchain: rework C++ optionsThomas Petazzoni2010-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Instead of having BR2_GCC_CROSS_CXX and BR2_INSTALL_LIBSTDCPP, with BR2_GCC_CROSS_CXX not being visible (and therefore being useless), let's just keep BR2_INSTALL_LIBSTDCPP to enable C++ in the toolchain and install C++ libraries on the target. We also take that opportunity to make BR2_INSTALL_LIBSTDCPP an hidden option, which is selected by an option in Buildroot toolchain support or an option in External toolchain support, just as we did for other toolchain features. Some work definitely remains to be done : - The name BR2_INSTALL_LIBSTDCPP is ugly, but we keep it for the moment in order to avoid changing all packages. - We should clarify the other language-related options (Fortran, Java, Objective-C, etc.). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove support for shared configuration cacheThomas Petazzoni2010-11-051-2/+0
| | | | | | | | | | | | | | | | | The configuration cache shared between packages, while being in principle a nice idea to speed-up the configuration of packages by avoiding repetitive identical checks, turned out to be unreliable due to the subtle differences between similar but not identical checks in different packages. After spending some time trying to fix those, we concluded that supporting the shared configuration cache is definitely too hard and too unreliable, and that we'd better get rid of it altogether. This patch therefore removes the shared configuration cache infrastructure and usage. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rpm: needs XML support in libneonPeter Korsgaard2010-01-181-3/+5
| | | | | | | | | RPM-5.2.0 needs the optional XML support in libneon. Restructure kconfig dependencies to ensure rpm can only be selected if libneon with XML support (in addition to SSL + ZLIB) is enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rpm: fix build with !LFSPeter Korsgaard2010-01-181-0/+22
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Bumped rpmNigel Kukard2009-12-2511-65/+431
|
* rpm: fix build with BR2_CONFIG_CACHE, fix CFLAGSPeter Korsgaard2009-11-231-2/+4
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Getting rid of a bit more configure options that's been centralized.Thomas Lundquist2009-01-181-2/+1
|
* * Select zlib support in neon for rpmNigel Kukard2008-12-311-1/+2
|
* * Bump rpm to 5.1.6Nigel Kukard2008-12-316-38/+54
| | | | | | - Remove patches comitted upstream - Exclude tools we don't need - Fix bundled magic mime data
OpenPOWER on IntegriCloud