You are not logged in.

#1 2019-01-20 00:12:45

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

[SOLVED] How do you debug PKGBUILDs for VCS?

Is there an idiomatic way to debug PKGBUILDs which uses VCS as `source`?

I mean debugging without checking-in intermediate sources into the VCS and/or temporary hacking `sources` variable.

Last edited by serzh-z (2019-01-20 01:28:33)


I woke up in my bed today - a hundred years ago. Who am I? Who am I...

Offline

#2 2019-01-20 00:28:18

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,868
Website

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

I know it is not what you asked for, but I have always just added the "#commit=...." to the end of the source.

Offline

#3 2019-01-20 00:40:19

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

Allan wrote:

I know it is not what you asked for, but I have always just added the "#commit=...." to the end of the source.

It makes sense in some cases but actually, it will do not ease the debugging.

Let me explain the process:

I actively edit sources and want to repeat makepkg/install/test steps. Now I have two options:

- Commit and push every source change and then build/install package.
- Write 'debug' variant of PKGBUILD which will use a local directory instead of remote VCS.

I am wondering if there is an ability to specify makepkg some kind of 'temporary use a local directory instead real remote VCS'. Right now it is an ass-pain to debug such PKGBUILDs.


I woke up in my bed today - a hundred years ago. Who am I? Who am I...

Offline

#4 2019-01-20 00:45:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 21,903
Website

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

`makepkg -e`


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2019-01-20 01:27:46

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

Trilby wrote:

`makepkg -e`

Oh, thanks! I was too lazy to look into the man. smile


I woke up in my bed today - a hundred years ago. Who am I? Who am I...

Offline

#6 2019-01-20 13:37:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,135

Re: [SOLVED] How do you debug PKGBUILDs for VCS?


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 2019-01-20 14:27:48

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

Lone_Wolf wrote:

Yeah, it will be useful.

BTW, is there an idiomatic way to store PKGBUILDs?

I meant the following:

- Using a single separated repo with a lot of arbitrary PKGBUILDs like it does, for instance, Eli Schwartz in https://github.com/eli-schwartz/pkgbuilds
- Placing PKGBUILD in the same repo where application sources live (and point `source` variable to this repo)
- Just using an AUR package repo as a PKGBUILD primary repo
- Something else

Last edited by serzh-z (2019-01-20 14:36:14)


I woke up in my bed today - a hundred years ago. Who am I? Who am I...

Offline

#8 2019-01-20 14:35:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 21,903
Website

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

serzh-z wrote:

BTW, is there an idiomatic way to store PKGBUILDs?

No.  But your list covers many of the good options.  Use whichever works best for you.

Persoanlly, I tend to keep PKGBUILDs for projects I've created with the code I'm creating.  That way if any code changes require PKGBUILD changes, it's right there in the same project directory (generally in a "packaging" or documentation related sub directory).

For PKGBUILDs I keep where I'm not also the sole or primary author of the source code, I just keep a tree much like eschartz's.

Last edited by Trilby (2019-01-20 14:36:40)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2019-01-21 21:15:32

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] How do you debug PKGBUILDs for VCS?

Trilby wrote:
serzh-z wrote:

BTW, is there an idiomatic way to store PKGBUILDs?

No.  But your list covers many of the good options.  Use whichever works best for you.

Got it. Thanks.


I woke up in my bed today - a hundred years ago. Who am I? Who am I...

Offline

Board footer

Powered by FluxBB