You are not logged in.

#1 2016-08-29 17:04:38

daniel_shub
Member
Registered: 2012-06-21
Posts: 82

[SOLVED] Issues with mksrcinfo finding PKGBUILD

I am having trouble getting mksrcinfo find my PKGBUILD when the PKGBUILD is in a different directory ...

[dshub@cochlea tmp]$ pwd
/tmp
[dshub@cochlea tmp]$ ls -al dshub/
total 4
drwx------  2 dshub dshub  60 Aug 29 13:01 .
drwxrwxrwt 25 root  root  660 Aug 29 13:01 ..
-rw-------  1 dshub dshub 940 Aug 29 12:52 PKGBUILD
[dshub@cochlea tmp]$ mksrcinfo /tmp/dshub/PKGBUILD 
==> ERROR: PKGBUILD not found in current directory
[dshub@cochlea tmp]$ mksrcinfo /tmp/dshub/
==> ERROR: PKGBUILD not found in current directory
[dshub@cochlea tmp]$ cd dshub
[dshub@cochlea dshub]$ mksrcinfo /tmp/dshub/
/usr/bin/mksrcinfo: line 196: .: /tmp/dshub/: is a directory
[dshub@cochlea dshub]$ mksrcinfo /tmp/dshub/PKGBUILD 

Last edited by daniel_shub (2016-08-29 18:07:20)

Offline

#2 2016-08-29 17:47:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] Issues with mksrcinfo finding PKGBUILD

mksrcinfo isn't useful really anymore. Use makepkg --printsrcinfo.

Online

#3 2016-08-29 18:08:50

daniel_shub
Member
Registered: 2012-06-21
Posts: 82

Re: [SOLVED] Issues with mksrcinfo finding PKGBUILD

That solves my issue (sort of). You need to run makepkg in the directory with the PKGBUILD (or alternative build file) and it cannot be run as root. Those issues are easy to work around and are documented.

Offline

#4 2016-08-29 23:21:27

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Issues with mksrcinfo finding PKGBUILD

Scimmia wrote:

mksrcinfo isn't useful really anymore. Use makepkg --printsrcinfo.

It is just as useful as it ever was. It is just that you can now do the same thing directly using makepkg.

Personally, I prefer `mksrcinfo` over `makepkg --printsrcinfo > .SRCINFO` because it is easier to type -- so +1 for mksrcinfo even as an alias.

...

@daniel_shub,
At one point, mksrcinfo accepted PKGBUILDs anywhere,  but now that it uses makepkg behind the scenes, it is limited in the same way makepkg is.

Last edited by eschwartz (2016-08-29 23:22:13)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB