Closed 6d61726b760a closed 9 years ago
Hi!
Thanks for reporting!
This seems to be a missing '-y' option to yum-builddep. CAn't really understand how this has worked for anyone, seems like a bad bug. Could you possibly make a try after applying the following patch?
diff --git a/scripts/lpf-sudo-builddep b/scripts/lpf-sudo-builddep
index cde80ed..403b562 100755
--- a/scripts/lpf-sudo-builddep
+++ b/scripts/lpf-sudo-builddep
@@ -18,7 +18,7 @@ for spec in "$@"; do
fi
done
-[ "$good_specs" ] && /usr/bin/yum-builddep $good_specs
+[ "$good_specs" ] && /usr/bin/yum-builddep -y $good_specs
# vim: set expandtab ts=4 sw=4:
diff --git a/scripts/mockbuild-helper b/scripts/mockbuild-helper
index 2924a47..f00f6a5 100755
--- a/scripts/mockbuild-helper
+++ b/scripts/mockbuild-helper
@@ -58,7 +58,7 @@ for pkgdir in ${pkgdirs[@]}; do
cp $PKG_DATA_DIR/$pkg/SOURCES/* $(pwd) || :
echo "$pkg: downloading sources" && spectool -g $spec &&
echo "$pkg: installing build dependencies" &&
- yum-builddep $spec &&
+ yum-builddep -y $spec &&
echo "$pkg: building" && \
rpmbuild ${rpmbuild_opts:-'-bb'} $spec && \
echo "$pkg: storing results" &&
sorry for my slow reply. unfortunately ive never needed to actually apply a patch file before...
some googling tells me it will something along the lines of
$ patch -p1 < {/path/to/patch/file}
which fails:
[root@trogdora Downloads]# patch -p1 < patch.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/scripts/lpf-sudo-builddep b/scripts/lpf-sudo-builddep
|index cde80ed..403b562 100755
|--- a/scripts/lpf-sudo-builddep
|+++ b/scripts/lpf-sudo-builddep
--------------------------
File to patch: ^C
[root@trogdora Downloads]#
which file am i pointing it at?
Well, you need to be in the right directory for it to work, in this case /usr/share/lpf. Try that first, something like 'cd /usr/share/lpf; sudo patch -p1 < ~/Downloads/patch.patch'
Otherwise, since the changes are easy, you might as well apply them "by hand" by editing /usr/share/lpf/scripts/ilpf-sudo-builddep and /usr/share/lpf/scripts/mockbuild-helper. Just remove the lines with a '-' and add the corresponding '+' line (the rest is context and should be left as-is).
I tried this patch and it works for me.
Patch works for me too
This is fixed in devel and current fedora packaging.
Hi,
Had an issue trying to install the spotify client.
It seemed to be doing all the right things, however it wasnt until i checked the logs that i realised yum was waiting for a "y" to proceed with the install..
Log below
it hung here for a little while and at this point that i switched back to the terminal where i was running
DISPLAY= lpf update
and pressedy
andenter
after which the install appeared to continue as normal