Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: [PATCH] util-linux: 2.28.1 -> 2.29
From: Burton, Ross @ 2016-12-19 21:53 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: OE-core
In-Reply-To: <CAJTo0La1zRwQspKAgPvRxaTryEZSjSSwXf+O0XLadAe5p0VnDA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]

Definitely works here:

$ rm tmp-glibc/ -rf ; bitbake util-linux-native -C unpack
Parsing recipes: 100%
|#################################################################################################|
Time: 0:00:04
Parsing of 866 .bb files complete (0 cached, 866 parsed). 1321 targets, 68
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "debian-8"
TARGET_SYS        = "i586-oe-linux"
MACHINE           = "qemux86"
DISTRO            = "nodistro"
DISTRO_VERSION    = "nodistro.0"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-poky
meta-yocto-bsp
meta-selftest
workspace         = "mut:5484568d66cc8c888f5611970242e0689fc4d672"

NOTE: Tainting hash to force rebuild of task
virtual:native:/home/ross/Yocto/poky/meta/recipes-core/util-linux/
util-linux_2.29.bb, do_unpack
WARNING:
virtual:native:/home/ross/Yocto/poky/meta/recipes-core/util-linux/util-linux_2.29.bb.do_unpack
is tainted from a forced run:00
Initialising tasks: 100%
|##############################################################################################|
Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 100 tasks of which 91 didn't need to be
rerun and all succeeded.

Ross

On 19 December 2016 at 21:47, Burton, Ross <ross.burton@intel.com> wrote:

>
> On 19 December 2016 at 21:42, Trevor Woerner <twoerner@gmail.com> wrote:
>
>> A fresh build in a new directory fails readily:
>>
>
> Ah, interesting, because I can't replicate that. :/
>
> Can you share the do_configure log?
>
> Ross
>

