Make apps/ not look at apps/progs.c

apps/ will have apps/progs.c as output, and on some systems,
the output file of a program is locked against reading.
Unfortunately, apps/progs.c is also part of the sources that make up
apps/openssl, so it's necessary to mark that file in a way that makes skip over it.

Fortunately, this is easily done with a special attribute in
apps/ and a simple adaptation of apps/

Reviewed-by: Tomas Mraz <>
(Merged from
Richard Levitte 2 years ago
parent dd05c7938d
commit da750b15c0

@ -11,7 +11,7 @@ ENDIF
# Source for the 'openssl' program
openssl.c progs.c \
openssl.c \
asn1parse.c ca.c ciphers.c crl.c crl2pkcs7.c dgst.c \
enc.c errstr.c \
genpkey.c kdf.c mac.c nseq.c passwd.c pkcs7.c \
@ -61,7 +61,12 @@ IF[{- !$disabled{apps} -}]
INCLUDE[openssl]=.. ../include include
DEPEND[openssl]=libapps.a ../libssl
# The nocheck attribute is picked up by as a signal not to look
# at that file; some systems may have locked it as the output file, and
# therefore don't allow it to be read at the same time, making
# fail.
DEPEND[${OPENSSLSRC/.c/.o} progs.o]=progs.h
# tries to read all 'openssl' sources, including progs.c, so we make

@ -28,7 +28,8 @@ my $YEAR = [localtime()]->[5] + 1900;
# the lookups in %unified_info
my @openssl_source =
map { @{$unified_info{sources}->{$_}} }
grep { /\.o$/ }
grep { /\.o$/
&& !$unified_info{attributes}->{sources}->{$apps_openssl}->{$_}->{nocheck} }
foreach my $filename (@openssl_source) {