[Bug 1095723] New: pin not working: no ARCHIVES.gz on medium or FTP
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 Bug ID: 1095723 Summary: pin not working: no ARCHIVES.gz on medium or FTP Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: Mathias.Homann@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- openSUSE has provided the "pin" command to locate files within uninstalled packages for many years. pin relies on being able to access a file /etc/SuSE-release to figure out the installed version, and a file /var/lib/pin/ARCHIVES.gz which on first use is copied from the installation media. ...there is no /etc/SuSE-release and there is no ARCHIVES.gz on installation medium or ftp. This majorly breaks all kind of administration routines. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c1 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Ludwig Nussel <lnussel@suse.com> --- I wish such things would be found by beta testing :-( Anyways I manually generated them and put them into the online repo again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c2 Mathias Homann <Mathias.Homann@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- Flags| |needinfo? --- Comment #2 from Mathias Homann <Mathias.Homann@opensuse.org> --- even with the file from the ftp server pin is not working, because pin extects the file to be named /var/lib/pin/ARCHIVES_$major.$minor.gz... and it gets the values for $major and $minor from /etc/SuSE-release which seems to have been deprecated now. I have a fixed pin script that uses os-release if there is no SuSE-release file, how do i go about submitting it as patch? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 Tomáš Chvátal <tchvatal@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c3 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW CC| |astieger@suse.com Assignee|bnc-team-screening@forge.pr |pgajdos@suse.com |ovo.novell.com | Flags|needinfo? | --- Comment #3 from Andreas Stieger <astieger@suse.com> --- Attach the patch here, or see https://en.opensuse.org/openSUSE:How_to_contribute_to_Factory Assigning to pin maintainer. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c4 --- Comment #4 from Mathias Homann <Mathias.Homann@opensuse.org> --- Branched, fixed, submitted: https://build.opensuse.org/request/show/615401 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c12 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de --- Comment #12 from Christian Boltz <suse-beta@cboltz.de> --- As reported by Carlos on opensuse-support, pin is still broken in Leap 15: cer@Telcontar:~> pin Gray_A.icc /usr/bin/pin: command substitution: line 89: unexpected EOF while looking for matching `"' /usr/bin/pin: command substitution: line 90: syntax error: unexpected end of file *** pin found no ARCHIVES_"".gz file in /var/lib/pin/ The problem is this line: [ -z ${USED_VERSION} ] && USED_VERSION="`grep VERSION_ID /etc/os-release | cut -f3 -d "\""`" It would work with "cut -f2", but not with -f3. Also, all the quotes trigger the bash errors quoted above. And finally, the message 'pin found no ARCHIVES_"15.0" file' has superfluous quotes ;-) I just submitted SR 668206 - please review it ;-) (I only verified that detecting the version number now works, but didn't do a full test ;-) Initially I wanted to recommend to forward the Tumbleweed version of pin to Leap (which has this issue fixed in another way) - but sadly it's just broken in another way ;-) - see SR 668208 for the fix (and, after accepting it, consider to forward the latest pin to Leap 15.1) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c17 Mathias Homann <Mathias.Homann@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #17 from Mathias Homann <Mathias.Homann@opensuse.org> --- Reopening this - for some reason pin in Tumbleweed still uses $VERSION instead of $VERSION_ID even though the package on OBS has the fix o.0 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c18 --- Comment #18 from Mathias Homann <Mathias.Homann@opensuse.org> --- (In reply to Mathias Homann from comment #17)
Reopening this - for some reason pin in Tumbleweed still uses $VERSION instead of $VERSION_ID even though the package on OBS has the fix o.0
I just checked 15.2, same there - pin reads os-release and uses $VERSION even though the content of the package on OBS uses $VERSION_ID. Something is very fishy here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 Mathias Homann <Mathias.Homann@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Leap 15.0 |Leap 15.2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1095723 http://bugzilla.opensuse.org/show_bug.cgi?id=1095723#c19 Mathias Homann <Mathias.Homann@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #19 from Mathias Homann <Mathias.Homann@opensuse.org> --- false alert - my own mistake. I had some "leftovers" from before this was fixed in another repo. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com