You are not logged in.

#1 2021-01-06 23:24:07

MountainX
Member
Registered: 2016-02-08
Posts: 371

makepkg.conf: BUILDENV: check disabled but checkdepends still errors

I'm trying to build this package:

AUR (en) - perl-moose
https://aur.archlinux.org/packages/perl-moose/

The error is:

==> Missing dependencies:
  -> perl-test-cleannamespaces>=0.13
  -> perl-test-fatal>=0.001
  -> perl-test-requires>=0.05
==> ERROR: Could not resolve all dependencies.

The PKGBUILD contains all 3 of those in the checkdepends array:

checkdepends=('perl-test-cleannamespaces>=0.13' 'perl-test-fatal>=0.001' 'perl-test-requires>=0.05')

The wiki says:

checkdepends

An array of packages that the software depends on to run its test suite, but are not needed at runtime. Packages in this list follow the same format as depends. These dependencies are only considered when the check() function is present and is to be run by makepkg.

EDIT: My /etc/makepkg.conf NOW has these settings:

BUILDENV=(!distcc color !ccache !check sign)

I'm building in a chroot and using aur-utils.

Here's how my script normally does the build.

aur build --chroot --sign --database="$reponame" --directory=/$chrootpath/$reponame

I assume the correct approach might be obvious to those of you who are developers or package maintainers, but I'm stuck. Not sure how to deal with this so I can get the package to build.

Last edited by MountainX (2021-01-07 02:23:17)

Offline

#2 2021-01-06 23:28:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

I'm not sure what your question is - but the error is very clear.  If you want to run the check function, you need to install the checkdepends before building the package, and this is why makepkg gives the error noting that they are not installed.

If you do not want to run the check function, you should not have it enabled in your makepkg.conf.

If you expect aurutils to handle dependencies for you - I'm not sure it is supposed to do that.  But if that's your question you should udpate the title to reflect that.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2021-01-07 02:02:53

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

If you expect aurutils to handle dependencies for you - I'm not sure it is supposed to do that.

I am using aur fetch: "aur-fetch downloads packages specified on the command-line from the AUR using git"

aur fetch -S -r "$package"

-r : Download  packages  and their dependencies with aur-depends(1).
-S : Alias for --sync=auto.

I'm probably missing something...

In regard to removing the check option, I thought that would be simple. There are two chroots: one for my user, and one for root. The user is copied from root. However, I edited both to remove the check option.

EDIT: the setting is getting reverted. I'm not sure how.

I also edited my normal /etc/makepkg.conf too, just to rule out possibilities. Furthermore, I am now using the "-M" option with mkarchroot to copy in a conf that has the check function disabled.

mkarchroot -M "$path/makepkg.conf" "/$chrootpath/$reponame/root"

However, after I run my build command, it fails (same reason as in first post):

aur build --chroot --sign --database="$reponame" --directory=/$chrootpath/$reponame

And the check option has been reverted to the the value it had before I took the numerous steps above to disable check.

Last edited by MountainX (2021-01-07 02:43:44)

Offline

#4 2021-01-07 02:16:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Either install the missing dependencies for the check function, or don't run it. What is so difficult to comprehend about that?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-01-07 02:19:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

I don't use aur-utils, but according to the man pages, all that command does is download dependencies.  They need to be built and installed before you can build something that depends on them.

As for not using check (setting from the various makepkg.confs), I gather that too is something specific to either the chroot or aur-utils and is not directly related to perl-moose.

If you update the title of the thread to represent the actual problem, you'll more likely attract the help you need.  Note in the current title the words "help", "please", and "with" are devoid of meaning - which means the only informational content of the title is "perl-moose" yet your questions actually have nothing to do with perl-moose, but rather just with aur-utils and/or building in a chroot.

EDIT: thanks for the edit, the new title's much better - unfortunately I can't help with the specific issue.

Last edited by Trilby (2021-01-07 02:38:37)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2021-01-07 02:22:17

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Trilby wrote:

