Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
rpm
auto-config-update-aarch64-ppc64le.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File auto-config-update-aarch64-ppc64le.diff of Package rpm
Index: build/parseSpec.c =================================================================== --- build/parseSpec.c.orig +++ build/parseSpec.c @@ -942,7 +942,30 @@ static rpmSpec parseSpec(const char *spe &(spec->buildrequires)); break; case PART_BUILD: - parsePart = parseSimpleScript(spec, "%build", &(spec->build)); + if (spec->build) { + rpmlog(RPMLOG_ERR, _("line %d: second %s\n"), spec->lineNum, "%build"); + parsePart = PART_ERROR; + break; + } + spec->build = newStringBuf(); + appendLineStringBuf(spec->build, + "ref=/usr/lib/rpm\n" + "mints=0\n" + "case $(uname -m) in\n" + " aarch64) mints=20120610;;\n" + " ppc64le) mints=20130610;;\n" + " riscv64) mints=20160911;;\n" + "esac\n" + "for s in guess sub; do\n" + " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n" + " grep -q config-patches@ $c || continue\n" + " timestamp=$(sed -n \"/^timestamp=/{s///;s/[-'\\\"]//g;p;q;}\" $c)\n" + " test -n \"$timestamp\" || timestamp=0\n" + " test $timestamp -ge $mints || install -m 755 $ref/config.$s $c\n" + " done\n" + "done\n" + ); + parsePart = parseLines(spec, STRIP_NOTHING, NULL, &(spec->build)); break; case PART_INSTALL: parsePart = parseSimpleScript(spec, "%install", &(spec->install));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor