Commit graph

85 commits

Author SHA1 Message Date
wiz
80e6bdac0b py-anita: fix PLIST for python 2.7 2022-01-22 14:38:55 +00:00
wiz
71cce5e81d egg.mk: remove --single-version-externally-managed
setuptools has this as default when --root is used (since version 0.6a11).
2022-01-09 11:58:13 +00:00
tnn
66b072a2b6 fix typo 2022-01-07 11:46:56 +00:00
wiz
bb579283d0 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:53:26 +00:00
wiz
0c164b286e *: fix packaging with python 2.7 2022-01-04 07:13:05 +00:00
martin
84417991d4 py-anita: convert to egg.mk, bump pkgrevision 2022-01-01 12:42:38 +00:00
nia
28c1048bad misc: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

The following distfiles could not be fetched (possibly fetched
conditionally?):

./misc/libreoffice/distinfo libreoffice/harfbuzz-2.6.4.tar.xz
2021-10-26 10:58:55 +00:00
nia
60e6853f70 misc: Remove SHA1 hashes for distfiles 2021-10-07 14:35:11 +00:00
gson
fdb83a36f5 misc/py-anita: update to 2.9.
Changes from 2.8:

Support the new "gpufw" set.

Actually reduce the default test timeout to 1 hour as documented in
version 2.5 when anita is invoked as a program rather than as a
library.

Log a message to the structured log file on timeout so that the time
when the timeout occurred can be determined from the message timestamp.

Define a scratch disk for alpha (wd1c) so that ATF test results can
be exported to the host.

In addition to the plain-text ATF test report printed to the console
as the tests progress, also store a clean copy without other console
output in test.txt and export it to the host.  Suggested by
Greg Troxel.

Fix failure to destroy the Xen DomU used by the installation stage
before trying to create the one for the boot stage when running
under Python 3.

Fix failure to log in after reboot when running "anita test" on a
self-resizing image without running a separate "anita install" first.
From Joerg Sonnenberger.

Support coypu's proposed sysinst entropy patch.

Remove extra newline in reponse to entropy prompt.
2021-09-27 17:16:04 +00:00
gson
32c9efb5f2 misc/py-anita: update to 2.8
Changes from 2.7:

Preemeptively support sysinst requesting entropy as a single line.

Fix bug in 2.7 that caused the provision of entropy to the installer
to fail when running under Python 3.

Omit ",cdrom" when passing a CD-ROM device to a Xen PV domain because
doing so will cause NetBSD/Xen to ignore device since xenbus_probe.c
1.51.
2020-11-11 12:24:52 +00:00
gson
ffeca82a68 misc/py-anita: update Xen reference
In options.mk, there was a reference to Xen 4.2 which is no longer in pkgsrc.
Update it to 4.13.
2020-11-07 11:11:24 +00:00
gson
809b522ee2 misc/py-anita: update to 2.7
Changes from 2.6:

Fix bug in 2.6 that caused the provision of entropy to the installer
to fail when running under Python 2.
2020-11-07 11:05:26 +00:00
gson
f19c137c10 misc/py-anita: update to 2.6.
Changes from 2.5:

Support upcoming sysinst changes to support interactive input of
entropy.

Add support for NetBSD/alpha targets.

The "interact" mode now supports interaction with the boot process,
except when the --run option is used.
2020-11-05 08:02:23 +00:00
gson
5e9dd85eb5 misc/py-anita: update to 2.5
Changes from 2.4:

Reset the test timeout once per test case, not just once per test
program, and reduce the default timeout to 1 hour.
2020-08-22 11:24:04 +00:00
gson
0a1fdaa021 misc/py-anita: update to 2.4.
Changes from 2.3:

Deal with the root device name of evbarm-aarch64 changing as a result
of the the switch to GPT at source date 2020.05.24.18.44.46.
2020-06-04 19:44:41 +00:00
rillig
cc51c7a078 misc/py-anita: skip SUBST block that would be a no-op
This ensures that the package can be built with SUBST_NOOP_OK=no.
2020-04-27 17:28:37 +00:00
gson
9700ccde0a misc/py-anita: update to 2.3.
Changes from 2.2:

Deal with curses sometimes optimizing away the final "s" in "Debug
symbols", causing the debug set to not be installed.

Increase default memory size for amd64 from 128M to 192M, as the
installer no longer runs reliably in 128M without exhausting memory.

Keep logging the console output for a few seconds after shutdown to
catch the autoconf detach messages and possible panics on detach.

