# Mender-configure: Files installed but not shipped

**URL:** https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289
**Category:** General Discussions
**Tags:** yocto
**Created:** [March 3, 2021, 7:46am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289 "2021-03-03T07:46:32Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)
#### Post date: [March 3, 2021, 7:46am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/1 "2021-03-03T07:46:32Z")

</div>

Hello everybody,

I am currently struggling with a Yocto build error using the meta-mender layer. The error occurs while switching from my NAND flash build (which totally works fine) to an SD-Card build using my evaluation board by just adding the “-sd” tag for my machine. The error in detail:

 ![mender_not_shipped](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/0/08b71faf4dad68d657b259744cab0189fde8eefd.png)

Besides the error message, the provided log file does not provide any further information besides some debug output.

As far as I can see, this is a Yocto error message, indicating that some packages are not used in any produced output. Looking for the left-over packages, systems should be crucial to the system architecture.

Any thoughts about this?

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 3, 2021, 8:08am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/2 "2021-03-03T08:08:11Z")

</div>

Hmm, that package is not supposed to be installed with dunfell at all. This is a bug. Thanks, I’m in the process of updating dunfell and will take a look at this.

In the meantime, does it help if you revert to the `dunfell-v2021.01` tag?

---

<div class="post-metadata">

### Author: ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)
#### Post date: [March 3, 2021, 8:39am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/3 "2021-03-03T08:39:51Z")

</div>

Hi @kacf  
Thanks for the quick reply. Switching to the tag fixed the problem, it built with no further errors, thanks for the help.  
Is there an estimated date for a dunfell-adjusted release, where I could try this again?

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 3, 2021, 8:55am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/4 "2021-03-03T08:55:35Z")

</div>

No, but it should only be a matter of days. This is supposed be a monthly routine update. I will have to solve that problem you encountered first though.

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 4, 2021, 9:14am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/5 "2021-03-04T09:14:42Z")

</div>

One more question: I realize now that `meta-mender/dunfell` is at the same commit as the `dunfell-v2021.01` tag. Are you sure you were not using `meta-mender/master`?

---

<div class="post-metadata">

### Author: ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)
#### Post date: [March 4, 2021, 10:36am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/6 "2021-03-04T10:36:06Z")

</div>

Honestly, I am not. In the forefield, I played along with several branches across my whole Yocto project. As a result, I could have used accidentally the master branch, yes. Thanks for letting me know.

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 4, 2021, 12:57pm UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/7 "2021-03-04T12:57:58Z")

</div>

Hehe, thanks for the honesty! 🙂

I will treat this as a non-issue for now then. I can’t reproduce it, and can’t really see how it could happen unless master was checked out by mistake.

---

<div class="post-metadata">

### Author: ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)
#### Post date: [March 4, 2021, 2:40pm UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/8 "2021-03-04T14:40:25Z")

</div>

I just double-checked it: you are totally right in both points:

1. the mentioned tag points to the current dunfell branch
2. my branch handling for the meta-mender repo was somehow messed-up  
Everything now works as expected. Sorry for creating this confusion and thanks for the support!

🎈

---

<div class="post-metadata">

### Author: ![chadrockey](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/chadrockey/32/1885_2.png) [@chadrockey](https://hub.mender.io/u/chadrockey)
#### Post date: [April 16, 2023, 1:53am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/9 "2023-04-16T01:53:14Z")

</div>

@kacf I also see this error with dunfell and am hoping this is related enough as this is where google searches end up.

I confirmed my meta-mender is at

```auto
meta-mender$ git status
HEAD detached at dunfell-v2023.02

```

mender-configure-demo and mender-configure-scripts are included because I’m still using demo code, so meta-mender-demo/recipes-core/packagegroups/packagegroup-core-boot.bbappend is RDEPENDING these recipes.

The issue I tracked down is that:

```auto
${libdir}/mender-configure/apply-device-config.d/mender-demo-raspberrypi-led \

```

produces the error in this thread with dunfell (but not kirkstone), meanwhile removing the ${libdir} and hardcoding:

```auto
/usr/lib/mender-configure/apply-device-config.d/mender-demo-raspberrypi-led \

```

Allows everything to build as expected.

Do you know an easy way to verify ${libdir} in mender-configure.inc ? My guess is that make install and the %{libdir} aren’t agreeing where the files should actually end up.

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [April 17, 2023, 5:52am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/10 "2023-04-17T05:52:29Z")

</div>

You can check the value of `libdir` by running `bitbake -e core-image-minimal > output.log`, and then search for `libdir=` in `output.log`. You can also look in `poky/meta/conf/bitbake.conf` if there another variable which looks more suitable.

---

<div class="post-metadata">

### Author: ![chadrockey](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/chadrockey/32/1885_2.png) [@chadrockey](https://hub.mender.io/u/chadrockey)
#### Post date: [April 17, 2023, 3:10pm UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/11 "2023-04-17T15:10:11Z")

</div>

Yes @kacf , I can confirm that the issue is this from the bitbake -e

```auto
export libdir="/usr/lib64"

```

Looks like it doesn’t agree with this line in the makefile?

> <https://github.com/mendersoftware/mender-configure-module/blob/master/Makefile#L4>

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [April 18, 2023, 7:29am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/12 "2023-04-18T07:29:04Z")

</div>

I see. Probably `/usr/lib` should be hardcoded in the `FILES` variable in our layer instead of using `libdir`, because this location is referenced in the mender-configure source files, so it cannot just be changed without have repercussions.

In hindsight it was probably the wrong choice by us to put it in `/usr/lib` at all, since they are cross platform script files and not library files. But that is too intrusive to change now.

So if you apply the following change to the meta-mender layer, does it work for you?

```diff
diff --git a/meta-mender-core/recipes-mender/mender-configure/mender-configure.inc b/meta-mender-core/recipes-mender/mender-configure/mender-configure.inc
index 6c8d7ea2..69705e0b 100644
--- a/meta-mender-core/recipes-mender/mender-configure/mender-configure.inc
+++ b/meta-mender-core/recipes-mender/mender-configure/mender-configure.inc
@@ -23,12 +23,12 @@ FILES_${PN}_append_mender-systemd = " \
 SYSTEMD_SERVICE_${PN}_mender-systemd = "mender-configure-apply-device-config.service"
 
 FILES_${PN}-demo = " \
- ${libdir}/mender-configure/apply-device-config.d/mender-demo-raspberrypi-led \
+ /usr/lib/mender-configure/apply-device-config.d/mender-demo-raspberrypi-led \
     /data/mender-configure/device-config.json \
 "
 
 FILES_${PN}-scripts = " \
- ${libdir}/mender-configure/apply-device-config.d/timezone \
+ /usr/lib/mender-configure/apply-device-config.d/timezone \
 "
 
 S = "${WORKDIR}/git"

```

If it works I think we should apply that change to our layer, not just in dunfell, but in master and kirkstone too. Even though they might work right now, this could break for the same reason as dunfell if upstream decides to change anything.

---

<div class="post-metadata">

### Author: ![smart4energy](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@smart4energy](https://hub.mender.io/u/smart4energy)
#### Post date: [May 11, 2023, 10:13am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/13 "2023-05-11T10:13:19Z")

</div>

> [@kacf](#):
>
> libdir

I had the same problem with dunfell.  
So i tried your last solution to change it to /usr/lib and it works.

So i can confirm this fix

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [May 31, 2023, 6:06am UTC](https://hub.mender.io/t/mender-configure-files-installed-but-not-shipped/3289/14 "2023-05-31T06:06:40Z")

</div>

Thanks, I have submitted it [here](https://github.com/mendersoftware/meta-mender/pull/1948).
