Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl missing from auto-build firmware #150

Closed
Juul opened this issue Sep 30, 2018 · 6 comments
Closed

curl missing from auto-build firmware #150

Juul opened this issue Sep 30, 2018 · 6 comments

Comments

@Juul
Copy link
Member

Juul commented Sep 30, 2018

The curl package isn't installed on the mynet n600 image I got from https://builds.sudomesh.org/sudowrt-firmware/latest/

This makes autoconf not working.

@Juul
Copy link
Member Author

Juul commented Sep 30, 2018

@paidforby any ideas?

@eenblam
Copy link
Contributor

eenblam commented Sep 30, 2018

Oh, weird! I noticed this in my own builds - see #145. I didn't realize it wasn't just mine, so I thought my builds were broken somehow.

EDIT: This is also what was blocking me from testing #140.

@paidforby
Copy link

weird, curl is definitely listed in packages. i would start by running the rebuild locally with debugging enabled by adding V=s option to make in this line in build_lib, https://github.com/sudomesh/sudowrt-firmware/blob/master/build_lib#L346 and check what happens when it tries to install curl. Maybe something changed with the curl package for openwrt? I don't have an N600 on hand to test with, can try reproducing later this week.

@paidforby
Copy link

few things I notice after running a fresh build (not a rebuild),

  1. We are installing both libcurl and curl. Wonder if there's conflict? Or what's the difference?
  2. The curl is found in 2 or 3 locations,
    feeds/oldpackages/package/network/utils/curl
    feeds/openwrt/lang/perl-www-curl
    feeds/wlanslovenija/net/curl
    What's the difference? Which, if any, are getting installed?
  3. Is this just an issue when "rebuilding" or is it an issue on first build also?

@paidforby
Copy link

Notes regarding test builds I ran today,

  • fresh build of firmware in a new docker container, resulting binary does have curl installed.
  • create a new container from the image generated by the fresh build, re-run make using build_only as entrypoiny, which calls openwrt_rebuilder function from build_lib, new binary does not have curl installed.
  • create a new container from the image generated by the fresh build, re-run make using build_pre as entrypoint, which reruns the full build in the same way as a fresh builds, new binary does have curl installed! The build still only took a few minutes to complete, just like the rebuilder.

This third attempt appears to be the solution, I'm guessing the rebuilder function was missing some crucial configurations that prevented some packages from being installed.

@paidforby
Copy link

cool, the images stored at http://builds.sudomesh.org/sudowrt-firmware/latest/ar71xx/ now have curl installed. There also appeared to be an issue with the docker hub image (maybe because I had ran the rebuilder once it in?) so I uploaded a fresh image that I knew was clean. I encourage @bennlich or @Juul to try flashing a node with latest, autoconf should now work, gonna close this issue for now.

@sudomesh sudomesh deleted a comment from paidforby Oct 22, 2018
@sudomesh sudomesh deleted a comment from paidforby Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants