pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: abysmal check-portability speed



Jonathan Perkin <jperkin%mnx.io@localhost> writes:

> You might find this patch helps:
>
>   https://github.com/TritonDataCenter/pkgsrc/commit/21aa3cb38903181f291ceb5ccb0245af12fe7a00

Thanks - that is a huge clue to what's going on.

It seems that NetBSD's /bin/sh does not support read -n.

As for tlaronde's questions about sed 1q -- I don't see how that fixes
the issue of a file having 1 line that is megabytes.

I tried this, and it's faster than standard:

                NetBSD*)
                        firstline=`dd if="$fname" bs=512 count=1 2> /dev/null | sed 1q` || continue
                        ;;


I wonder if we should either

  - add any such monster files to CHECK_PORTABILITY_SKIP
  - don't check files that are over a megabyte (didn't check that this
    helps)



Home | Main Index | Thread Index | Old Index