You are not logged in.

#1 2021-10-31 22:15:39

malacology
Member
Registered: 2021-04-24
Posts: 152

[Solved] makepkg in different enviroment changes

When I use makepkg on my local PC, it's okay to make the package, but when I use makepkg on the VPS, it reports the following

==> Making package: popart 1.7-1 (Sun 31 Oct 2021 22:11:59 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning popart-current git repo...
Cloning into bare repository '/home/guoyi/Packages/popart/popart-current'...
remote: Enumerating objects: 872, done.
remote: Total 872 (delta 0), reused 0 (delta 0), pack-reused 872
Receiving objects: 100% (872/872), 578.31 KiB | 607.00 KiB/s, done.
Resolving deltas: 100% (592/592), done.
  -> Found popart.desktop
==> Validating source files with md5sums...
    popart-current ... Skipped
    popart.desktop ... Passed
==> Extracting sources...
  -> Creating working copy of popart-current git repo...
error: object directory /tmp/popart/popart-current/objects does not exist; check .git/objects/info/alternates
fatal: '/tmp/popart/popart-current' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
==> ERROR: Failure while updating working copy of popart-current git repo
    Aborting...

Last edited by malacology (2021-11-01 00:38:37)


Don't speak to silly man. Keep Minimalism.

Offline

#2 2021-10-31 22:46:31

loqs
Member
Registered: 2014-03-06
Posts: 18,995

Re: [Solved] makepkg in different enviroment changes

If you delete /home/guoyi/Packages/popart/popart-current so makepkg clones the git repo again is the issue reproduced?  If you unset BUILDDIR can you still reproduce the issue?

Looking at the PKGBUILD please use a build function to compile and link projects.  Missing dependency for libcolamd.
Double quote use of $srcdir.  License appears to be unknown rather than custom.

Last edited by loqs (2021-10-31 22:59:18)

Offline

#3 2021-11-01 00:28:15

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] makepkg in different enviroment changes

It represents again if I delete the popart-current dir, but if I change to other dir, it just report compile error.
I will try to fix the issue about PKGBUILD


Don't speak to silly man. Keep Minimalism.

Offline

#4 2021-11-01 00:38:19

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] makepkg in different enviroment changes

I clean the dir, it works.


Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB