opkg | 31 Oct 12:09 2014

Issue 149 in opkg: Allow install packages which provide same files

Status: New
Owner: ----

New issue 149 by diego.su...@...: Allow install packages which  
provide same files
https://code.google.com/p/opkg/issues/detail?id=149

The package install fails if it tries to install a file that is provided by  
another package.

Some discussion about this can be found at:
https://www.mail-archive.com/yocto-EtnWKYl6rD/WsZ/bQMPhNw <at> public.gmane.org/msg18145.html

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

opkg | 30 Oct 14:46 2014

Issue 148 in opkg: Add multiple compression algorithms support

Status: New
Owner: ----

New issue 148 by dima@...: Add multiple compression algorithms  
support
https://code.google.com/p/opkg/issues/detail?id=148

As far as I can understand, opkg uses libarchive that makes possible to use  
many different compression algorithms. But names "data.tar.gz"  
and "data.tar.xz" are hardcoded in opkg_archive.c, so files  
with "data.tar.xz" will fail.
It would be great to add xz support to opkg.

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Liu Jian | 30 Oct 06:40 2014

[opkg-utils PATCH] update-alternatives: Installing fails for "["


--

-- 
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opkg-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
opkg | 29 Oct 17:08 2014

Issue 147 in opkg: Add ignore-package

Status: New
Owner: ----

New issue 147 by dima@...: Add ignore-package
https://code.google.com/p/opkg/issues/detail?id=147

Some idea that can enhance opkg as a better one.

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Paul Barker | 29 Oct 00:32 2014
Picon

Status Update

Hi all,

This is a fairly important status update so please give it a quick read.

I've merged a bunch of fixes to the opkg-0.2.x branch in addition to
backports of the following bugfix commits from master:
    3b1238d opkg_install: Keep auto-installed packages when moved from
        'Depends' to 'Recommends'
    3479367 pkg_depends: Don't mark Conflicts as Depends
    24b011b pkg_hash_fetch_conflicts: fix possible segfaults
    35b58c1 unarchive: Fix broken uname and gname cache
    4fa0562 release: Verify correct file when not using gzip
    04f9775 opkg_upgrade: Upgrade must not modify package flags
    923405d opkg_upgrade: Do not upgrade orphan packages
    5d1f2a7 opkg_install: Set pkg state and give advice when install fails

For the patches sent by Andreas Oberritter and applied to the old svn
repository, I've taken the opportunity to correct the git commit
author during the backport.

This now fixes everything I want to fix on the opkg-0.2.x branch. I'll
give this 2 weeks for testing and then release v0.2.4. Please give
this a test over the next two weeks if you can!

Around the same time as the v0.2.4 release I plan to tag v0.3.0-rc0.
This 'rc zero' is going to mark the completion of the intended
functional changes for the v0.3.0 release. What will follow this will
be the code formatting fixes to ensure that we finally have a
consistent code style across all opkg source files. This change will
be pretty invasive and so v0.3.0-rc0 will be the last point where
(Continue reading)

Liu Jian | 27 Oct 10:35 2014

[OE-core] [PATCH] opkg-utils: update-alternatives fails for "[" and "[[" in busybox

Building a small filesystem with busybox gives the following error lines:
sed: -e expression #1, char 41: unterminated address regex
sed: -e expression #1, char 42: unterminated address regex
This is caused by the script update-alternatives.
"[" can not be used directly in sed expression.

Signed-off-by: Jian Liu <jian.liu@...>
---
...andle-leftbracket-for-update-alternatives.patch | 25
++++++++++++++++++++++
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 +++-
2 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644
meta/recipes-devtools/opkg-utils/opkg-utils/handle-leftbracket-for-update-alternatives.patch

diff --git
a/meta/recipes-devtools/opkg-utils/opkg-utils/handle-leftbracket-for-update-alternatives.patch
b/meta/recipes-devtools/opkg-utils/opkg-utils/handle-leftbracket-for-update-alternatives.patch
new file mode 100644
index 0000000..0cdc4e2
--- /dev/null
+++
b/meta/recipes-devtools/opkg-utils/opkg-utils/handle-leftbracket-for-update-alternatives.patch
 <at>  <at>  -0,0 +1,25  <at>  <at> 
+"[" should be escaped in sed expression. This patch is suitable for
opkg-0.2.2
+
+diff -Nur utils.orig/update-alternatives utils/update-alternatives
+--- utils.orig/update-alternatives 2013-08-16 04:22:29.000000000 +0800
++++ utils/update-alternatives 2014-09-19 10:55:22.238159317 +0800
(Continue reading)

Francesco Rocca | 25 Oct 14:59 2014
Picon

OPKG-UTILS PROBLEM

Hi all,

I have installated opkg-utils on ubuntu 13.04 but it seems it does not work fine.
At the moment I am able to build opk packages for arm but when I try to use
OPKG-MAKE-INDEX the following messages are shown:

snapshots$ opkg-make-index . > Packages
Traceback (most recent call last):
  File "/usr/local/bin/opkg-make-index", line 120, in <module>
    pkg = opkg.Package(abspath, relpath=pkg_dir)
  File "/usr/local/bin/opkg.py", line 165, in __init__
    ar = arfile.ArFile(f, fn)
  File "/usr/local/bin/arfile.py", line 49, in __init__
    assert signature == "!<arch>\n" or signature == b"!<arch>\n", "Old ipk format (non-deb) is unsupported, file: %s, magic: %s, expected %s" % (fn, signature, "!<arch>")
