[Bug 348685] New: zypper should list or install build dependencies for package
https://bugzilla.novell.com/show_bug.cgi?id=348685 Summary: zypper should list or install build dependencies for package Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: janneke-list@xs4all.nl QAContact: dmacvicar@novell.com CC: mmeeks@novell.com Found By: Development Zypper (and/or rpm) should provide a way to automatically install the build dependencies needed to build a package. I find this a very handy if not crucial feature for building an active developer community: much less time wasted reading /configure errors. Because I find it so important I wrote a silly example script: zypper-build-dep that I will attach. I wonder if there is a better way than grep to read the BuildRequires:/BuildPrereq: tags, rpm --querytags does not seem to list them. I also tried several things like rpm --eval %buildrequires to no avail. http://lilypond.org/~janneke/software/suse/zypper-build-dep -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=348685
User janneke-list@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c1
--- Comment #1 from Jan Nieuwenhuizen
https://bugzilla.novell.com/show_bug.cgi?id=348685
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c2
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=348685
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=348685
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c3
--- Comment #3 from Michael Meeks
Sadly, a rpm does not contains the buildrequires
Too true; however with the patch I knocked up (attached) they do contain the build requires :-) Of course - perhaps that is evil ;-) who should I poke about making this field public ? [ and/or is this a process filled with pure pain ? ;-] With this field easily available in the pkg, presumably then the zypper implementation becomes trivial ? though you'll need to hook out RPMTAG_BUILDREQUIRES = 1109, /*!< internal */ which is an RPM_STRING_ARRAY_TYPE (?). Jan - perhaps an ITO target, if Duncan is not jumping at this ? ;-) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=348685
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c4
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=348685
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c5
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=348685
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c6
--- Comment #6 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=348685
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c7
--- Comment #7 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=348685
User jnieuwenhuizen@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c8
Jan Nieuwenhuizen
https://bugzilla.novell.com/show_bug.cgi?id=348685
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c9
--- Comment #9 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=348685
User jnieuwenhuizen@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c10
--- Comment #10 from Jan Nieuwenhuizen
https://bugzilla.novell.com/show_bug.cgi?id=348685
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c11
--- Comment #11 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=348685
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c12
--- Comment #12 from Cristian Rodriguez
Hi Michael,
The use case is to make Debian developers feel at-home; these guys are used to being able to quickly install all the dependencies necessary to build a given package that they have installed; whether or not they have a source package for it.
Well.. this is not debian.. I really dont see the real need for this feature...
Chroots, etc. are all well and good for those that have lots of space, server-level hardware, and (of course) the .srpm;
huh ? I have not seen a hardisk of less than 60GB for a while, and that's enough to fit any OS and quite a few chroot jails..
but the use-case is mostly to make individual source compilation of latest/unstable stuff easier - pwrt. installing build dependencies. (AFAICS).
I dont think so, we have build and osc to easily build packages, we dont need to import yet another foreign concept when we are have tools that work. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=348685
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348685#c15
Duncan Mac-Vicar
participants (1)
-
bugzilla_noreply@novell.com