When logging shell commands, avoid line breaks between options and
their arguments.

Support the "virt" machine type for evbarm-eamv7hf as an alternative
to the default of vexpress-a15.  To enable, use the command line
option --machine virt.
2020-03-20 12:46:15 +00:00
rillig
9637f7852e all: migrate homepages from http to https
pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
2020-01-26 17:30:40 +00:00
gson
1c3eec8161 misc/py-anita: update to 2.2.
Changes from 2.1:

Clean up some b'' quoting that appeared around strings in the log
output under python3.

New command line option --image-format for selecting the guest disk
image format.  Supported values are "dense" (the default) and
"sparse".

Reset the install timeout whenever a new set extraction or other
command is started by sysinst, and reduce the timeout to 1 hour.
This allows hangs in the install phase to be detected more quickly.

Reset the test timeout whenever a new test program is started by ATF,
and reduce the default timeout to 2 hours.  If you are passing a
non-default test timeout with the --test-timeout option, it can also
be reduced.  This allows hangs during test runs to be detected more
quickly.

Fix the sparc64 CD install which was broken in 2.1, by adding an
index=2 attribute to the virtual CD drive.

Make NetBSD-current/macppc boot by passing "-prom-env qemu_boot_hack=y"
to qemu-system-ppc.  From Joerg Sonnenberger.
2020-01-06 11:48:03 +00:00
gson
797cfaaea1 misc/py-anita: update to 2.1.
Changes from 2.0:

Add support for the newly added rescue set.

Deal with the sysinst changes of 2019-11-16.

Add support for macppc targets, based on a patch from Joerg
Sonnenberger.

Fix failure to install the sharesrc set due to curses optimization.
2019-11-18 08:00:49 +00:00
rillig
191ad3f718 misc: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 17:04:19 +00:00
gson
325e76a64f misc/py-anita: update to 2.0.
Changes from 1.49:

In the test suite, run the tests in parallel to reduce the run time.

Downloads can now be interrupted using SIGINT (control-C).

On NetBSD, invoke makefs using its absolute path /usr/sbin/makefs
as /usr/sbin may not be in PATH.

Add support for Python 3.

When using qemu from pkgsrc, log the exact pkgsrc version of qemu and
glib2, including any nb suffix.
2019-09-18 08:37:09 +00:00
adam
435af01a8b Changed PYTHON_VERSIONS_INCOMPATIBLE to PYTHON_VERSIONS_ACCEPTED; needed for future Python 3.8 2019-09-02 13:19:35 +00:00
gson
6b684140fa misc/py-anita: update to 1.49
Changes from 1.48:

Fix issue introduced in 1.48 that caused the Xen install kernel to be
used instead of the regular Xen kernel when booting the installed
system.
2019-06-11 17:12:19 +00:00
gson
578157f0f2 misc/py-anita: update to 1.48
Changes from 1.47:

When sysinst offers a choice of partitioning schemes, anita now uses
the one listed first.  Therefore, i386 and amd64 installs of versions
where sysinst offers GPT as the first choice will use GPT rather than
MBR as was previously the case.

Add support for NetBSD/hppa targets.

Support some upcoming sysinst UI changes.

The structured log file is now flushed after each line so that
it can be used to debug a hung installation without waiting for
it to time out first.

Move the automatic determination of the type of the URL argument
(e.g., distribution directory vs. installation ISO) into a new library
function anita.distribution() so that it can be used not only from the
command line but also by Python programs calling anita as a library.

When using a pre-installed image, "anita install" will now boot it to
let it resize itself, rather than postponing the resize to when the
image is later booted in another mode such as "anita test".
2019-06-07 18:54:51 +00:00
maya
7820bc7a2f fix some whitespace, mostly introduced in the previous
python 3.4 / 3.5 removal commit.
2019-04-26 14:12:31 +00:00
maya
5901ac0824 Omit mentions of python 34 and 35, after those were removed.
- Includes some whitespace changes, to be handled in a separate commit.
2019-04-26 13:13:41 +00:00
gson
847b39efdb misc/py-anita: update to 1.47.
Changes from 1.46:

Deal with the removal of the VEXPRESS_A15 kernel, used by the
evbarm-earmv7hf target, in favor of GENERIC.
2019-01-27 14:28:48 +00:00
gson
7bd9012b30 misc/py-anita: update to 1.46
Changes from 1.45:

