pkgsrc-Users archive

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

Re: Upgrade all installed packages



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?

Marko

Marko 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.

Marko

test

Marko and Chavdar,

Can you try wip/auto-admin?

It patches in ${PREFIX} and ${PKGSRCDIR} during package build rather than relying on the location of pkg_add at run time.

The pkgsrc guide seems to suggest that PKGSRCDIR is a standard variable, so I suspect that this will work universally. Unless you move your pkgsrc tree after installing packages, which is probably unwise...

Best,

	J


Home | Main Index | Thread Index | Old Index