Age | Commit message (Collapse) | Author |
|
|
|
|
|
Iterating over a dict made the output a bit random. Fixed by sorting
the lines before appending to the final array.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
This is a bit of a hacky fix but for now remove the revision from the archived
tarball. In the future, we need to expose this filename so the translator can
use it.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Accidently forgot to pass the arguments to make.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
These should expand to nothing as RPM builds don't run in a sysroot.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Do the variable fixups for RPM-land first thing, so that the revised values are
available everywhere.
This means that the file lists don't need to be munged to remove absolute paths,
so delete rpm_macrofy_files().
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Set all paths variables where there is a corresponding RPM macro (ie ${bindir}
and %{_bindir}) so macros get used instead of absolute paths.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Using %{buildroot} for D so that hand-coded do_install() functions work
correctly.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
By attempting to set a variable to ${EXTRA_OECONF} it ended up being expanded
when the function was evaluated, resulting in literal tabs appearing in the
source for recipes which use tabs in that variable. Split the variable name
into two strings so it doesn't get expanded.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
It's useful to be able to manipulate the spec file before it gets written, for
example to add tags that BitBake doesn't support directly.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
For example assuming that the configure step is as simple as %configure is wrong
as there may have been critial commands added using _append or _prepend.
Instead redefine the functions during output.
The output is sub-optimal but it will be cleaned up later.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
The attempt to clean up license names to use SPDX names was buggy (didn't handle
nested groups and logical or), and should be implemented by fixing the metadata
itself.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Some variables are interesting if they have a value, otherwise they're not (for
example, CPPFLAGS). Add a variable SRPM_MAYBE_EXPORT to list these variables.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
If a package requires it's own tools to be built when cross-compiling we end up
with the situation where PN depends on PN-native. When translating to spec
everything is native, so this isn't required, so remove these self-dependencies.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
The distro can disable -dbg package, so the translator doesn't need to.
This reverts commit d4c6477b8164ecb08a3c2c10c7087064b474d405.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
As the distro now removes PN-staticdev, and the file listings are part of the
distro too, there's no need to specially merge them.
This reverts commit dc60fb85828e6158300cdb02f993972c3b82ab0c.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
|
|
Remove BBFILES as meta-translator doesn't have any recipes.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
RPM is happy with either, but existing spec files tend to prefer capitalised
over upper-case.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
If a subpackage doesn't have a summary or description, use the source
summary/description instead of ".".
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
No need to split and then join when you can tell split to split just once.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Now that package_srpm handles the autotool-simplification for us, remove the
overriding autotools.bbclass so that native recipes can build.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Packager is unneccessary meta information in auto generated specs, and in
the instance of Clear Linux OS For Intel Architecture, we do not support or
use the Packager field in our RPM spec files.
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
Most RPM specs justify these fields so that the values line up on
their left-hand side, making it easier to work with. This commit
emulates the same effect (using spaces) to match better standards.
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
We now explicitly disable -staticdev packages from appearing in the
emitted RPM spec, and the file listings of -staticdev packages are
now automatically combined into the main -dev package if it exists.
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
RPM builds are able to automatically create their own "debug" (dbg) packages
so we do not need to handle these at all within the RPM spec.
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
When encountering autotools packages, we emit functional code usable
immediately in SRPM specs, without the need to edit these functions
for correctness.
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
|
|
Strip bitbake parameters from URLs when using them in Source tags, as RPM's URL
parser isn't compliant and thinks the last word is the name of the tarball.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Using %setup without any Source tags results in a fatal rpmbuild error.
Signed-off-by: Ross Burton <ross.burton@intel.com>
|