From: Michael Schroeder Date: Mon, 22 Oct 2018 12:46:17 +0000 (+0200) Subject: Incompatible ABI change: change transaction_calc_installsizechange from int to long... X-Git-Tag: 0.7.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532e080d928eb8b01ef8a6c5620d1d5c977db7ea;p=thirdparty%2Flibsolv.git Incompatible ABI change: change transaction_calc_installsizechange from int to long long --- diff --git a/bindings/solv.i b/bindings/solv.i index b651aada..1188142a 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -3727,7 +3727,7 @@ rb_eval_string( int steptype(XSolvable *s, int mode) { return transaction_type($self, s->id, mode); } - int calc_installsizechange() { + long long calc_installsizechange() { return transaction_calc_installsizechange($self); } void order(int flags=0) { diff --git a/doc/gen/libsolv-bindings.3 b/doc/gen/libsolv-bindings.3 index af43b309..c065a131 100644 --- a/doc/gen/libsolv-bindings.3 +++ b/doc/gen/libsolv-bindings.3 @@ -2,12 +2,12 @@ .\" Title: Libsolv-Bindings .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 09/14/2018 +.\" Date: 10/22/2018 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "LIBSOLV\-BINDINGS" "3" "09/14/2018" "libsolv" "LIBSOLV" +.TH "LIBSOLV\-BINDINGS" "3" "10/22/2018" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -5049,7 +5049,7 @@ For installed packages, returns all of the packages that replace us\&. For to be .RS 4 .\} .nf -\fBint calc_installsizechange()\fR; +\fBlong long calc_installsizechange()\fR; my \fI$change\fR \fB=\fR \fI$trans\fR\fB\->calc_installsizechange()\fR; \fIchange\fR \fB=\fR \fItrans\fR\fB\&.calc_installsizechange()\fR \fIchange\fR \fB=\fR \fItrans\fR\fB\&.calc_installsizechange()\fR diff --git a/doc/gen/libsolv-pool.3 b/doc/gen/libsolv-pool.3 index 26c9144b..51dc1a4e 100644 --- a/doc/gen/libsolv-pool.3 +++ b/doc/gen/libsolv-pool.3 @@ -2,12 +2,12 @@ .\" Title: Libsolv-Pool .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 09/14/2018 +.\" Date: 10/22/2018 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "LIBSOLV\-POOL" "3" "09/14/2018" "libsolv" "LIBSOLV" +.TH "LIBSOLV\-POOL" "3" "10/22/2018" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff --git a/doc/gen/repo2solv.1 b/doc/gen/repo2solv.1 index 2b7239da..0a8c3cf1 100644 --- a/doc/gen/repo2solv.1 +++ b/doc/gen/repo2solv.1 @@ -2,12 +2,12 @@ .\" Title: repo2solv .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 09/14/2018 +.\" Date: 10/22/2018 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "REPO2SOLV" "1" "09/14/2018" "libsolv" "LIBSOLV" +.TH "REPO2SOLV" "1" "10/22/2018" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff --git a/doc/gen/solv.1 b/doc/gen/solv.1 index 30450d28..aae1c6d5 100644 --- a/doc/gen/solv.1 +++ b/doc/gen/solv.1 @@ -2,12 +2,12 @@ .\" Title: solv .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 09/14/2018 +.\" Date: 10/22/2018 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "SOLV" "1" "09/14/2018" "libsolv" "LIBSOLV" +.TH "SOLV" "1" "10/22/2018" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff --git a/doc/libsolv-bindings.txt b/doc/libsolv-bindings.txt index bf8f44c7..7ed2d55d 100644 --- a/doc/libsolv-bindings.txt +++ b/doc/libsolv-bindings.txt @@ -3128,7 +3128,7 @@ be installed packages, returns all of the packages that the new package replaces. The special ``other'' solvable is always the first entry of the returned array. - int calc_installsizechange(); + long long calc_installsizechange(); my $change = $trans->calc_installsizechange(); change = trans.calc_installsizechange() change = trans.calc_installsizechange() diff --git a/examples/solv/solv.c b/examples/solv/solv.c index d43497ab..3deb1a02 100644 --- a/examples/solv/solv.c +++ b/examples/solv/solv.c @@ -787,7 +787,7 @@ rerunsolver: #if defined(SUSE) showdiskusagechanges(trans); #endif - printf("install size change: %d K\n", transaction_calc_installsizechange(trans)); + printf("install size change: %lld K\n", transaction_calc_installsizechange(trans)); printf("\n"); acnt = solver_alternatives_count(solv); diff --git a/src/transaction.c b/src/transaction.c index 9a329661..4a4189eb 100644 --- a/src/transaction.c +++ b/src/transaction.c @@ -828,11 +828,11 @@ transaction_make_installedmap(Transaction *trans, Map *installedmap) } } -int +long long transaction_calc_installsizechange(Transaction *trans) { Map installedmap; - int change; + long long change; transaction_make_installedmap(trans, &installedmap); change = pool_calc_installsizechange(trans->pool, &installedmap); diff --git a/src/transaction.h b/src/transaction.h index c8408381..4690ced4 100644 --- a/src/transaction.h +++ b/src/transaction.h @@ -115,7 +115,7 @@ extern void transaction_classify_pkgs(Transaction *trans, int mode, Id type, Id packages is returned */ extern int transaction_installedresult(Transaction *trans, Queue *installedq); -int transaction_calc_installsizechange(Transaction *trans); +long long transaction_calc_installsizechange(Transaction *trans); void transaction_calc_duchanges(Transaction *trans, struct _DUChanges *mps, int nmps);