If you update the title of the thread to represent the actual problem, you'll more likely attract the help you need.  Note in the current title the words "help", "please", and "with" are devoid of meaning - which means the only informational content of the title is "perl-moose" yet your questions actually have nothing to do with perl-moose, but rather just with aur-utils and/or building in a chroot.

Yes, you are right. Title changed. Thanks

Offline

#7 2021-01-07 03:39:17

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

I think you missed the relevant part of the output:

extra-x86_64-build 
:: Synchronizing package databases...
 core                  132.8 KiB  1724 KiB/s 00:00 [######################] 100%
 extra                1637.1 KiB  4.74 MiB/s 00:00 [######################] 100%
 community               5.3 MiB  8.42 MiB/s 00:01 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (5) elfutils-0.182-1  gdbm-1.19-1  iana-etc-20201229-1  libelf-0.182-1
             nettle-3.7-1

Total Download Size:    2.02 MiB
Total Installed Size:  11.63 MiB
Net Upgrade Size:       0.02 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 iana-etc-2020122...   390.9 KiB  2.21 MiB/s 00:00 [######################] 100%
 libelf-0.182-1-x...   450.6 KiB  8.80 MiB/s 00:00 [######################] 100%
 nettle-3.7-1-x86_64   431.4 KiB  9.36 MiB/s 00:00 [######################] 100%
 elfutils-0.182-1...   620.5 KiB  9.18 MiB/s 00:00 [######################] 100%
 gdbm-1.19-1-x86_64    179.3 KiB  17.5 MiB/s 00:00 [######################] 100%
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
(5/5) loading package files                        [######################] 100%
(5/5) checking for file conflicts                  [######################] 100%
:: Processing package changes...
(1/5) upgrading iana-etc                           [######################] 100%
(2/5) upgrading libelf                             [######################] 100%
(3/5) upgrading nettle                             [######################] 100%
(4/5) upgrading elfutils                           [######################] 100%
(5/5) upgrading gdbm                               [######################] 100%
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done
==> Making package: perl-moose 2.2014-1 (Thu Jan  7 03:30:59 2021)
==> Retrieving sources...
  -> Downloading Moose-2.2014.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     5  100     5    0     0     12      0 --:--:-- --:--:-- --:--:--    12
100  878k  100  878k    0     0  1089k      0 --:--:-- --:--:-- --:--:-- 1089k
==> Validating source files with md5sums...
    Moose-2.2014.tar.gz ... Passed
==> Validating source files with sha512sums...
    Moose-2.2014.tar.gz ... Passed
==> Making package: perl-moose 2.2014-1 (Thu 07 Jan 2021 03:31:04)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: perl-devel-overloadinfo>=0.005
error: target not found: perl-module-runtime-conflicts>=0.002
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> perl-cpan-meta-check>=0.011
  -> perl-class-load>=0.09
  -> perl-class-load-xs>=0.01
  -> perl-data-optlist>=0.107
  -> perl-devel-globaldestruction>=0
  -> perl-devel-overloadinfo>=0.005
  -> perl-devel-stacktrace>=2.03
  -> perl-dist-checkconflicts>=0.02
  -> perl-eval-closure>=0.04
  -> perl-mro-compat>=0.05
  -> perl-module-runtime>=0.014
  -> perl-module-runtime-conflicts>=0.002
  -> perl-package-deprecationmanager>=0.11
  -> perl-package-stash>=0.32
  -> perl-package-stash-xs>=0.24
  -> perl-params-util>=1.00
  -> perl-sub-exporter>=0.980
  -> perl-sub-identify>=0
  -> perl-sub-name>=0.20
  -> perl-try-tiny>=0.17
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: perl-test-cleannamespaces>=0.13
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> perl-test-cleannamespaces>=0.13
  -> perl-test-fatal>=0.001
  -> perl-test-requires>=0.05
==> ERROR: Could not resolve all dependencies.
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/builduser/build

Does you script install a package meeting the requirement perl-test-cleannamespaces>=0.13 in the clean chroot?

Offline

#8 2021-01-07 03:44:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

loqs, I believe the OP is trying to disable the check and therefore shouldn't need checkdepends installed.  According to the man page, makepkg should not check for their presence.  The problem seems to be that disabling the 'check' option in various makepkg.confs is not affecting the OPs chroot build.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2021-01-07 03:49:10

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Trilby wrote:

loqs, I believe the OP is trying to disable the check and therefore shouldn't need checkdepends installed.  According to the man page, makepkg should not check for their presence.  The problem seems to be that disabling the 'check' option in various makepkg.confs is not affecting the OPs chroot build.

Yes, thanks. However, I can go in either direction: disable the check option or install the checkdepends dependencies. But I'm not sure how to automate the installation of the checkdepends dependencies with aur utils. I don't want to do it manually, and I don't want to hard code it into my script. Since I didn't find an elegant way yet, I was just going to disable the check option. Something that I haven't found seems to be forcing the check option back to "on" even after I have edited every makepkg.conf file on my system, and recreated my chroot (which is on a tmpfs mount).

Offline

#10 2021-01-07 04:01:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Trilby wrote:

The problem seems to be that disabling the 'check' option in various makepkg.confs is not affecting the OPs chroot build.

OP is editing the wrong makepkg.conf then. makechrootpkg, as documented, does respect the BUILDENV variables set in the CHROOT's makepkg.conf.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2021-01-07 04:03:12

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

jasonwryan wrote:
Trilby wrote:

The problem seems to be that disabling the 'check' option in various makepkg.confs is not affecting the OPs chroot build.

OP is editing the wrong makepkg.conf then. makechrootpkg, as documented, does respect the BUILDENV variables set in the CHROOT's makepkg.conf.

Thank you. That sounds like my problem. I'll check that now, but I'm sure you are correct. I appreciate the help.

Offline

#12 2021-01-07 04:15:58

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

OP is editing the wrong makepkg.conf then...

I still do not find any makepkg.conf on my system that I have not edited. I edited all these and I don't see any others;

/mnt/chroots/arch/myuser/etc/makepkg.conf
/mnt/chroots/arch/root/etc/makepkg.conf
/etc/makepkg.conf

Offline

#13 2021-01-07 04:18:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Please paste the output of `echo $CHROOT`.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2021-01-07 04:25:47

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

jasonwryan wrote:

Please paste the output of `echo $CHROOT`.

I believe I can define my own variables like this, right?

echo "$chrootpath"
/mnt/chroots/arch/

aur build --chroot --sign --database="$dbname" --directory="$chrootpath"

I don't have the exact name CHROOT defined.

Last edited by MountainX (2021-01-07 04:27:36)

Offline

#15 2021-01-07 04:32:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

And when you say you've disabled 'check' in those files, what does that look like?  You've replaced it with '!check', right?

Have you also tried just passing the --nocheck flag (according to the man page, aur-build passes additional arguments on to makepkg).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2021-01-07 04:37:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

MountainX wrote:
jasonwryan wrote:

Please paste the output of `echo $CHROOT`.

I believe I can define my own variables like this, right?

And how, exactly, would you expect makechrootpkg and the other tools know anything about your random variables?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#17 2021-01-07 04:38:25

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Trilby wrote:

And when you say you've disabled 'check' in those files, what does that look like?  You've replaced it with '!check', right?

My script now includes the following verification that executes before the aur build command.

grep '^BUILDENV=.* !check' $makepkgconf >/dev/null
if [[ $? -ne 0 ]]; then
  sudo sed -i.bak '/^BUILDENV=/ s/check/!check/' $makepkgconf
else
  echo "makepkg.conf: BUILDENV: check is disabled"
fi

It reports that "check" is disabled (as intended) but I still get the checkdepends errors.

Also to be sure, I also specified a makepkg.conf to use that has "!check" specified in it.

mkarchroot -M "$pkgsroot/makepkg.conf" 

Since this is proving difficult, is there a nice (scriptable, automated) way to install the missing dependencies into the chroot?

EDIT:

Trilby wrote:

Have you also tried just passing the --nocheck flag (according to the man page, aur-build passes additional arguments on to makepkg).

I will take another look at that too.

Last edited by MountainX (2021-01-07 04:40:38)

Offline

#18 2021-01-07 04:45:08

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

jasonwryan wrote:
MountainX wrote:
jasonwryan wrote:

Please paste the output of `echo $CHROOT`.

I believe I can define my own variables like this, right?

And how, exactly, would you expect makechrootpkg and the other tools know anything about your random variables?

For every tool I use, I pass it the variables I have defined on the command line. Every command in my script does this as required. I assumed if I did that, it would be OK... Are you saying I must define CHROOT anyway?

EDIT: I don't directly call makechrootpkg. I am mainly using:

mkarchroot
aur fetch
aur graph
aur sync
aur build
repo-add

Last edited by MountainX (2021-01-07 04:50:03)

Offline

#19 2021-01-07 04:51:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Honestly? Like you, I have no fucking idea what you are doing. If you are going to use the devtools, maybe try just following the instructions in the wiki/docs before freestyling your own shit and hoping it will all miraculously work out.

I tested makechrootpkg half an hour ago and it respects whatever is in $CHROOT/root/etc/makepkg - any issues you are having, typically for you, are the result of not reading the docs and thinking you can create your own shortcuts. This is fine if you have a clue, but your posting history suggests the opposite is true.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#20 2021-01-07 04:54:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

MountainX wrote:

I don't directly call makechrootpkg. I am mainly using...

MountainXs second post wrote:
mkarchroot -M "$path/makepkg.conf" "/$chrootpath/$reponame/root"

# edit: nvm: I have been drinking...

Last edited by jasonwryan (2021-01-07 04:55:02)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#21 2021-01-07 04:56:21

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

deleted

Last edited by MountainX (2021-01-07 05:02:53)

Offline

#22 2021-01-07 04:59:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

MountainX wrote:
jasonwryan wrote:

Honestly? Like you, I have no fucking idea what you are doing.

I said that in my first post. Yes, it is true that I have no fucking idea what I'm doing. But you are still an asshole yourself. Not sure which is worse... but neither one of us should be proud.

It's pretty clear which is worse: I didn't insult you in the thread. Whereas most of your posts are just a drain on the community. That's the real insult.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#23 2021-01-07 05:10:36

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

jasonwryan wrote:
MountainX wrote:
jasonwryan wrote:

Honestly? Like you, I have no fucking idea what you are doing.

I said that in my first post. Yes, it is true that I have no fucking idea what I'm doing. But you are still an asshole yourself. Not sure which is worse... but neither one of us should be proud.

It's pretty clear which is worse: I didn't insult you in the thread. Whereas most of your posts are just a drain on the community. That's the real insult.

I'll be honest now too. I make financial donations to many open source projects. Have for years. I would like to donate to Arch too, but you are the one single reason I have never made a financial donation to Arch. If you have this effect on others (I'm sure you do), then what kind of a drain on the community is that?

I'll be happy to stop asking any questions here or making posts or submitting AUR PKGBUILDS if you wish. I know you can probably ban me too, which is why I never said anything to you in the past.

Offline

#24 2021-01-07 05:29:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Hhm: don't donate to the project because I am mean to you, yet continue to use the community to solve your problems... Yes, that makes sense.

Perhaps you could link me to your AUR contibutions, I can only find a single package you co-maintain? I'm sure there is a longer list, given your use of the plural...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#25 2021-01-07 09:07:40

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: makepkg.conf: BUILDENV: check disabled but checkdepends still errors

Reality check: we're talking about the failure of an undisclosed script that we only know the OP claims to do things but we can't actually say for sure what it does?
I mean, "aur build --chroot" will probably completely derail other chrootanigans…

@MountainX, w/o the script (that you *actually* run, not some stripped version of it etc.) this is unlikely to ever go anywhere.

Offline

Board footer

Powered by FluxBB