AssertionError: Old ipk format (non-deb) is unsupported, file: ./nex33a1_1.1_arm.opk, magic: T ��eL�A &:����>
                               ������
                                      ��:
                                         ��4��޸�K w����f�������>���coU��<U��i FS3c+#{zc+{#g�/�+� l��̜�L����`������������������������psq5r��㋹���������G�����S�00��� ����900�8ػ:;�2�+
                      �� }�Oꟙ��� � vf��[��; <at> ����x�__�.��m֙0` ��5��5 ��>#{#z
                                                                           �
                                                                            ��T�Rҵ c�8Ǒ���ۢ���ZCtZ(_y ����8���FK��R��k���}��T�4��j`ƫL��I*) �(/�2�    5ՋȺ��)?ͽ ���u�M}f�� }��샣����d�"x�P� );� >_� �    mi���R !˼] ��M&|� � �&��a`� D#R�x���V�� z^�Y �e��ȿ܈��Sl ������.��&��ێD� E�N l���$C� ���x�1�� GDW sc� d����5��4��ƍ \���ɮ��hq��� mn���p��� ��xu���p�"�=��& �&v�- Ǜ��j�r��ά���ܹ߫dݽ H��Z{/#CWa���� �k���6�sC�8#�"_�� ���q� w� ���? �X �A��̇ {�|�`��i�Ww�Y�PT�o$��ٿ � �6�B� z)�_� ������B���?� fVV6v����Y99X�/���� ��sM$�_ iݵ�́ b
                                 ���K
, expected !<arch>


How can I fix this issue?

Thank you very much

Best Regards

Francesco.

--
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opkg-devel+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
opkg | 24 Oct 12:42 2014

Re: Issue 104 in opkg: Support prerm scripts for the old package

Updates:
	Status: Fixed

Comment #3 on issue 104 by paul.betafive: Support prerm scripts for the old  
package
https://code.google.com/p/opkg/issues/detail?id=104

This is now fixed in master thanks to a patch from Peter Urbanec.

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Peter Urbanec | 22 Oct 15:55 2014
Picon

[PATCH - resend] opkg_install: Call prerm and postrm scripts on package upgrade.

When upgrading a package from v1 to v2, run "v1-prerm upgrade v2" and
"v1-postrm upgrade v2", similarly to what dpkg does.

This patch fixes issue 104.

Signed-off-by: Peter Urbanec <openembedded-devel@...>
---
  libopkg/opkg_install.c | 40 ++++++++++++++++++++++++++++++++++++++--
  1 file changed, 38 insertions(+), 2 deletions(-)

diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 4f6fe65..ec0f34a 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
 <at>  <at>  -601,7 +601,25  <at>  <at>  prerm_upgrade_old_pkg(pkg_t *pkg, pkg_t *old_pkg)
  	   Error unwind, for both the above cases:
  	   old-postinst abort-upgrade new-version
       */
-     return 0;
+    int err;
+    char *script_args;
+    char *new_version;
+
+    if (!old_pkg || !pkg)
+        return 0;
+
+    new_version = pkg_version_str_alloc(pkg);
+
+    sprintf_alloc(&script_args, "upgrade %s", new_version);
+    free(new_version);
+    err = pkg_run_script(old_pkg, "prerm", script_args);
+    free(script_args);
+    if (err != 0) {
+        opkg_msg(ERROR, "prerm script for package \"%s\" failed\n",
+                 old_pkg->name);
+        return -1;
+    }
+    return 0;
  }

  static int
 <at>  <at>  -1001,7 +1019,25  <at>  <at>  postrm_upgrade_old_pkg(pkg_t *pkg, pkg_t 
*old_pkg)
  	   new-postrm failed-upgrade old-version
  	Error unwind, for both cases:
  	   old-preinst abort-upgrade new-version    */
-     return 0;
+    int err;
+    char *script_args;
+    char *new_version;
+
+    if (!old_pkg || !pkg)
+        return 0;
+
+    new_version = pkg_version_str_alloc(pkg);
+
+    sprintf_alloc(&script_args, "upgrade %s", new_version);
+    free(new_version);
+    err = pkg_run_script(old_pkg, "postrm", script_args);
+    free(script_args);
+    if (err != 0) {
+        opkg_msg(ERROR, "postrm script for package \"%s\" failed\n",
+                 old_pkg->name);
+        return -1;
+    }
+    return 0;
  }

  static int
--

-- 
2.1.2

opkg | 16 Oct 14:15 2014

Re: Issue 116 in opkg: Install package(s) only after download of all needed packages.


Comment #4 on issue 116 by evensonb...@...: Install package(s)
only  
after download of all needed packages.
https://code.google.com/p/opkg/issues/detail?id=116

This is the behavior I want for my system; if all upgrades don't download  
successfully, then don't do an upgrade.  The workaround for me at this  
point has been to do "opkg upgrade --download-only" and verify that  
everything downloaded without error.  Could the fix be as simple as adding  
a command line options such as "--download-all" that essentially  
performs "opkg upgrade --download-only" first, verifies all downloads  
completed successfully and the performing "opkg upgrade" if all files  
downloaded successfully?

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

opkg | 16 Oct 01:30 2014

Re: Issue 116 in opkg: Install package(s) only after download of all needed packages.


Comment #3 on issue 116 by paul.betafive: Install package(s) only after  
download of all needed packages.
https://code.google.com/p/opkg/issues/detail?id=116

My comment was from a few months back and doesn't quite reflect my recent  
thinking: after considering this more, it needs to be an option for opkg as  
different embedded systems may want to do things differently. We need to  
have an option to download each package as it is required and an option to  
download all required packages upfront before installation begins. The  
exact way this works can be decided after v0.3.0 is released.

--

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings


Gmane