You are not logged in.

#1 2014-06-22 13:29:40

bstaletic
Member
Registered: 2014-02-02
Posts: 658

[SOLVED] How to install aur packages using pacaur

I'm trying to install dwb-git. It installs with no problem with aura, but pacaur gives me problems. If I run pacaur as regular user it will build but will not install and will say permission denied.
If I run pacaur with sudo it will say building packages as root is a bad idea and will quit. The only other possibility I see is running it with --asroot flag which is a really bad idea.

Last edited by bstaletic (2014-06-22 15:02:41)

Offline

#2 2014-06-22 13:42:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] How to install aur packages using pacaur

Does this not do as it says?

man pacaur wrote:

       -y, --sync                                                         
           Download target(s) PKGBUILD, build and install target(s). Missing dependencies will be automatically installed as required.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-06-22 13:50:51

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to install aur packages using pacaur

No, I get the errors I described above.
Here are the outputs:

bstaletic@arch ~ $ pacaur -y dwb-git 
:: resolving dependencies...
:: no AUR metadata for dwb-git package
:: looking for inter-conflicts...

AUR Packages  (1):

Name         Old Version  New Version

aur/dwb-git               latest                    

:: Proceed with installation? [Y/n] 

:: Retrieving package(s)...
:: View dwb-git PKGBUILD? [Y/n] n
:: View dwb.install script? [Y/n] n
==> Making package: dwb-git 2014.03.04.g5088db1-1 (Sun Jun 22 15:46:30 CEST 2014)
==> Retrieving sources...
  -> Cloning dwb git repo...
Cloning into bare repository '/tmp/pacaurtmp-bstaletic/dwb-git/dwb'...
remote: Counting objects: 15056, done.
remote: Compressing objects: 100% (3796/3796), done.
remote: Total 15056 (delta 11190), reused 14783 (delta 10952)
Receiving objects: 100% (15056/15056), 2.63 MiB | 88.00 KiB/s, done.
Resolving deltas: 100% (11190/11190), done.
Checking connectivity... done.
==> Validating source files with md5sums...
    dwb ... Skipped
==> Extracting sources...
  -> Creating working copy of dwb git repo...