[-- Attachment #2: Type: text/html, Size: 3113 bytes --]

^ permalink raw reply

* Re: [PATCH] util-linux: 2.28.1 -> 2.29
From: Trevor Woerner @ 2016-12-19 22:01 UTC (permalink / raw)
  To: Burton, Ross, Patches and discussions about the oe-core layer
In-Reply-To: <CAJTo0LYuH==F4jbo3chSbaJHkCu8VWmOS+PxT3A6qwTzJoxwXA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

On Mon, Dec 19, 2016 at 4:53 PM, Burton, Ross <ross.burton@intel.com> wrote:
> Definitely works here:

:-(

>> Can you share the do_configure log?

sure, attached

[-- Attachment #2: log.do_configure --]
[-- Type: application/octet-stream, Size: 25542 bytes --]

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: Considering setscene task: ['texinfo-dummy-native', 'do_populate_sysroot']
DEBUG:   considering dependency: ['libtool-native', 'do_populate_sysroot']
DEBUG: Considering setscene task: ['m4-native', 'do_populate_sysroot']
DEBUG:   considering dependency: ['autoconf-native', 'do_populate_sysroot']
DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
NOTE: Executing ACLOCAL="aclocal --system-acdir=/z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/aclocal-copy/" autoreconf --verbose --install --force --exclude=autopoint -I /z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/util-linux-2.29/m4/
NOTE: Running ../util-linux-2.29/configure  --build=x86_64-linux 		  --host=x86_64-linux 		  --target=x86_64-linux 		  --prefix=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr 		  --exec_prefix=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr 		  --bindir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/bin 		  --sbindir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/sbin 		  --libexecdir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec 		  --datadir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/share 		  --sysconfdir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/etc 		  --sharedstatedir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/com 		  --localstatedir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/var 		  --libdir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib 		  --includedir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/include 		  --oldincludedir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/include 		  --infodir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/share/info 		  --mandir=/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		   --disable-use-tty-group                        --disable-makeinstall-chown                        --enable-kill --enable-last --enable-mesg --enable-partx                        --enable-raw --enable-reset --disable-login                        --disable-vipw --disable-newgrp --disable-chfn-chsh                        --enable-write --enable-mount                        --enable-libuuid --enable-libblkid --enable-fsck                        --disable-minix --disable-bfs --without-udev                        usrsbin_execdir='/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/sbin'                               --disable-fallocate 			     --disable-use-tty-group   --disable-setpriv --disable-su --disable-runuser --without-python --disable-pylibmount --without-readline  --without-systemd --without-systemdsystemunitdir --disable-nls 
automake (GNU automake) 1.15
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
AUTOV is 1
autoreconf: Entering directory `.'
autoreconf: running: aclocal --system-acdir=/z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/aclocal-copy/ -I /z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/util-linux-2.29/m4/ --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/autoconf --include=/z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/util-linux-2.29/m4/ --force
autoreconf: running: /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/autoheader --include=/z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/util-linux-2.29/m4/ --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:13: installing 'config/compile'
configure.ac:14: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
autoreconf: running: gnu-configize
autoreconf: Leaving directory `.'
configure: loading site script /z/qemu/openembedded-core/meta/site/endian-little
configure: loading site script /z/qemu/openembedded-core/meta/site/common-linux
configure: loading site script /z/qemu/openembedded-core/meta/site/common-glibc
configure: loading site script /z/qemu/openembedded-core/meta/site/x86_64-linux
configure: loading site script /z/qemu/openembedded-core/meta/site/common
configure: loading site script /z/qemu/build/tmp-glibc/work/x86_64-linux/util-linux-native/2.29-r0/aclocal-copy/ncurses_config
checking for x86_64-linux-gcc... gcc 
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc  accepts -g... yes
checking for gcc  option to accept ISO C89... none needed
checking whether gcc  understands -c and -o together... yes
checking how to run the C preprocessor... gcc  -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking dependency style of gcc ... none
checking whether make supports nested variables... (cached) yes
checking for gcc  option to accept ISO C99... -std=gnu99
checking for gcc  -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking whether byte ordering is bigendian... (cached) no
checking whether compiler handles -fno-common... yes
checking whether compiler handles -Wall... yes
checking whether compiler handles -Werror=sequence-point... yes
checking whether compiler handles -Wextra... yes
checking whether compiler handles -Wextra-semi... no
checking whether compiler handles -Wembedded-directive... no
checking whether compiler handles -Wmissing-declarations... yes
checking whether compiler handles -Wmissing-parameter-type... yes
checking whether compiler handles -Wmissing-prototypes... yes
checking whether compiler handles -Wno-missing-field-initializers... yes
checking whether compiler handles -Wredundant-decls... yes
checking whether compiler handles -Wsign-compare... yes
checking whether compiler handles -Wtype-limits... yes
checking whether compiler handles -Wuninitialized... yes
checking whether compiler handles -Wunused-but-set-parameter... yes
checking whether compiler handles -Wunused-but-set-variable... yes
checking whether compiler handles -Wunused-parameter... yes
checking whether compiler handles -Wunused-result... yes
checking whether compiler handles -Wunused-variable... yes
checking whether compiler handles -Wnested-externs... yes
checking whether compiler handles -Wpointer-arith... yes
checking whether compiler handles -Wstrict-prototypes... yes
checking whether compiler handles -Wformat-security... no
checking whether compiler handles -Wimplicit-function-declaration... yes
checking whether compiler handles -Wno-clobbered... yes
checking whether compiler handles -Wno-unused-parameter... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc  -std=gnu99... ld 
checking if the linker (ld ) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for ld  option to reload object files... -r
checking for x86_64-linux-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-linux-ar... ar
checking for archiver @FILE support... @
checking for x86_64-linux-strip... strip
checking for x86_64-linux-ranlib... ranlib
checking command to parse nm output from gcc  -std=gnu99 object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc  -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc  -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc  -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc  -std=gnu99 static flag -static works... no
checking if gcc  -std=gnu99 supports -c -o file.o... yes
checking if gcc  -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc  -std=gnu99 linker (ld  -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking linker version script flag... --version-script
checking if version scripts can use complex wildcards... yes
checking for x86_64-linux-pkg-config... no
checking for pkg-config... /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for xsltproc... /usr/bin/xsltproc
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether to enable assertions... yes
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc  -std=gnu99... ld  -m elf_x86_64
checking if the linker (ld  -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether to use NLS... no
checking for linux/compiler.h... no
checking for linux/blkpg.h... yes
checking for linux/major.h... yes
checking asm/io.h usability... no
checking asm/io.h presence... no
checking for asm/io.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for inttypes.h... (cached) yes
checking linux/btrfs.h usability... yes
checking linux/btrfs.h presence... yes
checking for linux/btrfs.h... yes
checking linux/cdrom.h usability... yes
checking linux/cdrom.h presence... yes
checking for linux/cdrom.h... yes
checking linux/falloc.h usability... yes
checking linux/falloc.h presence... yes
checking for linux/falloc.h... yes
checking linux/watchdog.h usability... yes
checking linux/watchdog.h presence... yes
checking for linux/watchdog.h... yes
checking linux/fd.h usability... yes
checking linux/fd.h presence... yes
checking for linux/fd.h... yes
checking linux/raw.h usability... yes
checking linux/raw.h presence... yes
checking for linux/raw.h... yes
checking linux/tiocl.h usability... yes
checking linux/tiocl.h presence... yes
checking for linux/tiocl.h... yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking linux/securebits.h usability... yes
checking linux/securebits.h presence... yes
checking for linux/securebits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking for stdint.h... (cached) yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking for stdlib.h... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/disk.h usability... no
checking sys/disk.h presence... no
checking for sys/disk.h... no
checking sys/disklabel.h usability... no
checking sys/disklabel.h presence... no
checking for sys/disklabel.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/signalfd.h usability... yes
checking sys/signalfd.h presence... yes
checking for sys/signalfd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/swap.h usability... yes
checking sys/swap.h presence... yes
checking for sys/swap.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timex.h usability... yes
checking sys/timex.h presence... yes
checking for sys/timex.h... yes
checking sys/ttydefaults.h usability... yes
checking sys/ttydefaults.h presence... yes
checking for sys/ttydefaults.h... yes
checking for sys/types.h... (cached) yes
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for unistd.h... (cached) yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking for linux/gsmmux.h... no
checking for security/pam_misc.h... yes
checking for security/openpam.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for struct termios.c_line... yes
checking for struct stat.st_mtim.tv_nsec... yes
checking whether _NL_TIME_WEEK_1STDAY is declared... yes
checking whether llseek is declared... no
checking whether lseek64 is declared... yes
checking whether environ is declared... yes
checking whether strsignal is declared... yes
checking whether TIOCGLCKTRMIOS is declared... yes
checking whether SOCK_CLOEXEC is declared... yes
checking whether SOCK_NONBLOCK is declared... yes
checking whether SO_PASSCRED is declared... yes
checking for __fpending... yes
checking for secure_getenv... yes
checking for __secure_getenv... no
checking for err... yes
checking for errx... yes
checking for fsync... yes
checking for utimensat... yes
checking for getdomainname... yes
checking for getdtablesize... yes
checking for getexecname... no
checking for getmntinfo... no
checking for getrlimit... yes
checking for getsgnam... yes
checking for inotify_init... yes
checking for jrand48... yes
checking for lchown... yes
checking for llseek... yes
checking for lseek64... yes
checking for mempcpy... yes
checking for mkostemp... yes
checking for nanosleep... yes
checking for ntp_gettime... yes
checking for personality... yes
checking for posix_fadvise... yes
checking for prctl... yes
checking for qsort_r... yes
checking for rpmatch... yes
checking for scandirat... yes
checking for setprogname... no
checking for setresgid... yes
checking for setresuid... (cached) yes
checking for sched_setattr... no
checking for sched_setscheduler... yes
checking for sigqueue... yes
checking for srandom... yes
checking for strnchr... no
checking for strndup... yes
checking for strnlen... yes
checking for sysconf... yes
checking for sysinfo... yes
checking for updwtmp... yes
checking for usleep... yes
checking for warn... yes
checking for warnx... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for openat... yes
checking for fstatat... yes
checking for unlinkat... yes
checking for ioperm... yes
checking for iopl... yes
checking for futimens... yes
checking for inotify_init1... yes
checking for open_memstream... yes
checking for reboot... yes
checking for clock_gettime... yes
checking for timer_create... no
checking for timer_create in -lrt... yes
checking for rtas_get_sysparm in -lrtas... no
checking for struct sockaddr.sa_len... no
checking for library containing socket... none required
checking for dirfd... yes
checking whether program_invocation_short_name is defined... yes
checking whether __progname is defined... yes
checking whether the target supports thread-local storage... yes
(cached) checking scanf string alloc modifiers... (%ms) yes
checking for openpty in -lutil... yes
checking for union semun... no
checking for loff_t... yes
checking wchar_t support... yes
checking for cpu_set_t... yes
checking for sighandler_t... yes
checking whether CPU_ALLOC is declared... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking ncursesw... (v6) yes
checking ncursesw/ncurses.h usability... yes
checking ncursesw/ncurses.h presence... yes
checking for ncursesw/ncurses.h... yes
checking for ncurses.h... (cached) yes
checking for use_default_colors in -lncursesw... yes
checking for resizeterm in -lncursesw... yes
checking for TINFO... yes
checking for syscall unshare... SYS_unshare
checking for unshare... yes
checking for syscall setns... SYS_setns
checking for setns... yes
checking for capng_apply in -lcap-ng... no
checking for crc32 in -lz... yes
checking for syscall prlimit64... SYS_prlimit64
checking for prlimit... yes
checking for syscall pivot_root... SYS_pivot_root
checking for LIBUSER... no
checking for syscall ioprio_set... SYS_ioprio_set
checking for syscall ioprio_get... SYS_ioprio_get
checking for syscall sched_getaffinity... SYS_sched_getaffinity
checking for syscall sched_setattr... SYS_sched_setattr
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libblkid/docs/Makefile
config.status: creating libblkid/docs/version.xml
config.status: creating libblkid/src/blkid.h
config.status: creating libfdisk/docs/Makefile
config.status: creating libfdisk/docs/version.xml
config.status: creating libfdisk/src/libfdisk.h
config.status: creating libmount/docs/Makefile
config.status: creating libmount/docs/version.xml
config.status: creating libmount/src/libmount.h
config.status: creating libsmartcols/docs/Makefile
config.status: creating libsmartcols/docs/version.xml
config.status: creating libsmartcols/src/libsmartcols.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

	util-linux  2.29

	prefix:            /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr
	exec prefix:       /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr

	localstatedir:     /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/var
	bindir:            /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/bin
	sbindir:           /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/sbin
	libdir:            /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib
	includedir:        /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/include
	usrbin_execdir:    ${exec_prefix}/bin
	usrsbin_execdir:   /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/sbin
	usrlib_execdir:    /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib

	compiler:          gcc  -std=gnu99
	cflags:            -isystem/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe
	suid cflags:       
	ldflags:           -L/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/z/qemu/build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1
	suid ldflags:      

	Python:            
	Python version:    
	Python libs:       

	Bash completions:  /z/qemu/build/tmp-glibc/sysroots/x86_64-linux/usr/share/bash-completion/completions
	Systemd support:   no
	Btrfs support:     yes
	Wide-char support: yes

	warnings:

 -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wimplicit-function-declaration

	Type 'make' or 'make <utilname>' to compile.

DEBUG: Shell function do_configure finished
DEBUG: Executing python function do_qa_configure
NOTE: Checking autotools environment for common misconfiguration
NOTE: Checking configure output for unrecognised options
DEBUG: Python function do_qa_configure finished
DEBUG: Executing shell function autotools_postconfigure
DEBUG: Shell function autotools_postconfigure finished

^ permalink raw reply

* Re: [PATCH] util-linux: 2.28.1 -> 2.29
From: Khem Raj @ 2016-12-19 22:12 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: Patches and discussions about the oe-core layer
In-Reply-To: <CAHUNapSAEd4zuvQCna+QOMxaGDFck5OQbjvsVe6hr9voN7o1=w@mail.gmail.com>

its detecting ncurses

checking ncursesw... (v6) yes
checking ncursesw/ncurses.h usability... yes
checking ncursesw/ncurses.h presence... yes
checking for ncursesw/ncurses.h... yes
checking for ncurses.h... (cached) yes
checking for use_default_colors in -lncursesw... yes
checking for resizeterm in -lncursesw... yes

but then not linking may be ?
Ross, can you check if its same for you.

On Mon, Dec 19, 2016 at 2:01 PM, Trevor Woerner <twoerner@gmail.com> wrote:
> On Mon, Dec 19, 2016 at 4:53 PM, Burton, Ross <ross.burton@intel.com> wrote:
>> Definitely works here:
>
> :-(
>
>>> Can you share the do_configure log?
>
> sure, attached
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


^ permalink raw reply

* Re: [PATCH][Morty] binutils-2.27.inc: Fix alignment frags for aarch64
From: Manjukumar Harthikote Matha @ 2016-12-19 21:29 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer
In-Reply-To: <CAJTo0LYYkQDxXC0Eh4Z9o1X9=HtnguaF0hUL_xLDQ3hymbEHsA@mail.gmail.com>



On 12/19/2016 05:05 AM, Burton, Ross wrote:
>
> On 19 December 2016 at 13:04, Burton, Ross <ross.burton@intel.com
> <mailto:ross.burton@intel.com>> wrote:
>
>     You'd marked it for morty, so I'd assumed that it wasn't for master.
>
>
> Ah just found the master version.  You can thank GMail's threading for
> that. :(
>
Hi Ross,

I sent v2 to master couple of days back, because the first patch I sent 
earlier wont apply cleanly on master.

Thanks
Manju

> Ross


^ permalink raw reply

* Re: [PATCH v2] wic: look for wks files in <layer>/wic
From: Khem Raj @ 2016-12-19 23:31 UTC (permalink / raw)
  To: Ed Bartosh; +Cc: Paul Eggleton, Patches and discussions about the oe-core layer
In-Reply-To: <1482151262-22674-1-git-send-email-ed.bartosh@linux.intel.com>

On Mon, Dec 19, 2016 at 4:41 AM, Ed Bartosh <ed.bartosh@linux.intel.com> wrote:
> Currently wic looks for wks files in
> <layer dir>/scripts/lib/wic/canned-wks/ directories.
> This path is too nested and doesn't look consistent with the
> naming scheme of layer directories.
>
> Added <layer>/wic directory to the list of paths
> to look for wks files.

Does it also affect documentation ?

>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> ---
>  scripts/lib/wic/engine.py | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
> index 5b10463..2adef2f 100644
> --- a/scripts/lib/wic/engine.py
> +++ b/scripts/lib/wic/engine.py
> @@ -52,6 +52,7 @@ def verify_build_env():
>
>  CANNED_IMAGE_DIR = "lib/wic/canned-wks" # relative to scripts
>  SCRIPTS_CANNED_IMAGE_DIR = "scripts/" + CANNED_IMAGE_DIR
> +WIC_DIR = "wic"
>
>  def build_canned_image_list(path):
>      layers_path = misc.get_bitbake_var("BBLAYERS")
> @@ -59,8 +60,10 @@ def build_canned_image_list(path):
>
>      if layers_path is not None:
>          for layer_path in layers_path.split():
> -            cpath = os.path.join(layer_path, SCRIPTS_CANNED_IMAGE_DIR)
> -            canned_wks_layer_dirs.append(cpath)
> +            for wks_path in (WIC_DIR, SCRIPTS_CANNED_IMAGE_DIR):
> +                cpath = os.path.join(layer_path, wks_path)
> +                if os.path.isdir(cpath):
> +                    canned_wks_layer_dirs.append(cpath)
>
>      cpath = os.path.join(path, CANNED_IMAGE_DIR)
>      canned_wks_layer_dirs.append(cpath)
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply

* Re: [PATCH 1/1] cdrtools-native: update 3.01 -> 3.02
From: Dengke Du @ 2016-12-20  1:43 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core
In-Reply-To: <CAJTo0LbuTPCrsjZhfwAhczEsN=nrwUrE33mojDLOocMxxT1WMw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

OK, thanks, I get it.


On 2016年12月19日 19:53, Burton, Ross wrote:
>
> On 19 December 2016 at 06:07, Dengke Du <dengke.du@windriver.com 
> <mailto:dengke.du@windriver.com>> wrote:
>
>     3.01a31 -> 3.02a07
>
>
> As the aXX releases are alpha releases for testing, is there a good 
> reason to switch to an alpha?  In general we ship releases, not previews.
>
> Ross


[-- Attachment #2: Type: text/html, Size: 1484 bytes --]

^ permalink raw reply

* Re: [PATCH V2 2/2] apr: fix off_t size can't match when configure and in target glibc
From: Dengke Du @ 2016-12-20  2:03 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core
In-Reply-To: <CAJTo0LaPw5z2W5-rx3DJrNj0w1APeTCsAhwGq8GEGC6_zAW4fg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]

Thank you for reminding, the following types were hardcoded in apr 
source code when cross compiling:

     pid_t     8

     ssize_t  8

     size_t    8

     off_t      8

I will send V3.


On 2016年12月19日 19:56, Burton, Ross wrote:
>
> On 19 December 2016 at 05:40, Dengke Du <dengke.du@windriver.com 
> <mailto:dengke.du@windriver.com>> wrote:
>
>     +I have send a discussing for the upstream, the maintainer said
>     the macro in
>     +APR designed with only any attention paid to the build platform,
>     considering
>     +cross compiling less, we can check the discussing from:
>
>
> Sigh...
>
> Have you verified that there are no other instances of that macros in 
> configure.ac <http://configure.ac>?  It's clear that it's broken by 
> design and should just be removed.
>
> Ross


[-- Attachment #2: Type: text/html, Size: 2163 bytes --]

^ permalink raw reply

* [PATCH 0/1] packagegroup-core-standalone-sdk-target: add libssp
From: Paul Eggleton @ 2016-12-20  3:47 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit e82a7f879419828b42b5cc71e6229c8235090f21:

  package: don't count every hardlink for PKGSIZE (2016-12-17 09:56:45 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib paule/libssp-sdk
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/libssp-sdk

Paul Eggleton (1):
  packagegroup-core-standalone-sdk-target: add libssp

 .../packagegroups/packagegroup-core-standalone-sdk-target.bb         | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.5.5



^ permalink raw reply

* [PATCH 1/1] packagegroup-core-standalone-sdk-target: add libssp
From: Paul Eggleton @ 2016-12-20  3:47 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1482205653.git.paul.eggleton@linux.intel.com>

If you want to be able to use -fstack-protector then you need the
runtime support - you can either write this yourself or use libssp
supplied with GCC. If you're using GCC then it seems likely that you'd
just be using libssp, so include in the SDK by default; however use
RRECOMMENDS just in case it's been disabled or you aren't using GCC.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 .../packagegroups/packagegroup-core-standalone-sdk-target.bb         | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
index 274e11a..43fc599 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
@@ -12,3 +12,8 @@ RDEPENDS_${PN} = "\
     libstdc++-dev \
     ${LIBC_DEPENDENCIES} \
     "
+
+RRECOMMENDS_${PN} = "\
+    libssp \
+    libssp-dev \
+    "
-- 
2.5.5



^ permalink raw reply related

* [PATCH] shared-mime-info 1.6 -> 1.8
From: Zheng Ruoqin @ 2016-12-20  5:12 UTC (permalink / raw)
  To: openembedded-core

Upgrade shared-mime-info from 1.6 to 1.8

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
---
 meta/recipes-support/shared-mime-info/shared-mime-info_1.6.bb | 7 -------
 meta/recipes-support/shared-mime-info/shared-mime-info_1.8.bb | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)
 delete mode 100644 meta/recipes-support/shared-mime-info/shared-mime-info_1.6.bb
 create mode 100644 meta/recipes-support/shared-mime-info/shared-mime-info_1.8.bb

diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_1.6.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_1.6.bb
deleted file mode 100644
index 2cf5041..0000000
--- a/meta/recipes-support/shared-mime-info/shared-mime-info_1.6.bb
+++ /dev/null
@@ -1,7 +0,0 @@
-require shared-mime-info.inc
-
-SRC_URI += "file://parallelmake.patch \
-	    file://install-data-hook.patch"
-
-SRC_URI[md5sum] = "10abc5c4e6b22223ff05c3bd70ff9e8f"
-SRC_URI[sha256sum] = "b2f8f85b6467933824180d0252bbcaee523f550a8fbc95cc4391bd43c03bc34c"
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_1.8.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_1.8.bb
new file mode 100644
index 0000000..849d999
--- /dev/null
+++ b/meta/recipes-support/shared-mime-info/shared-mime-info_1.8.bb
@@ -0,0 +1,7 @@
+require shared-mime-info.inc
+
+SRC_URI += "file://parallelmake.patch \
+	    file://install-data-hook.patch"
+
+SRC_URI[md5sum] = "f6dcadce764605552fc956563efa058c"
+SRC_URI[sha256sum] = "2af55ef1a0319805b74ab40d331a3962c905477d76c086f49e34dc96363589e9"
-- 
2.7.4





^ permalink raw reply related

* [PATCH V3 1/2] Revert "subversion: fix "svnadmin create" fail on x86"
From: Dengke Du @ 2016-12-20  5:53 UTC (permalink / raw)
  To: ross.burton; +Cc: openembedded-core
In-Reply-To: <cover.1482212391.git.dengke.du@windriver.com>

This reverts commit cfe6f3e251240c9d9a70354be0501600357f0b87.

This is because the apr configure wrong, when the apr configure meets the
cross compiling, it pass 8 bytes to "off_t", in apr source code configure.in,
it was hardcoded:

	APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)

The macro "APR_CHECK_SIZEOF_EXTENDED" was defined in build/apr_common.m4,
it use the "AC_TRY_RUN" macro, this macro let the off_t to 8, when cross
compiling enable.

But in glibc on the x86 or multilib target the "off_t" was 4 bytes, so this
cases dismatch for softwares which use the apr.h, such as subversion, run this:

	svnadmin create test

It failed because the "APR_OFF_T_FMT" was "lld" in apr.h when apr configure,
but the "apr_off_t" was 4 bytes, in the apr source code: apr_snprintf.c

	i_quad = va_arg(ap, apr_int64_t);

When the function apr_vformatter meets "lld", it would use the above to parse,
but the above read 8 bytes, so the follow-up data go to wrong.

So we should configure the apr correct when cross compiling. I do this on the
following patchs.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 .../0001-fix-svnadmin-create-fail-on-x86.patch     | 56 ----------------------
 .../subversion/subversion_1.9.5.bb                 |  1 -
 2 files changed, 57 deletions(-)
 delete mode 100644 meta/recipes-devtools/subversion/subversion/0001-fix-svnadmin-create-fail-on-x86.patch

diff --git a/meta/recipes-devtools/subversion/subversion/0001-fix-svnadmin-create-fail-on-x86.patch b/meta/recipes-devtools/subversion/subversion/0001-fix-svnadmin-create-fail-on-x86.patch
deleted file mode 100644
index d440528..0000000
--- a/meta/recipes-devtools/subversion/subversion/0001-fix-svnadmin-create-fail-on-x86.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 09475e0befca8d120c957177ce8568fa2209a1a9 Mon Sep 17 00:00:00 2001
-From: Dengke Du <dengke.du@windriver.com>
-Date: Wed, 2 Nov 2016 11:09:44 +0800
-Subject: [PATCH] fix "svnadmin create" fail on x86
-
-When run the following command on x86:
-
-        svnadmin create /var/test_repo
-
-It cause segmentation fault error like the following:
-
-        [16499.751837] svnadmin[21117]: segfault at 83 ip 00000000f74bf7f6 sp 00000000ffdd9b34 error 4 in libc-2.24.so[f7441000+1af000]
-        Segmentation fault (core dumped)
-
-This is because in source code ./subversion/libsvn_fs_fs/low_level.c,
-function svn_fs_fs__unparse_footer, when:
-
-        target arch:    x86
-        apr_off_t:      4 bytes
-
-if the "APR_OFF_T_FMT" is "lld", it still use type "apr_off_t" to pass
-data to apr, but in apr source code file apr_snprintf.c the function
-apr_vformatter meet "lld", it would use the:
-
-        i_quad = va_arg(ap, apr_int64_t);
-
-It uses the apr_int64_t to deal data, it read 8 bytes, so the follow-up
-data may be error.
-
-Upstream-Status: Pending
-
-Signed-off-by: Dengke Du <dengke.du@windriver.com>
----
- subversion/libsvn_fs_fs/low_level.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/subversion/libsvn_fs_fs/low_level.c b/subversion/libsvn_fs_fs/low_level.c
-index a27bbcc..6ddbe28 100644
---- a/subversion/libsvn_fs_fs/low_level.c
-+++ b/subversion/libsvn_fs_fs/low_level.c
-@@ -250,10 +250,10 @@ svn_fs_fs__unparse_footer(apr_off_t l2p_offset,
- {
-   return svn_stringbuf_createf(result_pool,
-                                "%" APR_OFF_T_FMT " %s %" APR_OFF_T_FMT " %s",
--                               l2p_offset,
-+                               (APR_OFF_T_FMT=="lld") ? (apr_int64_t)l2p_offset : l2p_offset,
-                                svn_checksum_to_cstring(l2p_checksum,
-                                                        scratch_pool),
--                               p2l_offset,
-+                               (APR_OFF_T_FMT=="lld") ? (apr_int64_t)p2l_offset : p2l_offset,
-                                svn_checksum_to_cstring(p2l_checksum,
-                                                        scratch_pool));
- }
--- 
-2.7.4
-
diff --git a/meta/recipes-devtools/subversion/subversion_1.9.5.bb b/meta/recipes-devtools/subversion/subversion_1.9.5.bb
index 575bbca..05fba67 100644
--- a/meta/recipes-devtools/subversion/subversion_1.9.5.bb
+++ b/meta/recipes-devtools/subversion/subversion_1.9.5.bb
@@ -14,7 +14,6 @@ SRC_URI = "${APACHE_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://disable_macos.patch \
            file://serf.m4-Regex-modified-to-allow-D-in-paths.patch \
            file://0001-Fix-libtool-name-in-configure.ac.patch \
-           file://0001-fix-svnadmin-create-fail-on-x86.patch \
            file://serfmacro.patch \
            "
 
-- 
2.7.4



^ permalink raw reply related

* [PATCH V3 0/2] apr: fix off_t size can't match when configure and in target glibc
From: Dengke Du @ 2016-12-20  5:53 UTC (permalink / raw)
  To: ross.burton; +Cc: openembedded-core

Changed in V3:
	As Ross said, remove other instances of the APR_CHECK_SIZEOF_EXTENDED
macros in configure.in, this include "pid_t size_t ssize_t" types.

The following changes since commit d0d260b0b85790ceb136dd6b0445e8e33d038f5e:

  u-boot/beaglebone: Select Beaglebone Black target specifically. (2016-12-17 09:57:37 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib dengke/fix-apr-configure-error-for-cross-compiling
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=dengke/fix-apr-configure-error-for-cross-compiling

Dengke Du (2):
  Revert "subversion: fix "svnadmin create" fail on x86"
  apr: fix off_t size can't match when configure and in target glibc

 .../0001-fix-svnadmin-create-fail-on-x86.patch     | 56 ----------------
 .../subversion/subversion_1.9.5.bb                 |  1 -
 ..._t-size-doesn-t-match-in-glibc-when-cross.patch | 76 ++++++++++++++++++++++
 meta/recipes-support/apr/apr_1.5.2.bb              |  1 +
 4 files changed, 77 insertions(+), 57 deletions(-)
 delete mode 100644 meta/recipes-devtools/subversion/subversion/0001-fix-svnadmin-create-fail-on-x86.patch
 create mode 100644 meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch

-- 
2.7.4



^ permalink raw reply

* [PATCH V3 2/2] apr: fix off_t size can't match when configure and in target glibc
From: Dengke Du @ 2016-12-20  5:53 UTC (permalink / raw)
  To: ross.burton; +Cc: openembedded-core
In-Reply-To: <cover.1482212391.git.dengke.du@windriver.com>

When subversion run on x86 and lib32 on x86-64, it use the APR's
apr.h header file. But when configure the APR, APR meets the cross
compiling, it was hardcoded in configure.in in apr source code. As
the following:

	APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)

It pass 8 bytes to off_t when meets cross compiling, but on x86 or lib32
the off_t in glibc was 4 bytes, so it let the application who use apr.h
go to wrong.

Such as subversion:

	svnadmin create test

So we should let the APR detect the correct off_t when cross compiling,
change it to the following:

	AC_CHECK_SIZEOF(off_t)

The same for the following hardcoded types for cross compiling:

	pid_t	8
	size_t	8
	ssize_t	8

Change the above correspondingly.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 ..._t-size-doesn-t-match-in-glibc-when-cross.patch | 76 ++++++++++++++++++++++
 meta/recipes-support/apr/apr_1.5.2.bb              |  1 +
 2 files changed, 77 insertions(+)
 create mode 100644 meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch

diff --git a/meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch b/meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch
new file mode 100644
index 0000000..1237142
--- /dev/null
+++ b/meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch
@@ -0,0 +1,76 @@
+From f26e8b88d2c90ed7eb9d4e276412b0923c23d10f Mon Sep 17 00:00:00 2001
+From: Dengke Du <dengke.du@windriver.com>
+Date: Wed, 14 Dec 2016 18:13:08 +0800
+Subject: [PATCH] apr: fix off_t size doesn't match in glibc when cross
+ compiling
+
+In configure.in, it contains the following:
+
+	APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)
+
+the macro "APR_CHECK_SIZEOF_EXTENDED" was defined in build/apr_common.m4,
+it use the "AC_TRY_RUN" macro, this macro let the off_t to 8, when cross
+compiling enable.
+
+So it was hardcoded for cross compiling, we should detect it dynamic based on
+the sysroot's glibc. We change it to the following:
+
+	AC_CHECK_SIZEOF(off_t)
+
+The same for the following hardcoded types for cross compiling:
+
+	pid_t	8
+	ssize_t	8
+	size_t	8
+	off_t	8
+
+Change the above correspondingly.
+
+Signed-off-by: Dengke Du <dengke.du@windriver.com>
+---
+ configure.in | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 9d57ae6..5b19940 100644
+--- a/configure.in
++++ b/configure.in
+@@ -1681,7 +1681,7 @@ else
+     socklen_t_value="int"
+ fi
+ 
+-APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], pid_t, 8)
++AC_CHECK_SIZEOF(pid_t)
+ 
+ if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
+     pid_t_fmt='#define APR_PID_T_FMT "hd"'
+@@ -1750,7 +1750,7 @@ APR_CHECK_TYPES_COMPATIBLE(ssize_t, long, [ssize_t_fmt="ld"])
+ APR_CHECK_TYPES_COMPATIBLE(size_t, unsigned int, [size_t_fmt="u"])
+ APR_CHECK_TYPES_COMPATIBLE(size_t, unsigned long, [size_t_fmt="lu"])
+ 
+-APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], ssize_t, 8)
++AC_CHECK_SIZEOF(ssize_t)
+ 
+ AC_MSG_CHECKING([which format to use for apr_ssize_t])
+ if test -n "$ssize_t_fmt"; then
+@@ -1767,7 +1767,7 @@ fi
+ 
+ ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
+ 
+-APR_CHECK_SIZEOF_EXTENDED([#include <stddef.h>], size_t, 8)
++AC_CHECK_SIZEOF(size_t)
+ 
+ AC_MSG_CHECKING([which format to use for apr_size_t])
+ if test -n "$size_t_fmt"; then
+@@ -1784,7 +1784,7 @@ fi
+ 
+ size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
+ 
+-APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)
++AC_CHECK_SIZEOF(off_t)
+ 
+ if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
+     # Enable LFS
+-- 
+2.7.4
+
diff --git a/meta/recipes-support/apr/apr_1.5.2.bb b/meta/recipes-support/apr/apr_1.5.2.bb
index 302c935..f560c8b 100644
--- a/meta/recipes-support/apr/apr_1.5.2.bb
+++ b/meta/recipes-support/apr/apr_1.5.2.bb
@@ -17,6 +17,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
            file://upgrade-and-fix-1.5.1.patch \
            file://Fix-packet-discards-HTTP-redirect.patch \
            file://configure.in-fix-LTFLAGS-to-make-it-work-with-ccache.patch \
+           file://0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch \
 "
 
 SRC_URI[md5sum] = "4e9769f3349fe11fc0a5e1b224c236aa"
-- 
2.7.4



^ permalink raw reply related

* [PATCH] gstreamer1.0-libav: Fix build on mips64
From: Khem Raj @ 2016-12-20  8:47 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../gstreamer1.0-libav/mips64_cpu_detection.patch  | 32 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-libav_1.10.1.bb         |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/mips64_cpu_detection.patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/mips64_cpu_detection.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/mips64_cpu_detection.patch
new file mode 100644
index 0000000000..7a0b448888
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/mips64_cpu_detection.patch
@@ -0,0 +1,32 @@
+It will add -mips64r6 and -mips64r2 to cmdline which will
+cause conflicts
+
+in OE we user mips32r2 and mips64r2 for mips arch versions
+so there is no benefit of detecting it automatically by
+poking at tools especially in cross env
+
+Fixes errors like
+
+linking -mnan=2008 module with previous -mnan=legacy modules
+failed to merge target specific data of file
+
+-Khem
+Upstream-Status: Inappropriate [OE-Specific]
+
+Index: gst-libav-1.10.1/gst-libs/ext/libav/configure
+===================================================================
+--- gst-libav-1.10.1.orig/gst-libs/ext/libav/configure
++++ gst-libav-1.10.1/gst-libs/ext/libav/configure
+@@ -5269,12 +5269,9 @@ elif enabled mips; then
+ 
+     # Enable minimum ISA based on selected options
+     if enabled mips64; then
+-        enabled mips64r6 && check_inline_asm_flags mips64r6 '"dlsa $0, $0, $0, 1"' '-mips64r6'
+         enabled mips64r2 && check_inline_asm_flags mips64r2 '"dext $0, $0, 0, 1"' '-mips64r2'
+         disabled mips64r6 && disabled mips64r2 && check_inline_asm_flags mips64r1 '"daddi $0, $0, 0"' '-mips64'
+     else
+-        enabled mips32r6 && check_inline_asm_flags mips32r6 '"aui $0, $0, 0"' '-mips32r6'
+-        enabled mips32r5 && check_inline_asm_flags mips32r5 '"eretnc"' '-mips32r5'
+         enabled mips32r2 && check_inline_asm_flags mips32r2 '"ext $0, $0, 0, 1"' '-mips32r2'
+         disabled mips32r6 && disabled mips32r5 && disabled mips32r2 && check_inline_asm_flags mips32r1 '"addi $0, $0, 0"' '-mips32'
+     fi
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.10.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.10.1.bb
index 98f5a50a9a..d44a5b24cb 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.10.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.10.1.bb
@@ -12,6 +12,7 @@ SRC_URI = " \
     http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \
     file://0001-Disable-yasm-for-libav-when-disable-yasm.patch \
     file://workaround-to-build-gst-libav-for-i586-with-gcc.patch \
+    file://mips64_cpu_detection.patch \
 "
 SRC_URI[md5sum] = "9dc8fb8dd01818c27230a1ed6ba9f4de"
 SRC_URI[sha256sum] = "27b28b8de0e6dff1e3952428e8ed8ba4a12f452f789ac0ae9bbe50f00a5c72c7"
-- 
2.11.0



^ permalink raw reply related

* [PATCH] initscripts: populate-volatile: suppress read-only-rootfs warnings
From: André Draszik @ 2016-12-20  9:02 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <adraszik@tycoint.com>

rm: can't remove '/etc/resolv.conf': Read-only file system
ln: /etc/resolv.conf: File exists

/etc/default/volatiles contains an entry:
l root root 0644 /etc/resolv.conf /var/run/resolv.conf

which causes populate-volatile.sh to execute the following in link_file():
  if [ -L \"$2\" ]; then
    [ \"\$(readlink -f \"$2\")\" != \"\$(readlink -f \"$1\")\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; };
  elif [ -d \"$2\" ]; then
    ...

At the time the image is created, /etc/resolv.conf is already a
symlink to /var/run/resolv.conf, but at boot time when
populate-volatiles.sh is run, /var/run/resolv.conf doesn't
exist, causing it to try to rm -f and ln -sf which of course
fails due to the read-only filesystem.

[YOCTO #10814]

Signed-off-by: André Draszik <adraszik@tycoint.com>
---
 meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
index ce4622a5e5..74e1e6e17c 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh
@@ -70,7 +70,7 @@ mk_dir() {
 link_file() {
 	EXEC="
 	if [ -L \"$2\" ]; then
-		[ \"\$(readlink -f \"$2\")\" != \"\$(readlink -f \"$1\")\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; };
+		[ \"\$(readlink -f \"$2\")\" != \"$1\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; };
 	elif [ -d \"$2\" ]; then
 		if awk '\$2 == \"$2\" {exit 1}' /proc/mounts; then
 			cp -a $2/* $1 2>/dev/null;
-- 
2.11.0



^ permalink raw reply related

* Re: [PATCH 2/3] libxml2: fix CVE-2016-4658 Disallow namespace nodes in XPointer points and ranges
From: Ahsan, Noor @ 2016-12-20  9:06 UTC (permalink / raw)
  To: Burton, Ross
  Cc: Andrej Valek, Larson, Chris,
	openembedded-core@lists.openembedded.org
In-Reply-To: <CAJTo0LbAgwJbNpiONVMP_udObfJMBhCs5SPS7so+073MjtYKTA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

Armin Kuster,

Can you merge this on morty branch?

Noor
From: Burton, Ross [mailto:ross.burton@intel.com]
Sent: Friday, December 16, 2016 12:33 AM
To: Ahsan, Noor <Noor_Ahsan@mentor.com>
Cc: Andrej Valek <andrej.valek@siemens.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 2/3] libxml2: fix CVE-2016-4658 Disallow namespace nodes in XPointer points and ranges


On 15 December 2016 at 19:05, Ahsan, Noor <Noor_Ahsan@mentor.com<mailto:Noor_Ahsan@mentor.com>> wrote:
Can we merge this on morty branch as well?

Yes, if you ping the morty maintainer.

Ross

[-- Attachment #2: Type: text/html, Size: 3771 bytes --]

^ permalink raw reply

* Re: [PATCH] libxml2: Security fix CVE-2016-5131
From: Ahsan, Noor @ 2016-12-20  9:06 UTC (permalink / raw)
  To: Yi Zhao, openembedded-core@lists.openembedded.org, Larson, Chris
In-Reply-To: <7cea66ed-8065-5767-243c-56c389ba525d@windriver.com>

Armin Kuster,

Can you merge this on morty branch?

Noor

-----Original Message-----
From: Yi Zhao [mailto:yi.zhao@windriver.com] 
Sent: Friday, December 16, 2016 5:42 AM
To: Ahsan, Noor <Noor_Ahsan@mentor.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] libxml2: Security fix CVE-2016-5131



在 2016年12月16日 03:01, Ahsan, Noor 写道:
> Can we have this patch merged on morty branch?
Yes

//Yi

>
> Noor
>
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Yi Zhao
> Sent: Monday, November 28, 2016 2:56 PM
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH] libxml2: Security fix CVE-2016-5131
>
> CVE-2016-5131 libxml2: Use-after-free vulnerability in libxml2 through 2.9.4, as used in Google Chrome before 52.0.2743.82, allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors related to the XPointer range-to function.
>
> External References:
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5131
>
> Patch from:
> https://git.gnome.org/browse/libxml2/commit/?id=9ab01a277d71f54d3143c2cf333c5c2e9aaedd9e
>
> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
> ---
>   .../libxml/libxml2/libxml2-CVE-2016-5131.patch     | 180 +++++++++++++++++++++
>   meta/recipes-core/libxml/libxml2_2.9.4.bb          |   1 +
>   2 files changed, 181 insertions(+)
>   create mode 100644 meta/recipes-core/libxml/libxml2/libxml2-CVE-2016-5131.patch
>
> diff --git a/meta/recipes-core/libxml/libxml2/libxml2-CVE-2016-5131.patch b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2016-5131.patch
> new file mode 100644
> index 0000000..9d47d02
> --- /dev/null
> +++ b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2016-5131.patch
> @@ -0,0 +1,180 @@
> +From 9ab01a277d71f54d3143c2cf333c5c2e9aaedd9e Mon Sep 17 00:00:00 2001
> +From: Nick Wellnhofer <wellnhofer@aevum.de>
> +Date: Tue, 28 Jun 2016 14:22:23 +0200
> +Subject: [PATCH] Fix XPointer paths beginning with range-to
> +
> +The old code would invoke the broken xmlXPtrRangeToFunction. range-to
> +isn't really a function but a special kind of location step. Remove
> +this function and always handle range-to in the XPath code.
> +
> +The old xmlXPtrRangeToFunction could also be abused to trigger a
> +use-after-free error with the potential for remote code execution.
> +
> +Found with afl-fuzz.
> +
> +Fixes CVE-2016-5131.
> +
> +CVE: CVE-2016-5131
> +Upstream-Status: Backport
> +https://git.gnome.org/browse/libxml2/commit/?id=9ab01a277d71f54d3143c2c
> +f333c5c2e9aaedd9e
> +
> +Signed-off-by: Yi Zhao <yi.zhao@windirver.com>
> +---
> + result/XPath/xptr/vidbase | 13 ++++++++
> + test/XPath/xptr/vidbase   |  1 +
> + xpath.c                   |  7 ++++-
> + xpointer.c                | 76 ++++-------------------------------------------
> + 4 files changed, 26 insertions(+), 71 deletions(-)
> +
> +diff --git a/result/XPath/xptr/vidbase b/result/XPath/xptr/vidbase
> +index 8b9e92d..f19193e 100644
> +--- a/result/XPath/xptr/vidbase
> ++++ b/result/XPath/xptr/vidbase
> +@@ -17,3 +17,16 @@ Object is a Location Set:
> +   To node
> +     ELEMENT p
> +
> ++
> ++========================
> ++Expression: xpointer(range-to(id('chapter2')))
> ++Object is a Location Set:
> ++1 :   Object is a range :
> ++  From node
> ++     /
> ++  To node
> ++    ELEMENT chapter
> ++      ATTRIBUTE id
> ++        TEXT
> ++          content=chapter2
> ++
> +diff --git a/test/XPath/xptr/vidbase b/test/XPath/xptr/vidbase index
> +b146383..884b106 100644
> +--- a/test/XPath/xptr/vidbase
> ++++ b/test/XPath/xptr/vidbase
> +@@ -1,2 +1,3 @@
> + xpointer(id('chapter1')/p)
> + xpointer(id('chapter1')/p[1]/range-to(following-sibling::p[2]))
> ++xpointer(range-to(id('chapter2')))
> +diff --git a/xpath.c b/xpath.c
> +index d992841..5a01b1b 100644
> +--- a/xpath.c
> ++++ b/xpath.c
> +@@ -10691,13 +10691,18 @@ xmlXPathCompPathExpr(xmlXPathParserContextPtr ctxt) {
> + 		    lc = 1;
> + 		    break;
> + 		} else if ((NXT(len) == '(')) {
> +-		    /* Note Type or Function */
> ++		    /* Node Type or Function */
> + 		    if (xmlXPathIsNodeType(name)) {
> + #ifdef DEBUG_STEP
> + 		        xmlGenericError(xmlGenericErrorContext,
> + 				"PathExpr: Type search\n");
> + #endif
> + 			lc = 1;
> ++#ifdef LIBXML_XPTR_ENABLED
> ++                    } else if (ctxt->xptr &&
> ++                               xmlStrEqual(name, BAD_CAST "range-to")) {
> ++                        lc = 1;
> ++#endif
> + 		    } else {
> + #ifdef DEBUG_STEP
> + 		        xmlGenericError(xmlGenericErrorContext,
> +diff --git a/xpointer.c b/xpointer.c
> +index 676c510..d74174a 100644
> +--- a/xpointer.c
> ++++ b/xpointer.c
> +@@ -1332,8 +1332,6 @@ xmlXPtrNewContext(xmlDocPtr doc, xmlNodePtr here, xmlNodePtr origin) {
> +     ret->here = here;
> +     ret->origin = origin;
> +
> +-    xmlXPathRegisterFunc(ret, (xmlChar *)"range-to",
> +-	                 xmlXPtrRangeToFunction);
> +     xmlXPathRegisterFunc(ret, (xmlChar *)"range",
> + 	                 xmlXPtrRangeFunction);
> +     xmlXPathRegisterFunc(ret, (xmlChar *)"range-inside", @@ -2243,76
> ++2241,14 @@ xmlXPtrRangeInsideFunction(xmlXPathParserContextPtr ctxt,
> +int nargs) {
> +  * @nargs:  the number of args
> +  *
> +  * Implement the range-to() XPointer function
> ++ *
> ++ * Obsolete. range-to is not a real function but a special type of
> ++ location
> ++ * step which is handled in xpath.c.
> +  */
> + void
> +-xmlXPtrRangeToFunction(xmlXPathParserContextPtr ctxt, int nargs) {
> +-    xmlXPathObjectPtr range;
> +-    const xmlChar *cur;
> +-    xmlXPathObjectPtr res, obj;
> +-    xmlXPathObjectPtr tmp;
> +-    xmlLocationSetPtr newset = NULL;
> +-    xmlNodeSetPtr oldset;
> +-    int i;
> +-
> +-    if (ctxt == NULL) return;
> +-    CHECK_ARITY(1);
> +-    /*
> +-     * Save the expression pointer since we will have to evaluate
> +-     * it multiple times. Initialize the new set.
> +-     */
> +-    CHECK_TYPE(XPATH_NODESET);
> +-    obj = valuePop(ctxt);
> +-    oldset = obj->nodesetval;
> +-    ctxt->context->node = NULL;
> +-
> +-    cur = ctxt->cur;
> +-    newset = xmlXPtrLocationSetCreate(NULL);
> +-
> +-    for (i = 0; i < oldset->nodeNr; i++) {
> +-	ctxt->cur = cur;
> +-
> +-	/*
> +-	 * Run the evaluation with a node list made of a single item
> +-	 * in the nodeset.
> +-	 */
> +-	ctxt->context->node = oldset->nodeTab[i];
> +-	tmp = xmlXPathNewNodeSet(ctxt->context->node);
> +-	valuePush(ctxt, tmp);
> +-
> +-	xmlXPathEvalExpr(ctxt);
> +-	CHECK_ERROR;
> +-
> +-	/*
> +-	 * The result of the evaluation need to be tested to
> +-	 * decided whether the filter succeeded or not
> +-	 */
> +-	res = valuePop(ctxt);
> +-	range = xmlXPtrNewRangeNodeObject(oldset->nodeTab[i], res);
> +-	if (range != NULL) {
> +-	    xmlXPtrLocationSetAdd(newset, range);
> +-	}
> +-
> +-	/*
> +-	 * Cleanup
> +-	 */
> +-	if (res != NULL)
> +-	    xmlXPathFreeObject(res);
> +-	if (ctxt->value == tmp) {
> +-	    res = valuePop(ctxt);
> +-	    xmlXPathFreeObject(res);
> +-	}
> +-
> +-	ctxt->context->node = NULL;
> +-    }
> +-
> +-    /*
> +-     * The result is used as the new evaluation set.
> +-     */
> +-    xmlXPathFreeObject(obj);
> +-    ctxt->context->node = NULL;
> +-    ctxt->context->contextSize = -1;
> +-    ctxt->context->proximityPosition = -1;
> +-    valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
> ++xmlXPtrRangeToFunction(xmlXPathParserContextPtr ctxt,
> ++                       int nargs ATTRIBUTE_UNUSED) {
> ++    XP_ERROR(XPATH_EXPR_ERROR);
> + }
> +
> + /**
> +--
> +2.7.4
> +
> diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb
> index 59874be..1fed90b 100644
> --- a/meta/recipes-core/libxml/libxml2_2.9.4.bb
> +++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb
> @@ -19,6 +19,7 @@ SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar \
>              file://run-ptest \
>              file://python-sitepackages-dir.patch \
>              file://libxml-m4-use-pkgconfig.patch \
> +           file://libxml2-CVE-2016-5131.patch \
>             "
>   
>   SRC_URI[libtar.md5sum] = "ae249165c173b1ff386ee8ad676815f5"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


^ permalink raw reply

* Re: [PATCH v3 3/3] selftest/wic: Add tests for --exclude-dir option.
From: Kristian Amlie @ 2016-12-20  9:20 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core
In-Reply-To: <CAJTo0LZ4S6FWzR6u2Kek_KjcXD48qTWbVLn5Vm2j20fJtyts9A@mail.gmail.com>

On 19/12/16 21:49, Burton, Ross wrote:
> 
> On 19 December 2016 at 09:09, Kristian Amlie <kristian.amlie@mender.io
> <mailto:kristian.amlie@mender.io>> wrote:
> 
>     +        res = runCmd("e2ls %s" % os.path.join(self.resultdir,
>     "selftest_img.part1"))
> 
> 
> To avoid adding recipes for software that hasn't been touched for about
> a decade, can this be done using debugfs from util-linux?

Probably, I'll check. It would be nice to use something that's up to date.

-- 
Kristian


^ permalink raw reply

* Re: [PATCH] gnupg: specify explicitly tar path
From: Wenlin Kang @ 2016-12-20  9:47 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core
In-Reply-To: <CAJTo0LYgLj4o1srO59zCz5KhSio-C5-GFTnLaAmKcripb04Sgg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

On 2016年12月19日 19:39, Burton, Ross wrote:
>
> On 19 December 2016 at 07:01, Wenlin Kang <wenlin.kang@windriver.com 
> <mailto:wenlin.kang@windriver.com>> wrote:
>
>     +-   AC_PATH_PROG(TAR,"tar")
>     +-        _mytar=$ac_cv_path_TAR
>
>
> You don't need to patch configure.ac <http://configure.ac> as you can 
> just set pass ac_cv_path_TAR=${base_bindir/tar in EXTRA_OECONF.
>
> Ross

Your means is that we should only set  --with-tar=${base_bindir}/tar in 
EXTRA_OECONF, not to modify configure.ac, right?
If that, the configure code will skip directly "ustar format check 
code", not check whether tar supports "ustar format",
and think it doesn't support ustar format, so I think we need to modify 
the configure(related m4/tar-ustar.m4 file)
when set  --with-tar=${base_bindir}/tar in EXTRA_OECONF.

-- 
Thanks,
Wenlin Kang


[-- Attachment #2: Type: text/html, Size: 2101 bytes --]

^ permalink raw reply

* [PATCH v6] classes: Fix alternatives and rc.d ordering
From: David Vincent @ 2016-12-20  9:47 UTC (permalink / raw)
  To: openembedded-core, haris.okanovic, markus.lehtonen
In-Reply-To: <20161212160148.9248-1-freesilicon@gmail.com>

When using an alternative as an initscript, the ordering between
update-rc.d and update-alternatives tasks during prerm and postinst
tasks must always be the following in order to work:
  * prerm:
    - stop daemon
    - remove alternative

  * postinst:
    - add alternative
    - start daemon

This patchset adds comments to the scripts generated by both classes and
organize the generated sections based on those comments.

[YOCTO #10433]

Changes since v5:
    - Remove boolean in d.getVar() calls

Signed-off-by: David Vincent <freesilicon@gmail.com>
---
 meta/classes/update-alternatives.bbclass | 29 ++++++++++++++++++++++-------
 meta/classes/update-rc.d.bbclass         | 20 ++++++++++++++++++--
 2 files changed, 40 insertions(+), 9 deletions(-)

diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index 0460bf0241..a90ef19e45 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -195,8 +195,8 @@ python populate_packages_updatealternatives () {
     pkgdest = d.getVar('PKGD')
     for pkg in (d.getVar('PACKAGES') or "").split():
         # Create post install/removal scripts
-        alt_setup_links = ""
-        alt_remove_links = ""
+        alt_setup_links = "# Begin section update-alternatives\n"
+        alt_remove_links = "# Begin section update-alternatives\n"
         for alt_name in (d.getVar('ALTERNATIVE_%s' % pkg) or "").split():
             alt_link     = d.getVarFlag('ALTERNATIVE_LINK_NAME', alt_name)
             alt_target   = d.getVarFlag('ALTERNATIVE_TARGET_%s' % pkg, alt_name) or d.getVarFlag('ALTERNATIVE_TARGET', alt_name)
@@ -219,10 +219,13 @@ python populate_packages_updatealternatives () {
             # Default to generate shell script.. eventually we may want to change this...
             alt_target = os.path.normpath(alt_target)
 
-            alt_setup_links  += '\tupdate-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
-            alt_remove_links += '\tupdate-alternatives --remove  %s %s\n' % (alt_name, alt_target)
+            alt_setup_links  += 'update-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
+            alt_remove_links += 'update-alternatives --remove  %s %s\n' % (alt_name, alt_target)
 
-        if alt_setup_links:
+        alt_setup_links += "# End section update-alternatives\n"
+        alt_remove_links += "# End section update-alternatives\n"
+
+        if len(alt_setup_links.splitlines()) > 2:
             # RDEPENDS setup
             provider = d.getVar('VIRTUAL-RUNTIME_update-alternatives')
             if provider:
@@ -232,12 +235,24 @@ python populate_packages_updatealternatives () {
             bb.note('adding update-alternatives calls to postinst/prerm for %s' % pkg)
             bb.note('%s' % alt_setup_links)
             postinst = d.getVar('pkg_postinst_%s' % pkg) or '#!/bin/sh\n'
-            postinst += alt_setup_links
+            postinst = postinst.splitlines(True)
+            try:
+                index = postinst.index('# Begin section update-rc.d\n')
+                postinst.insert(index, alt_setup_links)
+            except ValueError:
+                postinst.append(alt_setup_links)
+            postinst = ''.join(postinst)
             d.setVar('pkg_postinst_%s' % pkg, postinst)
 
             bb.note('%s' % alt_remove_links)
             prerm = d.getVar('pkg_prerm_%s' % pkg) or '#!/bin/sh\n'
-            prerm += alt_remove_links
+            prerm = prerm.splitlines(True)
+            try:
+                index = prerm.index('# End section update-rc.d\n')
+                prerm.insert(index + 1, alt_remove_links)
+            except ValueError:
+                prerm.append(alt_remove_links)
+            prerm = ''.join(prerm)
             d.setVar('pkg_prerm_%s' % pkg, prerm)
 }
 
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 2746c360fe..9d3a7bc0c7 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -35,6 +35,7 @@ fi
 }
 
 updatercd_postinst() {
+# Begin section update-rc.d
 if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then
 	if [ -n "$D" ]; then
 		OPT="-r $D"
@@ -43,12 +44,15 @@ if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then
 	fi
 	update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
 fi
+# End section update-rc.d
 }
 
 updatercd_prerm() {
+# Begin section update-rc.d
 if ${@use_updatercd(d)} && [ -z "$D" -a -x "${INIT_D_DIR}/${INITSCRIPT_NAME}" ]; then
 	${INIT_D_DIR}/${INITSCRIPT_NAME} stop || :
 fi
+# End section update-rc.d
 }
 
 updatercd_postrm() {
@@ -111,13 +115,25 @@ python populate_packages_updatercd () {
         postinst = d.getVar('pkg_postinst_%s' % pkg)
         if not postinst:
             postinst = '#!/bin/sh\n'
-        postinst += localdata.getVar('updatercd_postinst')
+        postinst = postinst.splitlines(True)
+        try:
+            index = postinst.index('# End section update-alternatives\n')
+            postinst.insert(index + 1, localdata.getVar('updatercd_postinst'))
+        except ValueError:
+            postinst.append(localdata.getVar('updatercd_postinst'))
+        postinst = ''.join(postinst)
         d.setVar('pkg_postinst_%s' % pkg, postinst)
 
         prerm = d.getVar('pkg_prerm_%s' % pkg)
         if not prerm:
             prerm = '#!/bin/sh\n'
-        prerm += localdata.getVar('updatercd_prerm')
+        prerm = prerm.splitlines(True)
+        try:
+            index = prerm.index('# Begin section update-alternatives\n')
+            prerm.insert(index, localdata.getVar('updatercd_prerm'))
+        except ValueError:
+            prerm.append(localdata.getVar('updatercd_prerm'))
+        prerm = ''.join(prerm)
         d.setVar('pkg_prerm_%s' % pkg, prerm)
 
         postrm = d.getVar('pkg_postrm_%s' % pkg)
-- 
2.11.0



^ permalink raw reply related

* [PATCH v5] rootfs: Modify RPM installation
From: David Vincent @ 2016-12-20  9:51 UTC (permalink / raw)
  To: openembedded-core, ross.burton, leonardo.sandoval.gonzalez,
	daniela.plascencia
In-Reply-To: <20161212155909.8946-1-freesilicon@gmail.com>

When using a custom RPM data directory instead of the default dir
'/var/lib/rpm', the final image did not contain any of the database
files in the expected location. This commit takes into account the
'rpmlibdir' variable set into 'rootfs_rpm.bbclass'.

Changes since v4:
    - Remove boolean in d.getVar() calls.

Signed-off-by: David Vincent <freesilicon@gmail.com>
---
 meta/lib/oe/package_manager.py | 23 +++++++++++++----------
 meta/lib/oe/rootfs.py          |  3 ++-
 2 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index e557473999..4299220eec 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -356,7 +356,8 @@ class RpmPkgsList(PkgsList):
         super(RpmPkgsList, self).__init__(d, rootfs_dir)
 
         self.rpm_cmd = bb.utils.which(os.getenv('PATH'), "rpm")
-        self.image_rpmlib = os.path.join(self.rootfs_dir, 'var/lib/rpm')
+        self.rpm_libdir = self.d.getVar('rpmlibdir')
+        self.image_rpmlib = os.path.join(self.rootfs_dir, self.rpm_libdir[1:])
 
         self.ml_prefix_list, self.ml_os_list = \
             RpmIndexer(d, rootfs_dir).get_ml_prefix_and_os_list(arch_var, os_var)
@@ -416,7 +417,7 @@ class RpmPkgsList(PkgsList):
 
     def list_pkgs(self):
         cmd = [self.rpm_cmd, '--root', self.rootfs_dir]
-        cmd.extend(['-D', '_dbpath /var/lib/rpm'])
+        cmd.extend(['-D', '_dbpath', self.rpm_libdir])
         cmd.extend(['-qa', '--qf', '[%{NAME} %{ARCH} %{VERSION} %{PACKAGEORIGIN}\n]'])
 
         try:
@@ -683,7 +684,8 @@ class RpmPM(PackageManager):
         self.solution_manifest = self.d.expand('${T}/saved/%s_solution' %
                                                self.task_name)
         self.saved_rpmlib = self.d.expand('${T}/saved/%s' % self.task_name)
-        self.image_rpmlib = os.path.join(self.target_rootfs, 'var/lib/rpm')
+        self.rpm_libdir = self.d.getVar('rpmlibdir')
+        self.image_rpmlib = os.path.join(self.target_rootfs, self.rpm_libdir[1:])
 
         if not os.path.exists(self.d.expand('${T}/saved')):
             bb.utils.mkdirhier(self.d.expand('${T}/saved'))
@@ -954,7 +956,7 @@ class RpmPM(PackageManager):
             open(db_config_dir, 'w+').write(DB_CONFIG_CONTENT)
 
         # Create database so that smart doesn't complain (lazy init)
-        cmd = [self.rpm_cmd, '--root', self.target_rootfs, '--dbpath', '/var/lib/rpm', '-qa']
+        cmd = [self.rpm_cmd, '--root', self.target_rootfs, '--dbpath', self.rpm_libdir, '-qa']
         try:
             subprocess.check_output(cmd, stderr=subprocess.STDOUT)
         except subprocess.CalledProcessError as e:
@@ -963,20 +965,19 @@ class RpmPM(PackageManager):
         # Import GPG key to RPM database of the target system
         if self.d.getVar('RPM_SIGN_PACKAGES') == '1':
             pubkey_path = self.d.getVar('RPM_GPG_PUBKEY')
-            cmd = [self.rpm_cmd, '--root', self.target_rootfs, '--dbpath', '/var/lib/rpm', '--import', pubkey_path]
+            cmd = [self.rpm_cmd, '--root', self.target_rootfs, '--dbpath', self.rpm_libdir, '--import', pubkey_path]
             try:
                 subprocess.check_output(cmd, stderr=subprocess.STDOUT)
             except subprocess.CalledProcessError as e:
                 bb.fatal("Import GPG key failed. Command '%s' "
                         "returned %d:\n%s" % (' '.join(cmd), e.returncode, e.output.decode("utf-8")))
 
-
         # Configure smart
         bb.note("configuring Smart settings")
         bb.utils.remove(os.path.join(self.target_rootfs, 'var/lib/smart'),
                         True)
         self._invoke_smart(['config', '--set', 'rpm-root=%s' % self.target_rootfs])
-        self._invoke_smart(['config', '--set', 'rpm-dbpath=/var/lib/rpm'])
+        self._invoke_smart(['config', '--set', 'rpm-dbpath=%s' % self.rpm_libdir])
         self._invoke_smart(['config', '--set', 'rpm-extra-macros._var=%s' %
                            self.d.getVar('localstatedir')])
         cmd = ["config", "--set", "rpm-extra-macros._tmppath=/%s/tmp" % self.install_dir_name]
@@ -1236,7 +1237,7 @@ class RpmPM(PackageManager):
 
         if not with_dependencies:
             cmd = [self.rpm_cmd] + ["-e", "--nodeps", "--root=%s" %
-                    self.target_rootfs, "--dbpath=/var/lib/rpm",
+                    self.target_rootfs, "--dbpath=%s" % self.rpm_libdir,
                     "--define='_cross_scriptlet_wrapper %s'" %
                     self.scriptlet_wrapper,
                     "--define='_tmppath /%s/tmp'" % self.install_dir_name] + pkgs
@@ -1384,7 +1385,8 @@ class RpmPM(PackageManager):
         saved_dir = self.target_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/') + new_pkg
 
         cmd = self.rpm_cmd + ' -q --scripts --root ' + self.target_rootfs
-        cmd += ' --dbpath=/var/lib/rpm ' + new_pkg
+        cmd += ' --dbpath=%s ' %  self.rpm_libdir
+        cmd += new_pkg
         cmd += ' | sed -n -e "/^postinstall scriptlet (using .*):$/,/^.* scriptlet (using .*):$/ {/.*/p}"'
         cmd += ' | sed -e "/postinstall scriptlet (using \(.*\)):$/d"'
         cmd += ' -e "/^.* scriptlet (using .*):$/d" > %s' % saved_dir
@@ -1416,7 +1418,8 @@ class RpmPM(PackageManager):
     '''
     def unlock_rpm_db(self):
         # Remove rpm db lock files
-        rpm_db_locks = glob.glob('%s/var/lib/rpm/__db.*' % self.target_rootfs)
+        rpm_db_locks = glob.glob('%s%s/__db.*' % (self.target_rootfs,
+            self.rpm_libdir))
         for f in rpm_db_locks:
             bb.utils.remove(f, True)
 
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index d9a473006a..8730025816 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -429,6 +429,7 @@ class RpmRootfs(Rootfs):
 
     def _create(self):
         pkgs_to_install = self.manifest.parse_initial_manifest()
+        rpm_libdir = self.d.getVar('rpmlibdir')
         rpm_pre_process_cmds = self.d.getVar('RPM_PREPROCESS_COMMANDS')
         rpm_post_process_cmds = self.d.getVar('RPM_POSTPROCESS_COMMANDS')
 
@@ -476,7 +477,7 @@ class RpmRootfs(Rootfs):
         if self.progress_reporter:
             self.progress_reporter.next_stage()
 
-        self._setup_dbg_rootfs(['/etc/rpm', '/var/lib/rpm', '/var/lib/smart'])
+        self._setup_dbg_rootfs(['/etc/rpm', rpm_libdir, '/var/lib/smart'])
 
         execute_pre_post_process(self.d, rpm_post_process_cmds)
 
-- 
2.11.0



^ permalink raw reply related

* [PATCH] kernel: Fix symlinks
From: David Vincent @ 2016-12-20  9:53 UTC (permalink / raw)
  To: openembedded-core

When installing a kernel package, the symlinks created by
update-alternatives should point to a path relative to KERNEL_IMAGEDEST
and not an absolute path to '/boot'.

Failing to do so causes problems when resolving the symlink inside some
bootloaders which mount the boot partition elsewhere.

Signed-off-by: David Vincent <freesilicon@gmail.com>
---
 meta/classes/kernel.bbclass             | 6 +++---
 meta/recipes-kernel/linux/linux-dtb.inc | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index fa598cff7f..3630042dbd 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -45,10 +45,11 @@ python __anonymous () {
 
     for type in types.split():
         typelower = type.lower()
+        imagedest = d.getVar('KERNEL_IMAGEDEST')
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
 
-        d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}')
+        d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
 
         d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
 
@@ -56,9 +57,8 @@ python __anonymous () {
 
         d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
 
-        imagedest = d.getVar('KERNEL_IMAGEDEST')
         priority = d.getVar('KERNEL_PRIORITY')
-        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
+        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
         d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
 
         postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'
diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 8528d646dd..668f6342b5 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -70,7 +70,7 @@ pkg_postinst_kernel-devicetree () {
 			DTB_EXT=${DTB##*.}
 			DTB_BASE_NAME=`basename ${DTB} | awk -F "." '{print $1}'`
 			DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-			update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+			update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
 		done
 	done
 }
@@ -83,7 +83,7 @@ pkg_postrm_kernel-devicetree () {
 			DTB_EXT=${DTB##*.}
 			DTB_BASE_NAME=`basename ${DTB} | awk -F "." '{print $1}'`
 			DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-			update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+			update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
 		done
 	done
 }
-- 
2.11.0



^ permalink raw reply related

* Re: [PATCH V2 2/2] apr: fix off_t size can't match when configure and in target glibc
From: Burton, Ross @ 2016-12-20 10:08 UTC (permalink / raw)
  To: Dengke Du; +Cc: OE-core
In-Reply-To: <224071e0-f86e-e4dd-f83c-593c5a22a3b4@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

On 20 December 2016 at 02:03, Dengke Du <dengke.du@windriver.com> wrote:

> Thank you for reminding, the following types were hardcoded in apr source
> code when cross compiling:
>
>     pid_t     8
>
>     ssize_t  8
>
>     size_t    8
>
>     off_t      8
>
> I will send V3.
>

(facepalms at apr)

Thanks!

Ross

[-- Attachment #2: Type: text/html, Size: 814 bytes --]

^ permalink raw reply

* Re: [PATCH v2] wic: look for wks files in <layer>/wic
From: Ed Bartosh @ 2016-12-20 10:22 UTC (permalink / raw)
  To: Khem Raj; +Cc: Paul Eggleton, Patches and discussions about the oe-core layer
In-Reply-To: <CAMKF1sqPsmaOfKHLeTVqsWUMY+jkNByV-ONMV7EnHLnOj=B0gw@mail.gmail.com>

On Mon, Dec 19, 2016 at 03:31:29PM -0800, Khem Raj wrote:
> On Mon, Dec 19, 2016 at 4:41 AM, Ed Bartosh <ed.bartosh@linux.intel.com> wrote:
> > Currently wic looks for wks files in
> > <layer dir>/scripts/lib/wic/canned-wks/ directories.
> > This path is too nested and doesn't look consistent with the
> > naming scheme of layer directories.
> >
> > Added <layer>/wic directory to the list of paths
> > to look for wks files.
> 
> Does it also affect documentation ?
> 

Yes, in a way. There is only indirect mentioning of
scripts/lib/wic/canned-wks/ in the documentation. I'm going to add new
path there or even directly mention both paths in dev manual.

> >
> > Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> > ---
> >  scripts/lib/wic/engine.py | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
> > index 5b10463..2adef2f 100644
> > --- a/scripts/lib/wic/engine.py
> > +++ b/scripts/lib/wic/engine.py
> > @@ -52,6 +52,7 @@ def verify_build_env():
> >
> >  CANNED_IMAGE_DIR = "lib/wic/canned-wks" # relative to scripts
> >  SCRIPTS_CANNED_IMAGE_DIR = "scripts/" + CANNED_IMAGE_DIR
> > +WIC_DIR = "wic"
> >
> >  def build_canned_image_list(path):
> >      layers_path = misc.get_bitbake_var("BBLAYERS")
> > @@ -59,8 +60,10 @@ def build_canned_image_list(path):
> >
> >      if layers_path is not None:
> >          for layer_path in layers_path.split():
> > -            cpath = os.path.join(layer_path, SCRIPTS_CANNED_IMAGE_DIR)
> > -            canned_wks_layer_dirs.append(cpath)
> > +            for wks_path in (WIC_DIR, SCRIPTS_CANNED_IMAGE_DIR):
> > +                cpath = os.path.join(layer_path, wks_path)
> > +                if os.path.isdir(cpath):
> > +                    canned_wks_layer_dirs.append(cpath)
> >
> >      cpath = os.path.join(path, CANNED_IMAGE_DIR)
> >      canned_wks_layer_dirs.append(cpath)
> > --
> > 2.1.4
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
--
Regards,
Ed


^ permalink raw reply

* Re: [PATCH] glew: build for EGL in non-X11 distros
From: Burton, Ross @ 2016-12-20 10:23 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE-core
In-Reply-To: <1482080556-4642-1-git-send-email-armccurdy@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

On 18 December 2016 at 17:02, Andre McCurdy <armccurdy@gmail.com> wrote:

> The glew 2.0.0 release added support for building for EGL:
>
>   http://glew.sourceforge.net/log.html
>
> Add PACKAGECONFIG options for 'opengl' (ie the previous default, with
> dependencies on opengl and X11) and 'egl', which depends on EGL only
> and allows glew to be built for non-X11 distros.
>

This failed on the nightly-no-x11 build on the AB:

tmp/linux-egl/default/shared/visualinfo.o: In function `main':
/usr/src/debug/glew/2.0.0-r0/glew-2.0.0/src/visualinfo.c:177: undefined
reference to `glGetString'
/usr/src/debug/glew/2.0.0-r0/glew-2.0.0/src/visualinfo.c:178: undefined
reference to `glGetString'
/usr/src/debug/glew/2.0.0-r0/glew-2.0.0/src/visualinfo.c:179: undefined
reference to `glGetString'
/usr/src/debug/glew/2.0.0-r0/glew-2.0.0/src/visualinfo.c:181: undefined
reference to `glGetString'
collect2: error: ld returned 1 exit status

(which is DISTRO=poky, DISTRO_FEATURES_remove=x11)

Ross

[-- Attachment #2: Type: text/html, Size: 1863 bytes --]

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox