Age | Commit message (Collapse) | Author | Files |
|
When you run devtool build, you need to have the pkgdata written out at
the end, so that if what you're adding is a library and the next thing
you add is something that depends on that library, the necessary
information to map the dependency back to the recipe is present. In
practical terms all this means is we need do_packagedata to run in
addition to do_populate_sysroot.
This does mean that do_package needs to run which wasn't running before,
and that means that the few package QA tests that run within do_package
such as installed-vs-shipped will now be run. This may be a bit
bothersome, and prompted a fix for one of our oe-selftest tests as a
result, but I don't see an easy way around it. Ultimately if you care
about using the recipe in an image you'll need to fix any such errors
anyway.
Fixes [YOCTO #8887].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Add a variable SDK_INCLUDE_PKGDATA which you can set to "1" to include
pkgdata for all recipes in the world target. There are a couple of uses
for this:
1) If you use "devtool add" to add a recipe that builds something which
depends on anything in world, the dependency can then be correctly
mapped to the recipe providing it and that recipe can be added to
DEPENDS, since we have the pkg-config and shared library dependency
data within pkgdata.
2) You'll be able to search for these recipes and any files they
package for the target with "devtool search" since that also uses
pkgdata
This of course assumes you've tailored world through EXCLUDE_FROM_WORLD
to only include recipes you'd want built in your distro, but I think
that's a reasonable assumption; failing that there is a
WORLD_PKGDATA_EXCLUDE variable that you can set to exclude any recipes
you don't want.
Note that this patch relies on functionality implemented in a recent
BitBake patch and will not work without it.
Implements [YOCTO #8600].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
These patches have revealed issues with linux kernel headers which has
been proposed upstream but hasnt been applied yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
gettext.m4 macro does not detect musl triplets and falls back to
${libdir}/locale
It ends up with lot of packging warning
"files installed but not packaged"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
base ld is used during link phase and since its x86 so it
works mostly, however it can cause problems depending upon
build host. During cross build we should use cross linker
Fixes errors e.g.
ld -shared -m elf_i386 --hash-style=gnu -T
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/work/i586-oe-linux/syslinux/6.03-r0/syslinux-6.03/com32/lib/i386/elf.ld
-soname libcom32.c32 -o libcom32.elf zlib/adler32.o zlib/compress.
o zlib/crc32.o zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o
zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o sys/zfile.o
sys/zfopen.o libpng/png.o libpng/pngset.o libpng/pngget.o
libpng/pngrutil.o libpng/pngtrans.o
libpng/pngwutil.o libpng/pngread.o libpng/pngrio.o libpng/pngwio.o
libpng/pngwrite.o libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o
libpng/pngerror.o libpng/pngpread.o jpeg/tinyjpeg.o jpeg/jidctflt.o
jpeg/decode1.o jpeg/decode3.o jpe
g/rgb24.o jpeg/bgr24.o jpeg/yuv420p.o jpeg/grey.o jpeg/rgba32.o
jpeg/bgra32.o pci/cfgtype.o pci/scan.o pci/bios.o pci/readb.o
pci/readw.o pci/readl.o pci/writeb.o pci/writew.o pci/writel.o
sys/vesacon_write.o sys/vesaserial_write.o sys/ve
sa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o
sys/vesa/alphatbl.o sys/vesa/screencpy.o sys/vesa/fmtpixel.o
sys/vesa/i915resolution.o syslinux/reboot.o syslinux/keyboard.o
syslinux/version.o syslinux/pxe_get_cached.o syslinux/pxe_get_nic.o
syslinux/pxe_dns.o syslinux/video/fontquery.o
syslinux/video/reportmode.o syslinux/addlist.o syslinux/freelist.o
syslinux/memmap.o syslinux/movebits.o syslinux/shuffle.o
syslinux/shuffle_pm.o syslinux/shuffle_rm.o syslinux/bios$oot.o
syslinux/zonelist.o syslinux/dump_mmap.o syslinux/dump_movelist.o
syslinux/run_default.o syslinux/run_command.o syslinux/cleanup.o
syslinux/localboot.o syslinux/runimage.o syslinux/loadfile.o
syslinux/floadfile.o syslinux/zloadfile$o syslinux/load_linux.o
syslinux/initramfs.o syslinux/initramfs_file.o
syslinux/initramfs_loadfile.o syslinux/initramfs_archive.o sys/libansi.o
sys/gpxe.o atexit.o onexit.o abort.o
| ld: zlib/deflate.o: unrecognized relocation (0x2b) in section `.text'
| ld: final link failed: Bad value
| make[4]: *** [libcom32.elf] Error 1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
This issue has been seen in multiple times e.g.
http://patchwork.openembedded.org/patch/103083/
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg72513.html
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Clang finds overflows when comparison is done between an unsigned char
and a integer constant. So explicitly typecast the constant before
comparison
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Define _POSIX_C_SOURCE if not defined
Add sockaddr_un* to sockaddr* typecast to make compiler happy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Configure looks for error_t in errno.h and musl does not define error_t
if its not defined then configure emits a definition to be used, now we
also use standalone argp implementation from glibc on musl based systems
which defines this in argp.h as well so now we have it defined twice
and errors like
|
/a/builder/mnt/build-oe/tmp-musl/sysroots/raspberrypi2/usr/include/argp.h:40:13:
error: cannot combine with previous 'int' declaration specifier
| typedef int error_t;
| ^
| ../config.h:257:17: note: expanded from macro 'error_t'
| #define error_t int
| ^
| 1 error generated.
are seen. argp.h definition is conditional on __error_t_defined which is
true here so lets define it on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
It did differentiate on features in libc but assumed always glibc
this patch make that assumption clear
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
changes are here
http://mailman.uclibc-ng.org/pipermail/devel/2016-January/000665.html
Drop upstreamed patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
needs a rpc implementation
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
strol_l is not available on musl
delete charset.alias as well its not needed
Use internal gc function on musl
We get errors on certain functions not being available in boeheme gc
when built with musl. Therefore use the internal versions
e.g.
Undefined gc_set_finalizer_notifier
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Its used in several packages
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
We have rootfs intercepts which fail on musl because ld.so on musl is an
absolute symlink to /usr/lib/libc.so and then it fails to load when run
with qemu user mode.
Fixes rootfs failures like
WARNING: The postinstall intercept hook 'update_pixbuf_cache' failed
(exit code: 255)! See log for details!
WARNING: The postinstalls for the following packages will be postponed
for first boot: libgdk-pixbuf-2.0-loader-jpeg li
bgdk-pixbuf-2.0-loader-png libgdk-pixbuf-2.0-loader-gif
libgdk-pixbuf-2.0-loader-xpm
WARNING: [log_check] core-image-sato: found a warning message in the
logfile (keyword 'WARNING:'):
[log_check] WARNING: The postinstall intercept hook
'update_pixbuf_cache' failed (exit code: 255)! See log for details!
WARNING: [log_check] core-image-sato: found a warning message in the
logfile (keyword 'WARNING:'):
[log_check] WARNING: The postinstalls for the following packages will be
postponed for first boot: libgdk-pixbuf-2.0-lo
ader-jpeg libgdk-pixbuf-2.0-loader-png libgdk-pixbuf-2.0-loader-gif
libgdk-pixbuf-2.0-loader-xpm
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
pass --hash-style explicitly to linker
and ensure that mips does not use gnu hash style
This inoculates fts when compiler does not pass
hash style option e.g. clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
enable largefile support if its in DISTRO_FEATURES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
nss's build system assumes that cdefs.h is always available on linux
which is not the case with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fix error like below
| apmd.c:372:41: error: use of undeclared identifier '__WCOREFLAG'
| status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;
| ^
| apmd.c:392:41: error: use of undeclared identifier '__WCOREFLAG'
| status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
parallel build patch was removing dependencies on .c files mistakenly
just adding src/yacc_config.h to dependencies in existing rule should
have fixed the original build race
include sys/types.h in lex_config.l for getting u_long definition
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fixes errors e.g.
vmcore-dmesg/vmcore-dmesg.c:370:32: error: unknown type name 'loff_t'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
systemd on musl doesn't yet work even though we have patches to make it
compile it fails to run, therefore lets skip building it for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Doesnt build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
let musl depend on these headers so they are staged along with libc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
This was not only getting included for libc5 but also for not-glibc libc
implementations e.g. musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Helps compile with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fixes build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fix build with musl
uclibc and glibc dont agree on structure of the struct, musl rightly
adds padding elements, so when doing anonymous initialization struct
elements gets wrongly mapped on 64bit arches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
There are several BSD specific assumptions
and some GNU specific ones.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
It only considered linux-gnu hosts when cross compiling
here we add linux-musl to the mix as well
Fixes errors e.g.
1.28-r0/tar-1.28/src/tar.c:1351:5: error: 'SAVEDIR_SORT_INODE'
undeclared here (not in a function)
| SAVEDIR_SORT_INODE
| ^
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Makery hard sets CC to be some form of gcc, make it set only if CC
variable is absent in environment.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
backtrace is glibc only feature on linux so check for glibc before using
it
Clangs clear_cache has different signature than gcc provided builtin
make it compatible for both
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
wait is not union per posix it is int
remove assumption about glibc is linux
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fix bug exposed on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Make backtrace() API's use conditional on glibc
this helps make libunwind compile on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Turn bzip2 support into a PACKAGECONFIG
zlibs is a must have and therefore add it to DEPENDS will make the build
consistent
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Fixes build failures with musl where gcc5 flags it used before
initialized.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Remove a glibc specific patch to be applied only for native version,
this is a dpkg-native specific patch needed for Centos 5.8, this patch
should be redone to be glibc independent for it to be applied to all
types of dpkg recipes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
musl relies on external rpc implemetation (libtirpc)
and exposed a bug in configury when checking for rlim_t
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
This patch is generic but is found during compiling watchdog with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
gzip 1.6 uses an older version of gnulib when cross compiling it treats
fseeko as broken since it cant do runtime checks for it during configure
this only shows up on musl since for glibc since it has special check
for gnu c library, so we aid the system by telling it that fflush on
stdin works well with musl
Use NO_ASM to avoid textrels
Delete charset.alias for musl which is again another issue in gnulib not
knowing musl platform
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
compar_fn_t, sigval_t and non-posix recursive mutexes
are not available in musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|