byteduck / duckOS

An x86 monolithic kernel and operating system written in modern C++. Comes with in-house graphical applications and command line utilities, plus ports of existing software. And yes, it runs DOOM!
GNU General Public License v3.0
618 stars 25 forks source link

[Ports] Can't use configure in a git cloned repository? #62

Closed PF94 closed 1 year ago

PF94 commented 1 year ago

image image

I'm assuming it's trying to look for [duckos trunk]/ports/build/bash/bash/configure, since i could get configure working if i instead specified https://ftp.gnu.org/gnu/bash/bash-5.2.15.tar.gz. However, I'm trying to use a git repository for this potential bash port instead of a tarball because I'm not experienced in patch files.

export DOWNLOAD_FILE="../bash" seems to fix the problem, but it feels hacky.

byteduck commented 1 year ago

Weird question - if you remove the ports/build/bash directory and try again, does it work? It should be cloning directly there and not into ports/build/bash/bash, but if the folder is already there it may do that.

PF94 commented 1 year ago

it is cloning into ports/build/bash, without ports/build/bash/bash existing. adding export DOWNLOAD_FILE="../bash" fixes the issue, but it feels hacky.

image (modified bash a little bit, it builds until plural.c due to this "plural.h" file that doesn't exist at all)

byteduck commented 1 year ago

I've added the ability to specify the path for the configure script, so you should be able to fix this by using export CONFIGURE_PATH="./configure" now.