pkgsrc-Users archive

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

Re: python dependencies not present...



oskar%fessel.org@localhost writes:

> Running make package nevertheless yielded some unexpected results.  It =
> seems that mailman3 does not install the required python - on this =
> system python3.11 was the default until 5 minutes ago.
> When running make in the py312-flufl.testing directory, things work as =
> expected, and paython 3.12 is build.
> What can be the cause of this behaviour?

First, you ned a consistent pkgsrc tree.   Which means one of:
  cvs up -r pkgsrc-2024Q2
  cvs up -A

Second, you need to have a clean environment.  That means:
  rm -rf */*/work # and also any WRKOBJDIR
  pkg_admin rebuild
  pkg_admin rebuild-tree

Next, not actually required, but I find it helpful to remove all
automatically-installed packages that nothing depends on:

  pkgin ar

To ease the pain of removals, you can "DEPENDS_TARGET?= bin-install clean".

And, as part of that, "pkgin sk" and then look at each and if you don't
want it "pkgin uk".   Then run pkgin ar again.

Then, you technically don't need to, but should, bring all packages up
to date with the tree you have.  That can be

  pkg_rolling-replace -uvk
  # then clean work, repeat
  # then debug/fix individual packages

  make a list of pkgin sk and set up pbulk, and pkgin fug from that set

  something else equivalent

Finally, you can then try to build mailman3.

Beware that pkg_chk, and hence pkg_rr, deals badly with python versions
that are not the default.  If the default changes, then 1) it's really
helpful to pkgin ar since it gets rid of many and 2) you need to for
each one you want, build the py312 version and rm the py311 version.
And then pkgin ar again.  Some will fail because they install
unversioned files, and you can rm the old before installing the new.
It's messy; you may or may not find learning pbulk easier.

You don't have to take my advice; the license grants you the freedom
to do whatever you want :-) But I think you'll have much less trouble
if you follow it.

> WARNING: Package version py311-flufl.testing-0.7nb1 in /var/pbulk/devel/py-flufl.testing/work

This is a clue that you have leftover work directories.




Home | Main Index | Thread Index | Old Index