* [PATCH 0/1] btrfs-tools: fix installed-vs-shipped @ 2016-07-20 5:54 Robert Yang 2016-07-20 5:54 ` [PATCH 1/1] " Robert Yang 0 siblings, 1 reply; 7+ messages in thread From: Robert Yang @ 2016-07-20 5:54 UTC (permalink / raw) To: openembedded-core The following changes since commit 8b369cdd73ab17cdf834a591b97b25840caeb740: toaster.bbclass: only scan files-in-image.txt if it exists (2016-07-19 09:03:28 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib rbt/bt http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/bt Robert Yang (1): btrfs-tools: fix installed-vs-shipped meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-20 5:54 [PATCH 0/1] btrfs-tools: fix installed-vs-shipped Robert Yang @ 2016-07-20 5:54 ` Robert Yang 2016-07-20 11:59 ` Burton, Ross 0 siblings, 1 reply; 7+ messages in thread From: Robert Yang @ 2016-07-20 5:54 UTC (permalink / raw) To: openembedded-core Fixed: MACHINE = "qemux86-64" require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" $ bitbake btrfs-tools ERROR: btrfs-tools-4.6.1-r0 do_package: QA Issue: btrfs-tools: Files/directories were installed but not shipped in any package: /lib64 /lib64/udev /lib64/udev/rules.d /lib64/udev/rules.d/64-btrfs-dm.rules Signed-off-by: Robert Yang <liezhi.yang@windriver.com> --- meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb index cede73e..fe7a194 100644 --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.6.1.bb @@ -30,4 +30,6 @@ do_configure_prepend() { S = "${WORKDIR}/git" +FILES_${PN} += "${base_libdir}/udev/rules.d" + BBCLASSEXTEND = "native" -- 2.9.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-20 5:54 ` [PATCH 1/1] " Robert Yang @ 2016-07-20 11:59 ` Burton, Ross 2016-07-21 1:47 ` Robert Yang 0 siblings, 1 reply; 7+ messages in thread From: Burton, Ross @ 2016-07-20 11:59 UTC (permalink / raw) To: Robert Yang; +Cc: OE-core [-- Attachment #1: Type: text/plain, Size: 390 bytes --] On 20 July 2016 at 06:54, Robert Yang <liezhi.yang@windriver.com> wrote: > /lib64/udev/rules.d/64-btrfs-dm.rules > This says that the btrfstools recipe is broken, not the packaging. udev looks in /lib no matter what $libdir is. udev reads UDEVLIBEXECDIR/rules.d, where udevlibexecdir=$(rootprefix)/lib/udev and we pass rootprefix=$baseprefix (which defaults to /). Ross [-- Attachment #2: Type: text/html, Size: 897 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-20 11:59 ` Burton, Ross @ 2016-07-21 1:47 ` Robert Yang 2016-07-21 6:54 ` Robert Yang 2016-07-21 8:46 ` Burton, Ross 0 siblings, 2 replies; 7+ messages in thread From: Robert Yang @ 2016-07-21 1:47 UTC (permalink / raw) To: Burton, Ross; +Cc: OE-core On 07/20/2016 07:59 PM, Burton, Ross wrote: > > On 20 July 2016 at 06:54, Robert Yang <liezhi.yang@windriver.com > <mailto:liezhi.yang@windriver.com>> wrote: > > /lib64/udev/rules.d/64-btrfs-dm.rules > > > This says that the btrfstools recipe is broken, not the packaging. udev looks > in /lib no matter what $libdir is. > > udev reads UDEVLIBEXECDIR/rules.d, where udevlibexecdir=$(rootprefix)/lib/udev > and we pass rootprefix=$baseprefix (which defaults to /). Thanks, I was misleaded by eudev, whose udevlibexecdir is ${rootlibexecdir} which is ${libdir}/udev, so it is /lib64/udev. It supports /lib/udev and /lib64/udev as the code in eudev-3.2/src/udev/udev-rules.c shows: static const char* const rules_dirs[] = { UDEV_CONF_DIR "/rules.d", UDEV_RULES_DIR, UDEV_ROOT_RUN "/udev/rules.d", UDEV_LIBEXEC_DIR "/rules.d", #ifdef HAVE_SPLIT_USR "/lib/udev/rules.d", "/usr/lib/udev/rules.d", #endif NULL}; But for systemd, it hardcoded to $(rootprefix)/lib/udev. I looked into tmp/deploy/rpms, the following packages doesn't install to /lib/udev, but /lib64/udev or /usr/lib64/udev: tmp/deploy/rpm/core2_64/pcmciautils-018-r1.0.core2_64.rpm tmp/deploy/rpm/core2_64/pulseaudio-server-8.0-r0.0.core2_64.rpm tmp/deploy/rpm/core2_64/alsa-utils-alsactl-1.1.1-r0.0.core2_64.rpm tmp/deploy/rpm/core2_64/mdadm-3.4-r0.0.core2_64.rpm tmp/deploy/rpm/core2_64/libinput-1.3.0-r0.0.core2_64.rpm tmp/deploy/rpm/core2_64/bluez5-5.40-r0.0.core2_64.rpm I will fix all of them. // Robert > > Ross ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-21 1:47 ` Robert Yang @ 2016-07-21 6:54 ` Robert Yang 2016-07-21 8:46 ` Burton, Ross 1 sibling, 0 replies; 7+ messages in thread From: Robert Yang @ 2016-07-21 6:54 UTC (permalink / raw) To: Burton, Ross; +Cc: OE-core On 07/21/2016 09:47 AM, Robert Yang wrote: > > > On 07/20/2016 07:59 PM, Burton, Ross wrote: >> >> On 20 July 2016 at 06:54, Robert Yang <liezhi.yang@windriver.com >> <mailto:liezhi.yang@windriver.com>> wrote: >> >> /lib64/udev/rules.d/64-btrfs-dm.rules >> >> >> This says that the btrfstools recipe is broken, not the packaging. udev looks >> in /lib no matter what $libdir is. >> >> udev reads UDEVLIBEXECDIR/rules.d, where udevlibexecdir=$(rootprefix)/lib/udev >> and we pass rootprefix=$baseprefix (which defaults to /). > > Thanks, I was misleaded by eudev, whose udevlibexecdir is ${rootlibexecdir} > which is ${libdir}/udev, so it is /lib64/udev. It supports /lib/udev and > /lib64/udev as the code in eudev-3.2/src/udev/udev-rules.c shows: > > static const char* const rules_dirs[] = { > UDEV_CONF_DIR "/rules.d", > UDEV_RULES_DIR, > UDEV_ROOT_RUN "/udev/rules.d", > UDEV_LIBEXEC_DIR "/rules.d", > #ifdef HAVE_SPLIT_USR > "/lib/udev/rules.d", > "/usr/lib/udev/rules.d", > #endif > NULL}; > > > But for systemd, it hardcoded to $(rootprefix)/lib/udev. > > I looked into tmp/deploy/rpms, the following packages doesn't install > to /lib/udev, but /lib64/udev or /usr/lib64/udev: > > tmp/deploy/rpm/core2_64/pcmciautils-018-r1.0.core2_64.rpm > tmp/deploy/rpm/core2_64/pulseaudio-server-8.0-r0.0.core2_64.rpm > tmp/deploy/rpm/core2_64/alsa-utils-alsactl-1.1.1-r0.0.core2_64.rpm > tmp/deploy/rpm/core2_64/mdadm-3.4-r0.0.core2_64.rpm > tmp/deploy/rpm/core2_64/libinput-1.3.0-r0.0.core2_64.rpm > tmp/deploy/rpm/core2_64/bluez5-5.40-r0.0.core2_64.rpm Hi Ross, I just found that when build with eudev, the files will be installed to /lib64/udev, and when build with systemd, they will be inistalled to /lib/udev, so I think that they are OK. They use "pkg-config --variable=udevdir udev" to find udev dir, while systemd is /lib/udev and eudev is /lib64/eudev. The one which has problem is libinput which installs /usr/lib/udev or /usr/lib64/udev, this in incorrect. Another problem is that systemd doesn't install udev.pc. I think that the fix for btrfs-tools is correct. I will send a V2 with another 2 fixes. // Robert > > I will fix all of them. > > // Robert > >> >> Ross ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-21 1:47 ` Robert Yang 2016-07-21 6:54 ` Robert Yang @ 2016-07-21 8:46 ` Burton, Ross 2016-07-21 9:02 ` Robert Yang 1 sibling, 1 reply; 7+ messages in thread From: Burton, Ross @ 2016-07-21 8:46 UTC (permalink / raw) To: Robert Yang; +Cc: OE-core [-- Attachment #1: Type: text/plain, Size: 494 bytes --] On 21 July 2016 at 02:47, Robert Yang <liezhi.yang@windriver.com> wrote: > Thanks, I was misleaded by eudev, whose udevlibexecdir is ${rootlibexecdir} > which is ${libdir}/udev, so it is /lib64/udev. It supports /lib/udev and > /lib64/udev as the code in eudev-3.2/src/udev/udev-rules.c shows: > Well thanks to eudev for introducing incompatible changes for no reason. In that case we should fix the FILES definition in bitbake.conf which packages the udev rules into PN. Ross [-- Attachment #2: Type: text/html, Size: 971 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] btrfs-tools: fix installed-vs-shipped 2016-07-21 8:46 ` Burton, Ross @ 2016-07-21 9:02 ` Robert Yang 0 siblings, 0 replies; 7+ messages in thread From: Robert Yang @ 2016-07-21 9:02 UTC (permalink / raw) To: Burton, Ross; +Cc: OE-core On 07/21/2016 04:46 PM, Burton, Ross wrote: > > On 21 July 2016 at 02:47, Robert Yang <liezhi.yang@windriver.com > <mailto:liezhi.yang@windriver.com>> wrote: > > Thanks, I was misleaded by eudev, whose udevlibexecdir is ${rootlibexecdir} > which is ${libdir}/udev, so it is /lib64/udev. It supports /lib/udev and > /lib64/udev as the code in eudev-3.2/src/udev/udev-rules.c shows: > > > Well thanks to eudev for introducing incompatible changes for no reason. > > In that case we should fix the FILES definition in bitbake.conf which packages > the udev rules into PN. Thanks, I will add ${base_libdir}/udev and send V2. // Robert > > Ross ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-07-21 9:02 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-07-20 5:54 [PATCH 0/1] btrfs-tools: fix installed-vs-shipped Robert Yang 2016-07-20 5:54 ` [PATCH 1/1] " Robert Yang 2016-07-20 11:59 ` Burton, Ross 2016-07-21 1:47 ` Robert Yang 2016-07-21 6:54 ` Robert Yang 2016-07-21 8:46 ` Burton, Ross 2016-07-21 9:02 ` Robert Yang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox