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

./configure: No such file or directory #878

Closed
spuder opened this issue Jun 16, 2016 · 3 comments
Closed

./configure: No such file or directory #878

spuder opened this issue Jun 16, 2016 · 3 comments

Comments

@spuder
Copy link

spuder commented Jun 16, 2016

Using the following plan file

pkg_origin=spuder
pkg_name=ant
pkg_version=1.9.7
pkg_maintainer="Your Name <your email address>"
pkg_license=('Apache 2')
pkg_source=http://apache.osuosl.org//ant/binaries/apache-ant-1.9.7-bin.tar.gz
pkg_shasum=1d0b808fe82cce9bcc167f8dbb7c7e89c1d7f7534c0d9c64bf615ec7c3e6bfe5
pkg_deps=()
pkg_build_deps=(
  core/make
  core/gcc
)
pkg_bin_dirs=(bin)

Gives the following error

/hab/pkgs/core/hab-plan-build/0.7.0/20160614232259/bin/hab-plan-build: line 1700: ./configure: No such file or directory
   ant: Downloading 'http://apache.osuosl.org//ant/binaries/apache-ant-1.9.7-bin.tar.gz' to 'apache-ant-1.9.7-bin.tar.gz'
--2016-06-16 04:19:15--  http://apache.osuosl.org//ant/binaries/apache-ant-1.9.7-bin.tar.gz
Resolving apache.osuosl.org (apache.osuosl.org)... 64.50.236.52, 64.50.233.100
Connecting to apache.osuosl.org (apache.osuosl.org)|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5601575 (5.3M) [application/x-gzip]
Saving to: 'apache-ant-1.9.7-bin.tar.gz'

apache-ant-1.9.7-bi 100%[=====================>]   5.34M   509KB/s   in 9.7s

2016-06-16 04:19:25 (566 KB/s) - 'apache-ant-1.9.7-bin.tar.gz' saved [5601575/5601575]

   ant: Downloaded 'apache-ant-1.9.7-bin.tar.gz'
   ant: Verifying apache-ant-1.9.7-bin.tar.gz
   ant: Checksum verified for apache-ant-1.9.7-bin.tar.gz
   ant: Clean the cache
   ant: Unpacking apache-ant-1.9.7-bin.tar.gz
   ant: Setting build environment
mkdir: created directory '/hab/cache/src/ant-1.9.7'
   ant: Setting PREFIX=/hab/pkgs/root/ant/1.9.7/20160616041841
   ant: Setting LD_RUN_PATH=
   ant: Setting CFLAGS=-I/hab/pkgs/core/make/4.1/20160612080650/include -I/hab/pkgs/core/gcc/5.2.0/20160612064854/include
   ant: Setting LDFLAGS=-L/hab/pkgs/core/gcc/5.2.0/20160612064854/lib
   ant: Preparing to build
   ant: Building
/hab/pkgs/core/hab-plan-build/0.7.0/20160614232259/bin/hab-plan-build: line 1700: ./configure: No such file or directory
   ant: Build time: 0m44s
   ant: Exiting on error
Script done, file is /src/results/logs/..2016-06-16-041841.log

Same error happens when trying to use the exact redis plan.
https://github.com/habitat-sh/habitat/blob/master/plans/redis/plan.sh

However the cpio plan works (which is nearly identical)
https://github.com/habitat-sh/habitat/blob/master/plans/cpio/plan.sh

@spuder
Copy link
Author

spuder commented Jun 16, 2016

This must be an environmental problem. The same redis plan works on another machine.

@spuder spuder closed this as completed Jun 16, 2016
@spuder spuder reopened this Jun 16, 2016
@spuder
Copy link
Author

spuder commented Jun 16, 2016

Line 1700 and 1751 of the hab-plan-build default to 'make' and 'make install' if no build plan is specified.

The solution is to add the following to your plan

do_build() {
  return 0
}

do_install() {
  return 0
}

Solutions

  • Dont' assume user wants to 'make' 'make install'

or

  • Better Document that do_build and do_install need to be set on 'non compiled' binaries.

@elvin159
Copy link

Documentation for this use case is here:

https://www.habitat.sh/docs/create-packages-binary-only/

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

2 participants