You are not logged in.

#176 2017-05-10 08:46:02

ibrokemypie
Member
Registered: 2016-06-27
Posts: 1

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Is there any option to use --aur by default?

Offline

#177 2017-05-10 10:13:08

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

ibrokemypie wrote:

Is there any option to use --aur by default?

Not in the current version. Just use an alias, e.g.

alias bb='/usr/bin/bauerbill --aur'
alias bbw='/usr/bin/bb-wrapper --aur'

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#178 2017-05-14 03:49:49

SolarAquarion
Member
Registered: 2014-05-18
Posts: 62

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

bauerbill has some issues with downloading packages if the pkgbase is not a pkgname

Offline

#179 2017-05-14 19:59:14

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

SolarAquarion wrote:

bauerbill has some issues with downloading packages if the pkgbase is not a pkgname

How am I supposed to do anything about it if you provide no information or examples? What are the "issues"? What's the console output or unexpected behavior? Which packages cause these issues?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#180 2017-05-15 12:55:15

SolarAquarion
Member
Registered: 2014-05-18
Posts: 62

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Xyne wrote:
SolarAquarion wrote:

bauerbill has some issues with downloading packages if the pkgbase is not a pkgname

How am I supposed to do anything about it if you provide no information or examples? What are the "issues"? What's the console output or unexpected behavior? Which packages cause these issues?

Deluge-split, which actual names are deluge-common among others

Offline

#181 2017-05-15 15:21:15

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Fixed. Please update to pbget-2017 and python3-aur-2017.5 and try again.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#182 2017-07-03 14:30:41

SolarAquarion
Member
Registered: 2014-05-18
Posts: 62

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

For some reason when i do ./download.sh the PKGBUILD's aren't automatically updated so i have to do manual interventions to make it work

Offline

#183 2017-07-04 10:48:31

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

SolarAquarion wrote:

For some reason when i do ./download.sh the PKGBUILD's aren't automatically updated so i have to do manual interventions to make it work

This will be more configurable in a future version. For now, it allows the user to modify the PKGBUILD prior to download (e.g. to download different sources). In the meantime, just write a wrapper script to remove the PKGBUILDs before running the download script.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#184 2017-07-04 11:47:45

SolarAquarion
Member
Registered: 2014-05-18
Posts: 62

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

No, the git based PKGBUILD's as in the AUR aren't automatically pulled.  Like Bauerbill says that chromium-dev needs to be updated and i know it does, but the script didn't pull all the new changes appropriately.  So I just need to write a script to remove the PKGBUILD's prior to the download script? huh

Last edited by SolarAquarion (2017-07-04 11:58:41)

Offline

#185 2017-07-04 12:15:47

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

SolarAquarion wrote:

No, the git based PKGBUILD's as in the AUR aren't automatically pulled.  Like Bauerbill says that chromium-dev needs to be updated and i know it does, but the script didn't pull all the new changes appropriately.  So I just need to write a script to remove the PKGBUILD's prior to the download script? huh

Pbget doesn't update the working directory but it should fetch the changes. cd into the directory and check "git status".

If this is really an issue, I may add options to force an update of the working directory.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#186 2017-07-04 23:57:31

SolarAquarion
Member
Registered: 2014-05-18
Posts: 62

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

solaraquarion@apollo   ~/build/ts-qtplatform    (git)-[master]   git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)
Untracked files:
  (use "git add <file>..." to include in what will be committed)

I'm having a constant issue with the git thing

Offline

#187 2017-07-05 12:06:43

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

SolarAquarion wrote:

I'm having a constant issue with the git thing

If you didn't change anything, why would you expect it to change?

I've added a pull option to pbget. Update pbget, python3-xcpf and python3-aur, then change the "pbget" command in bauerbill.json to

"pbget" : ["/usr/bin/pbget", "--pull"]

Please let me know if it works as expected.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#188 2017-08-15 04:47:28

GSF1200S
Member
Registered: 2008-12-24
Posts: 463

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

bb -S --build youtube-dl
created /tmp/bbscripts/download.sh
created /tmp/bbscripts/build.sh
/tmp/bbscripts ~
[2017-08-15 04:46:57] INFO: searching ABS Git interface
error: unknown option `get'
usage: git pull [<options>] [<repository> [<refspec>...]]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    --recurse-submodules[=<on-demand>]
                          control for recursive fetching of submodules

Options related to merging
    -r, --rebase[=<false|true|preserve|interactive>]
                          incorporate changes by rebasing rather than merging
    -n                    do not show a diffstat at the end of the merge
    --stat                show a diffstat at the end of the merge
    --log[=<n>]           add (at most <n>) entries from shortlog to merge commit message
    --squash              create a single commit instead of doing a merge
    --commit              perform a commit if the merge succeeds (default)
    --edit                edit message before committing
    --ff                  allow fast-forward
    --ff-only             abort if fast-forward is not possible
    --verify-signatures   verify that the named commit has a valid GPG signature
    --autostash           automatically stash/stash pop before and after rebase
    -s, --strategy <strategy>
                          merge strategy to use
    -X, --strategy-option <option=value>
                          option for selected merge strategy
    -S, --gpg-sign[=<key-id>]
                          GPG sign commit
    --allow-unrelated-histories
                          allow merging unrelated histories

Options related to fetching
    --all                 fetch from all remotes
    -a, --append          append to .git/FETCH_HEAD instead of overwriting
    --upload-pack <path>  path to upload pack on remote end
    -f, --force           force overwrite of local branch
    -t, --tags            fetch all tags and associated objects
    -p, --prune           prune remote-tracking branches no longer on remote
    -j, --jobs[=<n>]      number of submodules pulled in parallel
    --dry-run             dry run
    -k, --keep            keep downloaded pack
    --depth <depth>       deepen history of shallow clone
    --unshallow           convert to a complete repository
    --update-shallow      accept refs that update .git/shallow
    --refmap <refmap>     specify fetch refmap

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/pbget.py", line 265, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/pbget.py", line 237, in main
    for pkgname, url in opi.retrieve_abs_via_git(output_dir, pkgnames, pull=pargs.pull):
  File "/usr/lib/python3.6/site-packages/XCPF/common.py", line 361, in retrieve_abs_via_git
    url = retrieve_abs_via_git(output_dir, pkgbase, repo=repo, ttl=self.ttl, pull=pull)
  File "/usr/lib/python3.6/site-packages/XCPF/common.py", line 571, in retrieve_abs_via_git
    gr_url = subprocess.check_output(cmd + ['config', '--get', 'remote.origin.url']).decode().strip()
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '-C', '/home/poeticrpm/.cache/XCPF/abs_git/youtube-dl', 'pull', 'config', '--get', 'remote.origin.url']' returned non-zero exit status 129.

Dunno if I need to change bauerbill.json or not, but ABS is no go. Maybe its something only on my end? System fully up-to-date.

Last edited by GSF1200S (2017-08-15 04:49:01)

Offline

#189 2017-08-23 02:24:58

GSF1200S
Member
Registered: 2008-12-24
Posts: 463

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

As it turns out, bauerbill will build packages fine using bb-wrapper -S --build <packagename>. But if the package is added to build patterns in bauerbill.json and an update is available, it will fail.

[GSF1200S@codething ~]$ bb-wrapper -S --build youtube-dl
created build/download.sh
created build/build.sh
~/build ~
[2017-08-23 02:07:28] INFO: searching ABS Git interface
[2017-08-23 02:07:28] INFO: found youtube-dl at https://git.archlinux.org/svntogit/community.git [packages/youtube-dl]
~/build/youtube-dl ~/build
youtube-dl : 3952
~/build
==> Making package: youtube-dl 2017.08.18-1 (Wed Aug 23 02:07:39 UTC 2017)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Downloading youtube-dl-2017.08.18.tar.gz...

And then it builds fine.

With bb-wrapper -Syu (and youtube-dl in build patterns) I get:

[2017-08-23 02:06:14] INFO: searching ABS Git interface
[2017-08-23 02:06:14] INFO: found youtube-dl at https://git.archlinux.org/svntogit/community.git [packages/youtube-dl]
error: unknown option `get'
...
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/pbget.py", line 265, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/pbget.py", line 237, in main
    for pkgname, url in opi.retrieve_abs_via_git(output_dir, pkgnames, pull=pargs.pull):
  File "/usr/lib/python3.6/site-packages/XCPF/common.py", line 361, in retrieve_abs_via_git
    url = retrieve_abs_via_git(output_dir, pkgbase, repo=repo, ttl=self.ttl, pull=pull)
  File "/usr/lib/python3.6/site-packages/XCPF/common.py", line 571, in retrieve_abs_via_git
    gr_url = subprocess.check_output(cmd + ['config', '--get', 'remote.origin.url']).decode().strip()
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '-C', '/home/gsf1200s/.cache/XCPF/abs_git/udisks2', 'pull', 'config', '--get', 'remote.origin.url']' returned non-zero exit status 129.

Apparently last time, it didnt work just using -S --build either. At this point I dont know if its a bug with bauerbill or something wrong with my system.

Last edited by GSF1200S (2017-08-23 02:28:12)

Offline

#190 2017-08-24 13:28:18

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

GSF1200S wrote:

At this point I dont know if its a bug with bauerbill or something wrong with my system.

It's a bug big_smile

It should be fixed in python3-xcpf-2017.8. Sorry that it took so long. Thanks for reporting it.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#191 2017-08-24 20:13:31

GSF1200S
Member
Registered: 2008-12-24
Posts: 463

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Xyne wrote:
GSF1200S wrote:

At this point I dont know if its a bug with bauerbill or something wrong with my system.

It's a bug big_smile

It should be fixed in python3-xcpf-2017.8. Sorry that it took so long. Thanks for reporting it.

No worries- life gets busy big_smile Thanks for the fix!

Offline

#192 2017-08-31 17:09:13

GSF1200S
Member
Registered: 2008-12-24
Posts: 463

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Had a bunch of updates 4 of which I had in build-patterns. udisks2 failed and afterwards bauerbill exited rather than try to build the rest of the packages. There was no meaningful output as it just exited. Once I manually upgraded udisk2 and then re-initiated bauerbill, it worked fine building the rest in succession without issue. If you need all the output reguardless, Ill go back to an old snapshot and try again.

No worries and no hurry!

Offline

#193 2017-09-06 12:59:57

Alad
Wiki Admin/IRC Op/TU
Registered: 2014-05-04
Posts: 1,548

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

If you're interested I wrote a replacement for makepkg --pkg that doesn't require shipping a patched makepkg with bauerbill:

https://bbs.archlinux.org/viewtopic.php … 4#p1734644


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest alad's Package Emporium—Now with added bugs!

Offline

#194 2017-09-06 16:51:12

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

@GSF1200S
If you can find a reproducible example then I will try to debug it, but without one it will have to wait. I tried building udisks2 with bauerbill but encountered no error. hmm

@Alad
Thanks but I prefer to use the patched makepkg. It preserves installation reasons and guarantees correct interpretation of all command-line arguments. My original approach was similar to your script but I quickly ran into problems with it (in particular, it would require more extensive argument parsing to preserve common arguments between makepkg and pacman -U... the patch is ultimately simpler and the code already exists in makepkg).

The best option is to try to get the pacman devs to restore the functionality. It was only removed because they decided that all packages in a split package should be built (which makes sense), but they didn't consider the use case of selective installation with makepkg -i.

Btw, you should quote the output of the mktemp command in case TMPDIR includes whitespace.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#195 2017-09-06 17:31:49

Alad
Wiki Admin/IRC Op/TU
Registered: 2014-05-04
Posts: 1,548

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

The best option is to try to get the pacman devs to restore the functionality. It was only removed because they decided that all packages in a split package should be built (which makes sense), but they didn't consider the use case of selective installation with makepkg -i.

Or you just use all benefits already available from pacman itself by using a local repository. I guess this is where pacboy (will?) come in.

Btw, you should quote the output of the mktemp command in case TMPDIR includes whitespace.

Sure, but it's not expanded on a variable assignment:

[user@enotty ~]$ foo='bar baz'
[user@enotty ~]$ bing=$(echo "$foo")
[user@enotty ~]$ echo "$bing"
bar baz

Last edited by Alad (2017-09-06 17:33:51)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest alad's Package Emporium—Now with added bugs!

Offline

#196 2017-09-06 17:48:16

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,223
Website

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Alad wrote:

Btw, you should quote the output of the mktemp command in case TMPDIR includes whitespace.

Sure, but it's not expanded on a variable assignment:

[user@enotty ~]$ foo='bar baz'
[user@enotty ~]$ bing=$(echo "$foo")
[user@enotty ~]$ echo "$bing"
bar baz

You're right, sorry. I didn't consider that all uses of the assigned variable are quoted.

As for pacboy, it will be possible to add built packages to a repo and then install from that afterwards but it wasn't my intention. The flexibility is there though.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#197 2017-09-07 11:15:58

Spyhawk
Member
Registered: 2006-07-07
Posts: 470

Re: Bauerbill reborn: pacman/powerpill+AUR+ABS+configurability

Xyne wrote:

The best option is to try to get the pacman devs to restore the functionality. It was only removed because they decided that all packages in a split package should be built (which makes sense), but they didn't consider the use case of selective installation with makepkg -i.

Your question on the mailing list seemingly stayed unanswered, it might be worth a shot asking it again. It is unclear to me if the removal of the installation part was actually desired, but I don't think there is any downside to have it back.

Offline

Board footer

Powered by FluxBB