On 4/19/23 13:39, Marko Bauhardt wrote:
To be a bit more clear ~/OS/pkgsrc $ pwd /arpa/m/mbauhardt/OS/pkgsrc ~/OS/pkgsrc $ which pkg_add /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkg/sbin/pkg_add ~/OS/pkgsrc $ auto-pkgsrc-prefix /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkg ~/OS/pkgsrc $ auto-pkgsrc-dir /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkgsrc I believe this leads to ~ $ echo $OS_HOME /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD ~ $ env PATH=$OS_HOME/pkg/bin:$OS_HOME/pkg/sbin:$PATH auto-update-pkgsrc --defaults No /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkg/bin/pkgin: Skipping binary package updates. pkg_info: can't find package `No' pkg_info: can't find package `such' pkg_info: can't find package `package:' pkg_info: can't find package `/sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkgsrc/' pkg_install: Installed = pkgsrc = No such package: /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkgsrc/ [: such: unexpected operator **** Running make replace for pkgtools/cwrappers... cd: can't cd to /sdfeu/arpa/m/mbauhardt/OS/OS-NetBSD/pkgsrc/pkgtools/cwrappers Or did I something wrong? MarkoMarko Bauhardt <marko.bauhardt%mailbox.org@localhost> hat am 19.04.2023 20:27 CEST geschrieben:Am 19.04.2023 um 11:50 schrieb Chavdar Ivanov <ci4ic4%gmail.com@localhost>: I haven't noticed auto-admin so far, thanks for pointing it out. It failed for me on a NetBSD host …Auto-Update-pkgsrc failed for me as well. Auto-pkgsrc-prefix Returns the folder where pkg_add is located. And Auto-pkgsrc-dir takes this dir and put or Print „pkgsrc“ one Level up. But my pkgsrc dir is located on another dir. Markotest
No, you did nothing wrong. auto-pkgsrc-dir is assuming a more typical organization and it needs to be more robust.
I don't know if there's a foolproof way to determine the location of the pkgsrc tree, but I will look into this when I get a chance. pkg_chk relies on $PKGSRCDIR for example, but I don't know if anything like that is guaranteed to be defined for every installation.
Thanks, J