[Bug 588390] New: build tool (init_buildsystem script)
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c0 Summary: build tool (init_buildsystem script) Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: stephenx.e.ware@intel.com QAContact: adrian@novell.com Found By: --- Blocker: Yes init_buildsystem does not handle spec file macros specifying lua as the command interpreter. Sorry about the limited info. Send me an email if it isn't readily apparent to you what I'm talking about. I'll try to point to a resource that helps. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c1 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |stephenx.e.ware@intel.com --- Comment #1 from Adrian Schröter <adrian@novell.com> 2010-03-15 15:51:26 UTC --- Can you provide a concrete example what you want to achieve here ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c2 --- Comment #2 from stephen ware <stephenx.e.ware@intel.com> 2010-03-15 17:29:13 UTC --- here is a copy of the %post script for setup-2.8.15-1.fc13.src.rpm #throw away useless and dangerous update stuff until rpm will be able to #handle it ( http://rpm.org/ticket/6 ) %post -p <lua> for i, name in ipairs({"passwd", "shadow", "group", "gshadow"}) do os.remove("/etc/"..name..".rpmnew") end My configuration requires this as part of the build environment. Since init_buildsystem executes the %post script with bash rather than lua, it fails. I'd like to see build check the -p flag and use the requested interpreter. I did it with: prog=`rpm -qp --nodigest --nosignature --qf \ %{PREINPROG}" "$BUILD_ROOT/.init_b_cache/rpms/$PKG.rpm" | \ sed 's/<\(.*\)>/\1/'` and then a test of prog to see if using a requested interpreter or bash (on prog = "") I did not include my changes as a patch since mine is a hack, not necessarily a fix. Hope this helps. -stephen -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |xyyang@novell.com Info Provider|stephenx.e.ware@intel.com | AssignedTo|bnc-team-screening@forge.pr |adrian@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c3 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|adrian@novell.com |mls@novell.com --- Comment #3 from Adrian Schröter <adrian@novell.com> 2010-03-16 11:31:21 UTC --- Micha, can you support this ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c4 --- Comment #4 from Michael Schröder <mls@novell.com> 2010-03-16 13:26:56 UTC --- I don't think we really need it. Do you really have to run the setup postinstall script? If not, just don't list it in the "Runscripts:" line of the product config. (That's what I did for Fedora 12 in our build service.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=588390 http://bugzilla.novell.com/show_bug.cgi?id=588390#c5 --- Comment #5 from stephen ware <stephenx.e.ware@intel.com> 2010-03-16 14:15:51 UTC --- No, I don't need to run the script. I inherited the config and have not really shaken it out yet. However, this single scenario isn't really the point, just an example. RPM supports specifying script interpreters, build doesn't. I'm just giving the heads up. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com