<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opkg-lede/libopkg/pkg.c, branch master</title>
<subtitle>LEDE fork of Opkg</subtitle>
<id>https://git-03.infra.openwrt.org/project/opkg-lede/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/opkg-lede/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/'/>
<updated>2021-03-11T00:16:46Z</updated>
<entry>
<title>pkg: pass-through ABIVersion to status file</title>
<updated>2021-03-11T00:16:46Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-03-10T23:39:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=d71856a4f137dc9fb890c5e777790e2c51fde921'/>
<id>urn:sha1:d71856a4f137dc9fb890c5e777790e2c51fde921</id>
<content type='text'>
This allows removing it from package names if needed without
storing the SourceName for each and every package, which is mostly
redundant information.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libopkg: fix compiler warning</title>
<updated>2020-08-31T09:55:09Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2020-08-31T09:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=cf44c2feb606b60ba3f35392e102c281ef6ea0da'/>
<id>urn:sha1:cf44c2feb606b60ba3f35392e102c281ef6ea0da</id>
<content type='text'>
libopkg/pkg.c: In function 'pkg_set_raw':
libopkg/pkg.c:109:58: warning: format '%d' expects argument of type
 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'}
 [-Wformat=]

Use '%zu' instead.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libopkg: fix replacelist parsing and writing</title>
<updated>2019-01-17T21:02:37Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2019-01-17T21:02:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=d217daf1b32d88a48659155b1faf747982175c5d'/>
<id>urn:sha1:d217daf1b32d88a48659155b1faf747982175c5d</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>pkg: alternatives support</title>
<updated>2017-05-02T14:28:33Z</updated>
<author>
<name>Yousong Zhou</name>
</author>
<published>2017-03-18T08:45:53Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=546bc72356c7a6b435540852b10625b7531f2117'/>
<id>urn:sha1:546bc72356c7a6b435540852b10625b7531f2117</id>
<content type='text'>
It's a list of specs of the following form seprated by commas to describe
alternatives provided by the package

    &lt;prio&gt;:&lt;path&gt;:&lt;altpath&gt;

where &lt;path&gt; will be a symbolic link to &lt;altpath&gt; of the highest &lt;prio&gt;

Size comparison on x86_64 after the change

    function                                             old     new   delta
    pkg_alternatives_update                                -     587    +587
    pkg_parse_line                                      2101    2609    +522
    .rodata                                            24594   24738    +144
    pkg_formatted_field                                 2385    2528    +143
    pkg_deinit                                           427     486     +59
    pkg_print_status                                     264     280     +16
    opkg_configure                                        59      69     +10
    xreadlink                                            120     128      +8
    opkg_remove_pkg                                     1079    1087      +8
    ------------------------------------------------------------------------------
    (add/remove: 2/0 grow/shrink: 8/0 up/down: 1483/0)           Total: 1497 bytes

Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
</content>
</entry>
<entry>
<title>pkg_run_script: use pkg-&gt;dest in half installed case</title>
<updated>2017-04-09T10:02:55Z</updated>
<author>
<name>Alejandro del Castillo</name>
</author>
<published>2017-03-27T21:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=3f13edd42bd2411f1f0bdc40b0033b1a193ef037'/>
<id>urn:sha1:3f13edd42bd2411f1f0bdc40b0033b1a193ef037</id>
<content type='text'>
Fixes running scripts for packages in half-installed state which would
otherwise fail with:

 * pkg_run_script: Internal error: ... has a NULL tmp_unpack_dir.
 * opkg_remove_pkg: not removing package "...", prerm script failed

Upstream bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11245

Signed-off-by: Alejandro del Castillo &lt;alejandro.delcastillo@ni.com&gt;
[Jo-Philipp Wich: rebased onto opkg-lede, updated commit message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>set_flags_from_control: remove function</title>
<updated>2017-03-15T01:16:39Z</updated>
<author>
<name>Alejandro del Castillo</name>
</author>
<published>2017-02-22T23:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=07f3b022c1cf6bcafe87f083ef2482eb7a8ec701'/>
<id>urn:sha1:07f3b022c1cf6bcafe87f083ef2482eb7a8ec701</id>
<content type='text'>
During installs, install_data_files calls set_flags_from_control to
capture the case where fields, such as "Essential", are present in the
package control file but are missing on the Packages file. This
operation is expensive (re-parses the control file) and is catering to a
case that should not be supported on the first place.

Signed-off-by: Alejandro del Castillo &lt;alejandro.delcastillo@ni.com&gt;
[Jo-Philipp Wich: remove function prototype as well]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>libopkg: specify "/bin/sh" instead of "sh"</title>
<updated>2017-03-15T00:39:14Z</updated>
<author>
<name>Glenn Strauss</name>
</author>
<published>2017-03-02T22:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=5dc3e3363159939fcfb429a959bc91296541dc09'/>
<id>urn:sha1:5dc3e3363159939fcfb429a959bc91296541dc09</id>
<content type='text'>
avoid strange behavior with execvp() when PATH is not set in environment
(in which case confstr(_CS_PATH) should return something reasonable)

reproducable running openwrt 15.05 and 15.05.1 and attempting to install
a software package (e.g. libuuid) via LuCI (prior to openwrt/luci#1048).
(https://github.com/openwrt/luci/pull/1048) libuuid.postinst fails with
status 255 on 15.05 and opkg segfaults in 15.05.1.  This probably merits
further exploration.

Originally reported in https://github.com/openwrt/packages/issues/1922

Signed-off-by: Glenn Strauss &lt;gstrauss@gluelogic.com&gt;
</content>
</entry>
<entry>
<title>pkg: forward "provided_by_hand" flag in pkg_merge()</title>
<updated>2017-02-28T23:16:28Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-28T23:08:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=758527e6e714fa077445a6f9f12b5e0a295d2af8'/>
<id>urn:sha1:758527e6e714fa077445a6f9f12b5e0a295d2af8</id>
<content type='text'>
Due to the fact that we now load status files after preparing the abstract
structures describing the cli specified packages, we need to ensure that the
"provided_by_hand" flag is properly conveyed in pkg_merge(), otherwise the
cli provided package archive might get ignored in favor to a newer version
from feeds.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>libopkg: drop custom md5 implementation, unconditionally enable sha256 support</title>
<updated>2017-02-18T13:53:16Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-18T13:53:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=33f7b80aa32583ed41a9bb88612f8ec6a959987b'/>
<id>urn:sha1:33f7b80aa32583ed41a9bb88612f8ec6a959987b</id>
<content type='text'>
Drop custom md5 implementation and switch to the one provided by libubox,
also remove support for enabling/disabling checksum support and always build
it unconditionally.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>libopkg: remove config.h references</title>
<updated>2017-02-17T17:26:18Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-17T17:26:18Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/opkg-lede/commit/?id=e2e66a62227b2805c4577b33e36ee4fc7d090e86'/>
<id>urn:sha1:e2e66a62227b2805c4577b33e36ee4fc7d090e86</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
</feed>