Cloning into 'dwb'...
done.
==> Starting pkgver()...
==> Updated version: dwb-git 2014.06.14.g9f4bdb9-1
==> Sources are ready.
:: Building dwb-git package(s)...
==> Making package: dwb-git 2014.06.14.g9f4bdb9-1 (Sun Jun 22 15:47:05 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing src/ tree
==> Starting build()...
Build options:
CC = cc
CFLAGS = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -Werror=format-security -pipe --ansi -std=c99 -D_POSIX_C_SOURCE=200112L -O2 -g -D_BSD_SOURCE -D_NETBSD_SOURCE -D__BSD_VISIBLE -pthread -I/usr/include/webkitgtk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/webkitgtk-1.0 -I/usr/include/p11-kit-1 -I/usr/include/json-c -I/usr/include/libsecret-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DWITH_LIBSOUP_2_38=1
LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro -lwebkitgtk-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lsoup-2.4 -ljavascriptcoregtk-1.0 -lgnutls -ljson-c -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpthread -lm -lX11
CPPFLAGS = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DWITH_LIBSECRET
make[1]: Entering directory '/tmp/pacaurtmp-bstaletic/dwb-git/src/dwb/src/util'
cc convert_transport_security.c
convert_transport_security.c: In function ‘handle_pinsets’:
convert_transport_security.c:256:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((name_obj = json_object_object_get(pin_list, "name")) == NULL || !json_object_is_type(name_obj, json_type_string))
         ^
convert_transport_security.c:263:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         good_hashes = json_object_object_get(pin_list, "static_spki_hashes");
         ^
convert_transport_security.c:264:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         bad_hashes = json_object_object_get(pin_list, "bad_static_spki_hashes");
         ^
convert_transport_security.c: In function ‘handle_entries’:
convert_transport_security.c:297:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((name_obj = json_object_object_get(entry, "name")) == NULL ||
         ^
convert_transport_security.c:307:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         json_object *mode = json_object_object_get(entry, "mode");
         ^
convert_transport_security.c:315:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         json_object *include_subdomains = json_object_object_get(entry, "include_subdomains");
         ^
convert_transport_security.c:327:9: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((entry_pins = json_object_object_get(entry, "pins")) != NULL)
         ^
convert_transport_security.c: In function ‘parse_json’:
convert_transport_security.c:371:5: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
     if((pinsets = json_object_object_get(json, "pinsets")) == NULL || !json_object_is_type(pinsets, json_type_array) ||
     ^
convert_transport_security.c:380:5: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
     if((entries = json_object_object_get(json, "entries")) == NULL || !json_object_is_type(entries, json_type_array) ||
     ^
gen hsts_preload.h
/bin/sh: ./convert_transport_security: Permission denied
Makefile:41: recipe for target '../../src/hsts_preload.h' failed
make[1]: *** [../../src/hsts_preload.h] Error 126
make[1]: Leaving directory '/tmp/pacaurtmp-bstaletic/dwb-git/src/dwb/src/util'
Makefile:22: recipe for target 'src/util.subdir-buildfirst' failed
make: *** [src/util.subdir-buildfirst] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
:: dwb-git cleaned
bstaletic@arch ~ $ sudo pacaur -y dwb-git  
:: resolving dependencies...
:: no AUR metadata for dwb-git package
:: looking for inter-conflicts...

AUR Packages  (1):

Name         Old Version  New Version

aur/dwb-git               latest                    

:: Proceed with installation? [Y/n] 

:: Retrieving package(s)...
:: View dwb-git PKGBUILD? [Y/n] n
:: View dwb.install script? [Y/n] n
==> ERROR: Running makepkg as root is a BAD idea and can cause permanent,
catastrophic damage to your system. If you wish to run as root, please
use the --asroot option.
:: Building dwb-git package(s)...
==> ERROR: Running makepkg as root is a BAD idea and can cause permanent,
catastrophic damage to your system. If you wish to run as root, please
use the --asroot option.
:: dwb-git cleaned

I get the same errors with -Sya and -Sa flags.

Offline

#4 2014-06-22 13:54:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] How to install aur packages using pacaur

In the first post you said it failed with a permission denied for the installation step - but your second post does not show that.  The build failed.  There is nothing to install.

EDIT: I just installed pacaur, then used it to install dwb-git.  It worked fine.  I assume you've made local modifications to the dwb code that are causing the build to fail.  Remove all that and start fresh.  You may also be missing needed dependencies - I don't know how pacaur handles dependencies.

Last edited by Trilby (2014-06-22 14:00:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-06-22 13:57:55

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to install aur packages using pacaur

Oops. Yes, build failed. Can you tell me why? It builds fine using makepkg and aura.

Offline

#6 2014-06-22 14:01:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] How to install aur packages using pacaur

See my edit - if you have started fresh and get the same errors, I'd guess it is missing dependencies.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-06-22 14:08:57

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to install aur packages using pacaur

I didn't make any modifications. Webkitgtk is a missing dependancy in this case. But why doesn't pacaur detect it?

Offline

#8 2014-06-22 14:14:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] How to install aur packages using pacaur

edit: sorry I had misinformation here.

Last edited by Trilby (2014-06-22 14:16:32)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2014-06-22 14:15:19

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

Re: [SOLVED] How to install aur packages using pacaur

bstaletic wrote:

I didn't make any modifications. Webkitgtk is a missing dependancy in this case. But why doesn't pacaur detect it?

The question would be more "Why doesn't pacaur detect it on your system?"

$ pacaur -S dwb-git
:: Package(s) dwb-git not found in repositories, trying AUR...
:: resolving dependencies...
:: no AUR metadata for dwb-git package
:: looking for inter-conflicts...

AUR Packages  (1):

Name                Old Version  New Version

aur/dwb-git                      latest                    

Repo Packages (7):

Name                Old Version  New Version  Download Size

extra/geoclue2                   2.1.8-2           0.00 MiB
extra/harfbuzz-icu               0.9.28-1          0.00 MiB
extra/json-glib                  1.0.2-1           0.00 MiB
extra/libmm-glib                 1.2.0-4           0.00 MiB
extra/libnm-glib                 0.9.8.10-3        0.00 MiB
extra/libsecret                  0.18-1            0.00 MiB
extra/webkitgtk2                 2.4.3-1           0.00 MiB

Repo Download Size:    0.00 MiB
Repo Installed Size:  53.85 MiB

:: Proceed with installation? [Y/n] n

Even with the AUR metadata missing, all the deps seems detected.

Last edited by Spyhawk (2014-06-22 14:16:54)

Offline

#10 2014-06-22 14:20:59

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to install aur packages using pacaur

Of course it worked now. Sorry for the inconveniece.

Offline

#11 2014-06-22 14:22:36

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

Re: [SOLVED] How to install aur packages using pacaur

And... what was the issue, if I may ask?

Offline

#12 2014-06-22 15:01:38

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to install aur packages using pacaur

I'm not really sure, but reboot and "pacaur -S dwb-git" just worked.

Offline

Board footer

Powered by FluxBB