Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
pkg
Commits
68459d3e
Commit
68459d3e
authored
Jan 07, 2018
by
Baptiste Daroussin
Browse files
Fix variable collision due to bad cherry-pick
parent
bf36bad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
libpkg/pkg_create.c
View file @
68459d3e
...
...
@@ -349,9 +349,9 @@ pkg_load_metadata(struct pkg *pkg, const char *mfile, const char *md_dir,
/* if no arch autodetermine it */
if
(
pkg
->
abi
==
NULL
)
{
#ifdef __FreeBSD__
char
*
osversion
;
xasprintf
(
&
osversion
,
"%d"
,
osversion
);
pkg_kv_add
(
&
pkg
->
annotations
,
"FreeBSD_version"
,
osversion
,
"annotation"
);
char
*
str_
osversion
;
xasprintf
(
&
str_
osversion
,
"%d"
,
osversion
);
pkg_kv_add
(
&
pkg
->
annotations
,
"FreeBSD_version"
,
str_
osversion
,
"annotation"
);
#endif
arch
=
pkg_object_string
(
pkg_config_get
(
"ABI"
));
pkg
->
abi
=
xstrdup
(
arch
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment