[Bug 1185500] New: zypper source-install silently fails if /usr/src/packages directory structure not available
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 Bug ID: 1185500 Summary: zypper source-install silently fails if /usr/src/packages directory structure not available Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: tjyrinki@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- It seems zypper source-install claims it has installed sources without notifying it actually was not able to, if either /usr/src/packages/ or /usr/src/ directory is missing. However, if /usr/src/packages/ exists then it's able to create the missing directories like SOURCES/SPECS. In the copy-paste below, the source-install succeeds on the third attempt. --- cut --- timo@linux-sde2:~> sudo rm -rf /usr/src/ timo@linux-sde2:~> sudo zypper si workrave Loading repository data... Reading installed packages... Resolving package dependencies... The following source package is going to be installed: workrave 1 source package to install. Overall download size: 6.2 MiB. Already cached: 0 B. After the operation, additional 6.2 MiB will be used. Continue? [y/n/v/...? shows all options] (y): Retrieving srcpackage workrave-1.10.44-3.2.noarch (1/1) Retrieving: workrave-1.10.44-3.2.src.rpm .........................................................................[done (4.1 MiB/s)] Checking for file conflicts: .................................................................................................[done] (1/1) Installing: workrave-1.10.44-3.2.src ...................................................................................[done] timo@linux-sde2:~> ls -l /usr/src/ ls: cannot access '/usr/src/': No such file or directory timo@linux-sde2:~> sudo mkdir /usr/src/ timo@linux-sde2:~> sudo zypper si workrave Loading repository data... Reading installed packages... Resolving package dependencies... The following source package is going to be installed: workrave 1 source package to install. Overall download size: 6.2 MiB. Already cached: 0 B. After the operation, additional 6.2 MiB will be used. Continue? [y/n/v/...? shows all options] (y): Retrieving srcpackage workrave-1.10.44-3.2.noarch (1/1) Retrieving: workrave-1.10.44-3.2.src.rpm .........................................................................[done (4.2 MiB/s)] Checking for file conflicts: .................................................................................................[done] (1/1) Installing: workrave-1.10.44-3.2.src ...................................................................................[done] timo@linux-sde2:~> ls -l /usr/src/ total 0 timo@linux-sde2:~> sudo mkdir /usr/src/packages/ timo@linux-sde2:~> sudo zypper si workrave Loading repository data... Reading installed packages... Resolving package dependencies... The following source package is going to be installed: workrave 1 source package to install. Overall download size: 6.2 MiB. Already cached: 0 B. After the operation, additional 6.2 MiB will be used. Continue? [y/n/v/...? shows all options] (y): Retrieving srcpackage workrave-1.10.44-3.2.noarch (1/1) Retrieving: workrave-1.10.44-3.2.src.rpm .........................................................................[done (3.3 MiB/s)] Checking for file conflicts: .................................................................................................[done] (1/1) Installing: workrave-1.10.44-3.2.src ...................................................................................[done] timo@linux-sde2:~> ls -l /usr/src/packages/ total 8 drwxr-xr-x 2 root root 4096 Apr 30 15:15 SOURCES drwxr-xr-x 2 root root 4096 Apr 30 15:15 SPECS timo@linux-sde2:~> -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 http://bugzilla.opensuse.org/show_bug.cgi?id=1185500#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tjyrinki@suse.com Flags| |needinfo?(tjyrinki@suse.com | |) --- Comment #1 from Michael Andres <ma@suse.com> --- Please attach the /var/log/zypper.log showing the above commands. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 http://bugzilla.opensuse.org/show_bug.cgi?id=1185500#c2 Timo Jyrinki <tjyrinki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(tjyrinki@suse.com | |) | --- Comment #2 from Timo Jyrinki <tjyrinki@suse.com> --- Ack, attaching a log from running the three zypper commands. However, Bugzilla is constantly giving me Chameleon not found if I try to attach the file at the moment, so I'll just post it here instead: https://people.debian.org/~timo/zypper/zypper-bsc1185500.log.xz -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 http://bugzilla.opensuse.org/show_bug.cgi?id=1185500#c3 --- Comment #3 from Timo Jyrinki <tjyrinki@suse.com> --- Created attachment 848924 --> http://bugzilla.opensuse.org/attachment.cgi?id=848924&action=edit zypper log from running the commmands (trying once more, it was probably browser not able to fetch the root only file for posting) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 http://bugzilla.opensuse.org/show_bug.cgi?id=1185500#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #4 from Michael Andres <ma@suse.com> --- Rpm issued neither error not any note on the screen. # rpm --showrc| grep _topdir ... -13: _topdir %{expand:%%global _topdir %{lua:if posix.access(rpm.expand("% {_usrsrc}/packages"), "w") then print "%{_usrsrc}/packages" else print "%{getenv:HOME}/rpmbuild" end} But according to it's configuration rpm silently installed the packages to ~root/rpmbuild. Probably the same on your system. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo? | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 Timo Jyrinki <tjyrinki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|zypper source-install |zypper source-install |silently fails if |should be more verbose |/usr/src/packages directory |about where it installs |structure not available |sources (/usr/src/packages | |or /root/rpmbuild) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185500 http://bugzilla.opensuse.org/show_bug.cgi?id=1185500#c5 --- Comment #5 from Timo Jyrinki <tjyrinki@suse.com> --- Ack, so it seems, I had no idea. This bug could be left with the new subject line as a wishlist item that the user would be told where to find the installed sources more easily. Or it could be closed. When I was a newcomer to SUSE (or well back to SUSE after a very long time) I had hard time finding them even from /usr/src - even though obvious in hindsight - let alone now /root/rpmbuild in this case, when I was used to source fetching commands to fetch them to the current directory. So it's an usability issue. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com