Bug 11236

Summary: util-linux fails to build on Travis CI when python also selected
Product: buildroot Reporter: Frank Vasquez <frankv>
Component: OtherAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: normal CC: buildroot, r.jacob2002, yann.morin.1998
Priority: P5    
Version: 2018.02.1   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Frank Vasquez 2018-08-16 14:40:19 UTC
Here is a link to the build output.  Notice that Python.h cannot be located.

https://gist.github.com/fvasquez/1d4e94b37bd3388a3e6051d03d25fbd2

The failure only occurs when building on Travis CI.  The same defconfig builds just fine on my Ubuntu 16.04 laptop.  I tried adding python-dev to apt packages in .travis.yml to no avail.
Comment 1 Yann E. MORIN 2018-08-16 15:12:06 UTC
Frank,

As discussed on IRC, this is an environment problem on TravisCI.

I suggested you investigate what /opt/pyenv/shims is for, and similarly
for all the other stuff in PATH. You may have to sanitise the PATH
somehow before calling Buildroot.

Otherwise, there's not much we can do about it... :-/

> I tried adding python-dev

Which I explained on IRC was useless because your error is about building
util-linux for the target, so the host python devel files are useless.

Closing as not reproducible on a standard environment...
Comment 2 Raphael Jacob 2018-08-16 18:17:48 UTC
Hi,

@Yann Morin:
I think you confound Frank and me. I was on IRC and you told me to investigate more.

I would keep this open. Maybe we can fix this in buildroot.

Raphael
Comment 3 Frank Vasquez 2018-08-18 00:24:57 UTC
Thanks, Raphael.  Many Buildroot users like me rely on Travis CI.  It sucks that Travis CI is still on Ubuntu 14.04 and I doubt that building inside a Docker image will fix the issue.  Probably some form of PATH sanitization as Yann points out is what's required.  Let me know if I can help in any way.

Cheers,
Frank
Comment 4 Raphael Jacob 2018-08-18 07:23:03 UTC
(In reply to Frank Vasquez from comment #3)
What would be the problem with using a docker image of the latest debian/ubuntu? What did you try to fix this problem? Did it work? Sadly I had no time for further debugging yet.

Raphael
Comment 5 Frank Vasquez 2018-08-20 15:26:31 UTC
I will try reconfiguring my Travis CI build with an Ubuntu 16.04 Docker image when I get a chance.

Cheers,
Frank
Comment 6 Frank Vasquez 2018-08-28 10:52:45 UTC
I can successfully build util-linux with python also selected on Travis CI inside a Docker container.

Cheers,
Frank