Subject: Re: bug#63749: configure script does not work properly

From: Pádraig Brady <[email-masked]>
Date: Sat, 27 May 2023 12:54:00 +0100

tag 63749 notabug
close 63749
stop

On 27/05/2023 07:41, Мегахит wrote:
> Debian Sid amd64, building packages for Linux From Scratch
> 
> *checking whether mknod can create fifo without root privileges...
> configure: error: in `/media/*usb mount directory*/sources/coreutils':*
> *configure: error: you should not run configure as root (set
> FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)*
> 
> then the configure script exits.
> setting FORCE_UNSAFE_CONFIGURE to 1 gives the same result no matter how I
> set it.
> running the script with no sudo or su -l results in security restrictions
> which do not allow me to configure even the first step:
> *./configure: line 4404: config.log: Permission denied*
> *./configure: line 4414: config.log: Permission denied*
> 
> chmod'ing everything in the directory will not do much since created files
> are always restricted to the user, if configure will even create those.

You should be able to force the check as root with:
   FORCE_UNSAFE_CONFIGURE=1 ./configure

You should be able to avoid the check with:
   gl_cv_func_mknod_works=yes ./configure

cheers,
Pádraig