You are not logged in.

#1 2014-09-04 19:32:29

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

[solved] makepkg freeze after installing dependencies

If I try to create a package from the AUR

makepkg -sfi package-name

seems to freeze after installing the dependencies. It just stops after installing the last dependency and freezes with 65% CPU-Usage.
If I quit makepkg after freeze and run it again, building the package works so the dependencies get correctly installed.

Note to AUR-Helpers:

  • Yaourt -> works

  • Packer -> works

  • pacaur -> doesn't work

Any Idea what could cause this Problem and how to fix it?

Last edited by mak42 (2014-09-05 20:45:42)


simplicity is the ultimate form of sophistication

Offline

#2 2014-09-04 20:17:35

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

Re: [solved] makepkg freeze after installing dependencies

Note: Yaourt seems to use "makepkg -sf", while packer uses "makepkg -f". Pacaur indeed uses "-sfi", so it is the -i flag that doesn't work here.

Offline

#3 2014-09-04 20:23:57

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

Unfortunately no, "makepkg -sf"  and "makepkg -s" also freezes, "makepkg -f" doesn't work due missing dependencies.
I installed dwarf-fortress a while ago, and had to enable multilib, maybe something in that direction is causing the issue?

EDIT: removing dwarf-fortress and its multi-lib deps doesn't seem to make any difference...

Last edited by mak42 (2014-09-05 07:13:35)


simplicity is the ultimate form of sophistication

Offline

#4 2014-09-05 11:36:05

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,967

Re: [solved] makepkg freeze after installing dependencies

mak42, you'll have to give more info if you want help.

Does this occur with a specific package or with all ?

If  a specific pacakge, which one ?

incase you install needed dependencies manually , then run makepkg package-name  without any flags, does the package build ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#5 2014-09-05 12:43:51

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

Hi Lone_Wolf,
yeah sorry about that I'll try to clarify.
It occurs with all AUR-Packages having dependencies, if I use the -s flag.
Installing dependencies manually and build the package afterwards without any flags works fine.

So currently I really don't have a clue what could cause this behavior...


simplicity is the ultimate form of sophistication

Offline

#6 2014-09-05 12:52:16

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

Re: [solved] makepkg freeze after installing dependencies

mak42> Could you test with yaourt again? From what I see, yaourt actually uses makepkg -sf to build packages. It would be even weirder that yaourt succeeds where makepkg fails...

Offline

#7 2014-09-05 12:59:40

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

I just double-checked it, yaourt installs the dependencies and starts building the package.
Downloading tarball and running "makepkg -sf package-name"  doesn't get further than installing the last dependency. It doesn't start building the package.
Can I provide any debug output or log-files that could help clarify this behavior?


simplicity is the ultimate form of sophistication

Offline

#8 2014-09-05 13:26:23

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

Re: [solved] makepkg freeze after installing dependencies

mak42> This doesn't make sense to me. Either I'm looking at the wrong part of yaourt code, or the additional "-p PKGBUILD" makes it work (yaourt actually uses "makepkg -sfp ./PKGBUILD", but that last part is totally redundant).

Last edited by Spyhawk (2014-09-05 13:26:36)

Offline

#9 2014-09-05 13:46:10

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

"makepkg -sfp ./PKGBUILD" also fails. It doesn't make sense for me either, but something must be causing this issue. I just could use yaourt and live with it, but it really bugs me.
Unfortunately I don't have the expertise to track it down myself sad

Last edited by mak42 (2014-09-05 14:05:25)


simplicity is the ultimate form of sophistication

Offline

#10 2014-09-05 19:03:09

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

Spyhawk wrote:

mak42> Could you test with yaourt again? From what I see, yaourt actually uses makepkg -sf to build packages. It would be even weirder that yaourt succeeds where makepkg fails...

I just looked at the source myself and for me it looks like yaourt is installing the dependencies before building the package.
So I think this is the reason why it works with yaourt.


simplicity is the ultimate form of sophistication

Offline

#11 2014-09-05 20:05:19

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

Re: [solved] makepkg freeze after installing dependencies

Hmm, this looks like a function to build packages from the ABS (yaourt -Sb...). But well, I gave up understanding yaourt code logic a long time ago...

If you want to know more, you still can have a look at a bash debug output (bash -x yaourt -S package). Not sure exactly how that would help with your issue, but understanding why yaourt doesn't fail here might be a beginning.

Last edited by Spyhawk (2014-09-05 20:05:40)

Offline

#12 2014-09-05 20:36:43

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

Soooo I've found the guilty after digging through the source of "makepkg"

source /etc/profile &>/dev/null

causes the problem, if I run this command it freezes, Ctrl+C will kill the whole terminal.
So now I know the source of the Problem, still trying to figure out why this happens...

EDIT: Found it smile I'm using tdm as login-manager, to start it I've put a script into /etc/profile.d/ and this Script gave back an Error "Invalid TTY".
If you source /etc/profile it can't complete due to this Error.
So it was completely my fault hmm

Thank's for your help, now I have to find another way of starting TDM wink

EDIT2:
just put /usr/bin/tdm into ~/.bash_profile and tdm works fine.
Actually this is already in the wiki, don't know why I didn't do that in the first place hmm

Last edited by mak42 (2014-09-05 21:00:19)


simplicity is the ultimate form of sophistication

Offline

#13 2014-09-05 20:46:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] makepkg freeze after installing dependencies

What have you got in /etc/profile.d/?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2014-09-05 21:01:59

mak42
Member
From: Austria
Registered: 2014-07-11
Posts: 10

Re: [solved] makepkg freeze after installing dependencies

jasonwryan wrote:

What have you got in /etc/profile.d/?

just a bash script tdm-login.sh

#!/bin/bash

source /usr/bin/tdm

running tdm in a terminal-emulator leads to the error Invalid TTY

Last edited by mak42 (2014-09-05 21:11:32)


simplicity is the ultimate form of sophistication

Offline

#15 2014-09-05 21:49:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] makepkg freeze after installing dependencies

Yes, I posted while you were updating your previous post with the tdm info...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB