Mailinglist Archive: opensuse-bugs (4216 mails)
| < Previous | Next > |
[Bug 743825] New: With "Use for Build Flag" disabled, removing package from project leaves stale RPMs behind to be used for build
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Fri, 27 Jan 2012 17:07:06 +0000
- Message-id: <bug-743825-21960@http.bugzilla.novell.com/>
https://bugzilla.novell.com/show_bug.cgi?id=743825
https://bugzilla.novell.com/show_bug.cgi?id=743825#c0
Summary: With "Use for Build Flag" disabled, removing package
from project leaves stale RPMs behind to be used for
build
Classification: Internal Novell Products
Product: openSUSE Build Service
Version: 2.3
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: backend
AssignedTo: mls@xxxxxxxx
ReportedBy: ondrej.kubecka@xxxxxxxxx
QAContact: adrian@xxxxxxxx
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0.1)
Gecko/20100101 Firefox/9.0.1
If package is modified and rebuilt after "Use for Build Flag" has been disabled
and reposerver no longer "realizes" RPM's stored under ":full/" directory of
the given repo/arch belong to this package and leaves them behind on package
removal.
This is actually even more troubling as after this there is no way for user to
get rid of these files (except for reintroducing the package, rebuilding it
with "Use for Build Flag" enabled and wiping it out again).
Reproducible: Always
Steps to Reproduce:
'attr' under home:okubecka used as an example throughout the following steps.
1. Create/copy and build a package with "Use for build enabled". We get:
$ osc ls -b home:okubecka:test attr
attr-2.4.46-1.1.src.rpm
attr-2.4.46-1.1.x86_64.rpm
libattr-devel-2.4.46-1.1.x86_64.rpm
libattr-devel-static-2.4.46-1.1.x86_64.rpm
libattr1-2.4.46-1.1.x86_64.rpm
rpmlint.log
$ osc ls -b home:okubecka:test
attr.rpm
libattr-devel.rpm
libattr-devel-static.rpm
libattr1.rpm
2. Disable "Use for Build Flag" to get:
$ osc meta pkg home:okubecka:test attr
<package project="home:okubecka:test" name="attr">
<title>Commands for Manipulating Extended Attributes</title>
<description>A set of tools for manipulating extended attributes on file
system
objects, in particular getfattr(1) and setfattr(1). An attr(1) command
is also provided, which is largely compatible with the SGI IRIX tool of
the same name.</description>
<useforbuild>
<disable/>
</useforbuild>
</package>
3. Make any modification to the package and have it rebuilt (I've modified
Release: in .spec file as an example):
$ osc ls -b home:okubecka:test attr
attr-2.4.46-2.1.src.rpm
attr-2.4.46-2.1.x86_64.rpm
libattr-devel-2.4.46-2.1.x86_64.rpm
libattr-devel-static-2.4.46-2.1.x86_64.rpm
libattr1-2.4.46-2.1.x86_64.rpm
rpmlint.log
$ osc ls -b home:okubecka:test
attr.rpm
libattr-devel.rpm
libattr-devel-static.rpm
libattr1.rpm
4. Remove the package:
$ osc rdelete -mbegone home:okubecka:test attr
Actual Results:
Package is gone, but its orphans are left in ":full/" and can still be used by
other packages for building even though we wanted this package gone:
$ osc ls -b home:okubecka:test attr
Server returned an error: HTTP Error 404: Not Found
home:okubecka:test/attr
$ osc ls -b home:okubecka:test
attr.rpm
libattr-devel.rpm
libattr-devel-static.rpm
libattr1.rpm
Expected Results:
Use for build RPMs in ":full/" directory need to remain associated
(identifiable as related) with their package so that they are destroyed when
appropriate.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |