Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
rpm-ndb.22277
checksepwarn.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File checksepwarn.diff of Package rpm-ndb.22277
--- ./build/parseReqs.c.orig 2017-10-05 10:04:56.887602165 +0000 +++ ./build/parseReqs.c 2017-12-01 16:00:06.956343096 +0000 @@ -42,7 +42,7 @@ static rpmRC checkEpoch(const char *s, c return RPMRC_OK; } -static rpmRC checkDep(rpmSpec spec, char *N, char *EVR, char **emsg) +static rpmRC checkDep(rpmSpec spec, rpmsenseFlags tagflags, char *N, char *EVR, char **emsg) { /* * Tokens must begin with alphanumeric, _, or /, but we don't know @@ -65,6 +65,11 @@ static rpmRC checkDep(rpmSpec spec, char if (rpmExpandNumeric("%{?_wrong_version_format_terminate_build}")) return RPMRC_FAIL; + if (tagflags & (RPMSENSE_FIND_REQUIRES|RPMSENSE_FIND_PROVIDES)) + rpmlog(RPMLOG_WARNING, "%s\n", *emsg); + else + rpmlog(RPMLOG_WARNING, _("line %d: %s: %s\n"), spec->lineNum, *emsg, spec->line); + *emsg = _free(*emsg); } } return RPMRC_OK; @@ -72,6 +77,7 @@ static rpmRC checkDep(rpmSpec spec, char struct parseRCPOTRichData { rpmSpec spec; + rpmsenseFlags tagflags; StringBuf sb; }; @@ -109,7 +115,7 @@ static rpmRC parseRCPOTRichCB(void *cbda appendStringBuf(sb, rel); appendStringBuf(sb, EVR); } - rc = checkDep(data->spec, N, EVR, emsg); + rc = checkDep(data->spec, data->tagflags, N, EVR, emsg); _free(N); _free(EVR); } else if (type == RPMRICH_PARSE_OP) { @@ -223,6 +229,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package p goto exit; } data.spec = spec; + data.tagflags = tagflags; data.sb = newStringBuf(); if (rpmrichParseForTag(&r, &emsg, parseRCPOTRichCB, &data, nametag) != RPMRC_OK) { freeStringBuf(data.sb); @@ -274,7 +281,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package p } /* check that dependency is well-formed */ - if (checkDep(spec, N, EVR, &emsg)) + if (checkDep(spec, tagflags, N, EVR, &emsg)) goto exit; if (nametag == RPMTAG_FILETRIGGERNAME || --- ./macros.in.orig 2017-12-01 16:00:02.705355493 +0000 +++ ./macros.in 2017-12-01 16:00:06.957343106 +0000 @@ -456,7 +456,7 @@ package or when debugging this package.\ %_invalid_encoding_terminates_build 0 # Should invalid version format in requires, provides, ... terminate a build? -%_wrong_version_format_terminate_build 1 +%_wrong_version_format_terminate_build 0 # # Should rpm try to download missing sources at build-time?
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