Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only ABI variable is expanded in pkg.conf #1897

Closed
sdalu opened this issue Nov 6, 2020 · 2 comments
Closed

Only ABI variable is expanded in pkg.conf #1897

sdalu opened this issue Nov 6, 2020 · 2 comments

Comments

@sdalu
Copy link

sdalu commented Nov 6, 2020

According to documentation for pkg.conf (FreeBSD 12.2), the following variables are expanded during the parsing of pkg.conf: ABI, OSNAME, RELEASE, VERSION_MAJOR, VERSION_MINOR, ARCH

Using a variable other than ABI, the expansion is not performed.

Configuration

poudriere: {
    url: https://xxxx/poudriere/packages/$RELEASE/
}

Command run

$ pkg --version
1.15.10

$ pkg update
pkg: https://xxxx/poudriere/packages/$RELEASE//packagesite.txz: Not Found

Manual extract

VARIABLES
     The following variables will be expanded during the parsing of pkg.conf

     ABI

     OSNAME  Expands to the full version of the name of the operating system.

     RELEASE
             Expands to the full version of the operaring system.

     VERSION_MAJOR
             If supported, expands to the major version of the operating
             system.  (Only supported on FreeBSD )

     VERSION_MINOR
             If supported, expands to the minor version of the operating
             system.  (Only supported on FreeBSD )

     ARCH    Expands the architecture of the system.
@bapt
Copy link
Member

bapt commented Nov 6, 2020

this is expanded while parsing pkg.conf, but this is not while parsing the repositories configuration files!

Fix incomping

@bapt bapt closed this as completed in 740c384 Nov 6, 2020
@lbtdk
Copy link

lbtdk commented Dec 4, 2020

There is also a FreeBSD issue on the same bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246130

...and @bapt thanks for fixing 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants