pkgxdev / pkgx

the last thing you’ll install

Home Page:https://pkgx.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse issue freedesktop.org/cppunit

leonsilicon opened this issue · comments

Running pkgx install freedesktop.org/cppunit gives the following error:

pkgx install freedesktop.org/cppunit
× parse error freedesktop.org/cppunit
│ this is a serious issue. please report the bug
╰─➤ https://github.com/pkgxdev/pkgx/issues/new?title=parse+issue+freedesktop.org/cppunit

🤖

Hey again, @leonsilicon! Great to see you back. Hope you're doing well.

The parse error you're encountering when running pkgx install freedesktop.org/cppunit is likely due to the package not being listed in the package.json file. The package.json file in the pkgx repository currently only contains zlib.net^1.2 and python.org@latest.

To resolve this error, you need to add freedesktop.org/cppunit to the package.json file. Here's how you can do it:

{
  "pkgx": "zlib.net^1.2 python.org@latest freedesktop.org/cppunit"
}

After updating the package.json file, you should be able to install freedesktop.org/cppunit without encountering the parse error.

As for the functionality of the pkgx install command, it is responsible for installing packages. It starts by resolving the dependency graph, gets the dependencies of each package in the input list, prepares the packages for installation, resolves the dependencies of the packages, installs and links the packages, and finally returns the installed packages and the environment. You can find more details about this in the src/prefab/install.ts file in the pkgx repository.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Best,
Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

$ pkgx install freedesktop.org/cppunit
pkgx: installed: ~/.local/bin/cppunit-config
pkgx: installed: ~/.local/bin/DllPlugInTester
$ rm ~/.local/bin/cppunit-config 
$ rm ~/.local/bin/DllPlugInTester 

#worksforme

to troubleshoot, can you paste in the contents of your

  • Darwin: ~/Library/Application\ Support/pkgx/pantry/projects/freedesktop.org/cppunit/package.yml
  • Linux: ~/.local/state/pkgx/pantry/projects/freedesktop.org/cppunit/package.yml

it should specifically match

distributable:
  url: http://dev-www.libreoffice.org/src/cppunit-{{version}}.tar.gz
  strip-components: 1

versions:
  url: https://dev-www.libreoffice.org/src/cppunit/
  match: /cppunit-\d+\.\d+\.\d+.tar.gz/
  strip:
    - /^cppunit-/
    - /\.tar\.gz$/

build:
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
    linux/aarch64:
      ARGS:
        - --build=aarch64-unknown-linux-gnu

provides:
  - bin/cppunit-config
  - bin/DllPlugInTester

test: cppunit-config --version | grep {{version}}

exactly.

assuming it doesn't (though we'll be interested to see what it does contain), pkgx --sync should refresh it.