aboutsummaryrefslogtreecommitdiff
#! /usr/bin/env perl
# Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License").  You may not use
# this file except in compliance with the License.  You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html

use strict;
use warnings;

use File::Spec::Functions;
use File::Basename;
#use File::Copy;
#use File::Path;
use lib catdir(dirname($0), "perl");
use OpenSSL::Util::Pod;

my %dups;

sub parsenum()
{
    my $file = shift;
    my @apis;

    open my $IN, '<', $file
        or die "Can't open $file, $!, stopped";

    while ( <$IN> ) {
        next if /\sNOEXIST/;
        next if /EXPORT_VAR_AS_FUNC/;
        push @apis, $1 if /([^\s]+).\s/;
    }

    close $IN;

    print "# Found ", scalar(@apis), " in $file\n";
    return sort @apis;
}

sub getdocced()
{
    my $dir = shift;
    my %return;

    foreach my $pod ( glob("$dir/*.pod") ) {
        next if $pod eq 'doc/crypto/crypto.pod';
        next if $pod eq 'doc/ssl/ssl.pod';
        my %podinfo = extract_pod_info($pod);
        foreach my $n ( @{$podinfo{names}} ) {
            $return{$n} = $pod;
            print "# Duplicate $n in $pod and $dups{$n}\n"
                if defined $dups{$n};
            $dups{$n} = $pod;
        }
    }

    return %return;
}

sub printem()
{
    my $docdir = shift;
    my $numfile = shift;
    my %docced = &getdocced($docdir);
    my $count = 0;

    foreach my $func ( &parsenum($numfile) ) {
        next if $docced{$func};

        # Skip ASN1 utilities
        next if $func =~ /^ASN1_/;

        print $func, "\n";
        $count++;
    }
    print "# Found $count missing from $numfile\n\n";
}


&printem('doc/crypto', 'util/libcrypto.num');
&printem('doc/ssl', 'util/libssl.num');
cm (go-github-com-hjson-hjson-go): Rename variable to go-github-com-hjson-hjson-go-v4 to reflect go.mod import path. Apply new package style. * gnu/packages/networking.scm (yggdrasil) [propagated-inputs]: Remove go-github-com-hjson-hjson-go, add go-github-com-hjson-hjson-go-v4. * gnu/packages/uucp.scm (nncp) [propagated-inputs]: Remove go-github-com-hjson-hjson-go, add go-github-com-hjson-hjson-go-v4. Change-Id: I9e99f208feaf535d9946e11dff09a81fc4a01a7a 2024-06-29gnu: nncp: Apply "-trimpath" flag.Sharlatan Hellseher * gnu/packages/uucp.scm (nncp) [arguments]: <#:phases>: Remove 'remove-go-references phase. Set BUILDFLAGS=-trimpath to replace 'remove-go-references phase in 'configure phase. Change-Id: I7cfe14174e38708d36329d8e33ed6bb1ce0ae220 2024-02-13gnu: go-github-com-klauspost-compress: Move to golang-compression.Sharlatan Hellseher * gnu/packages/golang.scm (go-github-com-klauspost-compress): Move from here ... * gnu/packages/golang-compression.scm: ... to here. * gnu/packages/golang-compression.scm: Add (gnu packages golang-compression) module. * gnu/packages/golang-crypto.scm: As above. * gnu/packages/golang-web.scm: As above. * gnu/packages/uucp.scm: As above. Change-Id: Ia99f1e6aae7f75940fc150eb02862c0b3e9f3325 2024-02-13gnu: go-golang-org-x-net: Move to golang-build.Sharlatan Hellseher * gnu/packages/golang.scm (go-golang-org-x-net, go-golang-org-x-net-0.17, go-golang-org-x-net-html): Move from here ... * gnu/packages/golang-build.scm: ... to here. * gnu/packages/configuration-management.scm: Add (gnu packages golang-build) module. * gnu/packages/education.scm: As above ... * gnu/packages/file-systems.scm: As above ... * gnu/packages/golang-check.scm: As above ... * gnu/packages/golang-crypto.scm: As above ... * gnu/packages/golang-web.scm: As above ... * gnu/packages/golang-xyz.scm: As above ... * gnu/packages/golang.scm: As above ... * gnu/packages/ipfs.scm: As above ... * gnu/packages/messaging.scm: As above ... * gnu/packages/networking.scm: As above ... * gnu/packages/uucp.scm: As above ... * gnu/packages/version-control.scm: As above ... Change-Id: If009e62555ada293f17cf0f42fde82c21ef4615e 2024-01-28gnu: go-lukechampine-com-blake3: Move to (gnu packages golang-crypto).Sharlatan Hellseher * gnu/packages/golang.scm (go-lukechampine-com-blake3): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. * gnu/packages/uucp.scm: Add (gnu packages golang-crypto) to used modules. Change-Id: I56dba8380317a0f58f92140889611ac3075af2cf 2024-01-03gnu: go-github-com-hjson-hjson-go: Move to (gnu packages golang-web).Sharlatan Hellseher * gnu/packages/golang.scm (go-github-com-hjson-hjson-go): Move from here... * gnu/packages/golang-web.scm: ...to here. * gnu/packages/networking.scm: Add (gnu packages golang-web) module. * gnu/packages/uucp.scm: As above. Change-Id: If1ba5e4d866ce74fa35ae9126c6ba4cd0b149dab 2021-12-13gnu: Simplify package inputs.Ludovic Courtès This commit was obtained by running: ./pre-inst-env guix style without any additional argument. 2021-08-04gnu: Add nncp.Arun Isaac * gnu/packages/uucp.scm (nncp): New variable.