Add support for NetBSD/evbarm-aarch64 targets.

Add support for NetBSD/sparc64 targets, from Utkarsh Anand.

The run_tests() method now halts the VM, to ensure that the
scratch disk containing ATF test results is flushed by the
guest before being read by the host.
2018-10-20 15:33:35 +00:00
gson
8722710180 misc/py-anita: update to 1.45
Changes from 1.44:

Support xz compressed distribution sets.

Support NetBSD/vax via simh.  Installing and booting works;
running the ATF tests does not.  From Utkarsh Anand.

Mark the NumberedVersion and Release classes as deprecated.

Remove the obsolete clases DailyBuild and LocalBuild.

Fix a bug that caused the guest OS to unnecessarily boot twice
when entering "interact" mode since version 1.43.

Don't send a spurious "x" at the end of installation.

Log the pexpect version.
2018-10-08 13:50:04 +00:00
adam
a31bce9748 extend PYTHON_VERSIONS_ for Python 3.7 2018-07-03 05:03:01 +00:00
gson
c9f648f1a8 misc/py-anita: update to 1.44
Changes since 1.42:

Disable optimization avoiding copies when installing from a file: URL
or local path, as it broke installation of source sets.

Deal with pexpect 4.3.1 requiring delayafterclose and
delayafterterminate to be set in two different places
(https://github.com/pexpect/pexpect/issues/462).

Support installing on disks with a corrupt or out-of-date MBR.

Log the command line arguments on startup.

- 1.43 released -

Log interactive mode input and output to the structured log file.

Add support for NetBSD/hpcmips targets, from Utkarsh Anand.
2018-03-08 16:43:40 +00:00
gson
2302238342 Update misc/py-anita to 1.42. Changes from 1.41:
VM console input is no longer logged to stdout, to keep it from
appearing twice when echoed by the VM.

Fix VM console output appearing twice in interact mode (again).

Add support for gxemul as a new VMM and NetBSD/pmax as a new guest.
From Utkarsh Anand.

Increase the default test timeout to 24 hours, as the tests now
take much longer to run than before due to a combination of
the addition of new tests and qemu performance regressions.

Added target support for NetBSD/evbarm-earmv7hf, from Utkarsh Anand.
This installs from a pre-built image rather than using sysinst.

When installing from a file: URL or local path, avoid creating
unnecessary copies of the release files.  From Utkarsh Anand.

New command line option --tests for explicitly selecting the the Kyua
test framework instead of ATF, from Utkarsh Anand.
2017-07-27 08:26:46 +00:00
gson
97d5bfb17c misc/py-anita to 1.41. Pkgsrc changes:
Update xen dependency in options.mk from 4.1 to 4.2
since 4.1 is no longer in pkgsrc.

Make the build not fail when PKGSRC_RUN_TEST=yes.

Upstream changes since 1.40:

If the VMM exits unexpectedly while running the ATF tests or some
other shell command, log the exit status and the signal that caused it
to exit (if any).

Log the qemu version used to stdout.

Fix reference to uninitialized variable when reporting a
timeout waiting for VM halt confirmation.

Increase default child timeout from 300 to 600 seconds
to support VMMs where power-up takes a long time.

Increase child.delayafterclose and child.delayafterterminate
to support VMMs where power-down takes a long time.

Run more network diagnostics after failed network installs.

Add timestamps to structured log output.
2017-05-28 12:48:53 +00:00
wiz
7f84153239 Add python-3.6 to incompatible versions. 2017-01-01 14:43:22 +00:00
kamil
5ae4aa0c76 Cleanup comments after qemu-0 removal 2016-10-04 14:50:07 +00:00
kamil
3dc9d7d384 Drop emulators/qemu0 support
qemu0 is going to be removed from pkgsrc.

Bump PKGREVISION to 1
2016-10-04 14:47:32 +00:00
gson
508349dddc Update misc/py-anita to 1.40. Changes from 1.39:
Work around a bug in the urllib library of Python 2.7.12 that causes
FTP transfers to fail with the error message "[Errno ftp error] 200
Type set to I"; see https://bugs.python.org/issue27973.

When halting the child results in an EOF, don't print the exception
since that may be confused with a failure.

Run vmstat -s at the end of the ATF tests to help diagnose issues
like excessive paging due to insufficient memory.

Increase the default of the --test-timeout option from 3 hours to 8
hours, since the sparc tests are now taking more than 5 hours.

Increase the default disk size to 1526M, as 1G is no longer enough
for amd64.

Pass format=raw in the qemu -drive option to suppress warnings in
recent qemu versions.
2016-09-14 20:21:16 +00:00
wiz
ad0031c15e Remove python33: adapt all packages that refer to it. 2016-07-09 13:03:30 +00:00
jperkin
20964bdbbf Use PKGMANDIR. 2016-04-21 13:40:04 +00:00
ryoon
731dc5c81b Update to 1.39
Changelog:
- 1.39 released -

Deal with incompatible change in the output format of the "info block"
command in qemu 2.5.0.

Fix bug where the exit status of the shell command specified with the
--run option was not propagated to the exit status of anita.

New public method start_boot, to facilitate writing test cases that
interact with the boot prompt.

The structured log file now also contains informational messages,
of the form info('message').
2015-12-25 13:29:16 +00:00
adam
7f3b4730ad Extend PYTHON_VERSIONS_INCOMPATIBLE to 35 2015-12-05 21:25:27 +00:00
agc
23064a80b9 Add SHA512 digests for distfiles for misc category
Problems found locating distfiles:
	Package colorls: missing distfile ls.tar.gz
	Package molden: missing distfile molden-4.6/molden4.6.tar.gz
	Package softmaker-office-demo: missing distfile ofl06trial.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 23:49:31 +00:00
gson
1112ddad28 Update misc/py-anita to 1.38. Changes from 1.37:
Deal with the sysinst message changes of 2015-04-30.

When halting the VM, don't quit as soon as the text "halted" is seen,
because it may be part the message "halted by root", which is printed
before disks have been synced.  Instead look for "The operating system
has halted", EOF, or a timeout.
2015-05-02 07:54:11 +00:00
gson
33336d1429 Update misc/py-anita to 1.37. Changes from 1.36:
The global test() function is no longer supported, use the run_tests()
method of the Anita object instead.

When halting the VM, do not attempt to log in if already logged in.

Make the distinctive shell prompts different from one invocation of
anita to another, so that anita can run itself recursively on the VM
without the outer instance mistaking a shell prompt from an inner
instance for one of its own.
2015-03-05 13:13:25 +00:00
gson
d03121eabf Update misc/py-anita to 1.36.
The previous commit message accidentally contained the changes from
1.35 to 1.36 rather than those from 1.34 to 1.35.  The changes from
1.34 to 1.35  were:

Support Linux host systems that have genisoimage but not mkisofs, such
as Debian 7.

New command line option --run-timeout.
2015-03-03 14:45:10 +00:00
gson
ee9ff618a8 Update misc/py-anita to 1.35. Changes from 1.34:
When running a shell command, wrap the exit status in distictive text
so that it can be reliably matched in the presence of buffered output
containing other numeric strings.

Halt the VM when done.

Print the qemu command.
2015-03-03 14:26:00 +00:00
gson
16ed8937cd Update misc/py-anita to 1.34. Changes from 1.33:
Do not require releases to contain install floppies, since amd64 no
longer has them.

The default value of the --boot-from option is now "cdrom" if the
install floppies are missing.

When reporting a failed download of optional files, be clearer that
this is not an error.  Also, don't treat arbitrary exceptions during
downloads as indicating a missing file, only the expected IOError.

Increase the default disk size from 768M to 1G, as 768M is no
longer sufficient for amd64.

New command line option --structured-log-file.  This is like
--structured-log but takes the name of a log file as an
argument, and the structured logging is in addition to, not
instead of, the traditional logging to stdout.

Increase installation timeout from 1 hour to 3 hours so that
a system built with DEBUG and LOCKDEBUG can be installed under
qemu without timing out.

Unconditionally print a greeting message including the version number
of startup, so that logs from automated anita runs will always
indicate the version used.

In --structured-log mode, log the string matched by expect() instead
of the return value, as the latter is always zero and therefore
conveys no useful information.
2015-01-13 14:07:37 +00:00
gson
774f5938c1 Update misc/py-anita to 1.33. Changes from 1.32:
Support recent versions of sysinst (CVS date 2014.08.03.16.09.38 or
newer), where set selection happens after disk partitioning rather
than before.

Document qemu 2.0.0nb4 as a known working version.

New command line option --structured-log.
2014-08-04 19:26:06 +00:00
gson
f2ad6c139b Update comment to note that qemu 2.0.0nb4 or newer should work. 2014-07-22 18:18:43 +00:00