all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: Ian Dunn <dunni@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: ELPA Archive Build Fails
Date: Mon, 11 Dec 2017 10:18:36 -0500	[thread overview]
Message-ID: <87r2s170oj.fsf@lifelogs.com> (raw)
In-Reply-To: <87wp1u8c1z.fsf@gnu.org> (Ian Dunn's message of "Sun, 10 Dec 2017 17:15:20 -0500")

On Sun, 10 Dec 2017 17:15:20 -0500 Ian Dunn <dunni@gnu.org> wrote: 

ID> With the recent changes to uni-confusables, it looks like check_copyrights is broken:

ID> $ admin/update-archive.sh
ID> ...
ID> + make -f /home/skolar/programming/elpa/build/GNUmakefile check_copyrights
ID> Compute exceptions >copyright_exceptions~
ID> diff -u "copyright_exceptions" "copyright_exceptions~"
ID> --- copyright_exceptions	2017-12-09 14:28:44.843470983 -0500
ID> +++ copyright_exceptions~	2017-12-10 16:39:12.466687835 -0500
ID> @@ -70,7 +70,8 @@
ID>  ./muse/htmlize-hack.el
ID>  ./rudel/rudel-loaddefs.el
ID>  ./uni-confusables/gen-confusables.el:;; Copyright (C) 1991-2009, 2010 Unicode, Inc.
ID> -./uni-confusables/gen-confusables.el:;; for the copyright and permission notice.
ID> +./uni-confusables/gen-confusables.el:;; gen-confusables.el.  The copyright and permissions are the same
ID> +./uni-confusables/gen-confusables.el:;; list (covered by the Unicode copyright terms in copyright.html)
ID>  ./uni-confusables/uni-confusables.el
ID>  ./uni-confusables/uni-confusables.el:;; Copyright (C) 1991-2009, 2010 Unicode, Inc.
ID>  ./uni-confusables/uni-confusables.el:;; for the copyright and permission notice.
ID> make: *** [/home/skolar/programming/elpa/build/GNUmakefile:18: check_copyrights] Error 1
ID> + signal_error 'check_copyright failed'
ID> + title='check_copyright failed'
ID> + '[' '' = '' ']'
ID> + echo 'Error: check_copyright failed'
ID> Error: check_copyright failed
ID> + exit 1

Looking at that Make target:

check_copyrights:
        @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
        @export LC_ALL=C;                                           \
        (cd packages &&                                             \
        find . -name '.git' -prune -o                               \
               -name 'test' -prune -o                               \
               -name '*.el' -print0 |                               \
            xargs -0 grep -L 'Free Software Foundation, Inc' |      \
            grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$'; \
        find . -name '.git' -prune -o -name '*.el' -type f -print | \
            while read f; do                                        \
                fquoted="$$(echo $$f|tr '|' '_')";                  \
                sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N'   \
                    -e '/Free Software Foundation/d'                \
                    -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p"    \
                   "$$f";                                           \
            done) | sort >$(CR_EXCEPTIONS)~
        diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"

I can sort of understand the shell logic, but not why it's there.

Could someone (Stefan?) please either add comments to the GNUMakefile
explaining what it does and why, or explain here and I'll add the
comments?

Ideally the output of the check would also be improved to explain what's
wrong. I can try to do that as well.

Thanks
Ted



  reply	other threads:[~2017-12-11 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10 22:15 ELPA Archive Build Fails Ian Dunn
2017-12-11 15:18 ` Ted Zlatanov [this message]
2017-12-11 15:41   ` Stefan Monnier
2017-12-14  5:28     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2s170oj.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=dunni@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.