Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370935 - python-updater doesn't work with BSD sed
Summary: python-updater doesn't work with BSD sed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 21:21 UTC by Dmitri Bogomolov
Modified: 2014-04-07 14:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.41 KB, text/plain)
2011-06-09 21:26 UTC, Dmitri Bogomolov
Details
patch to use sed from /usr/lib/portage/bin/ebuild-helpers (python-updater-sed.patch,276 bytes, patch)
2011-08-29 07:32 UTC, Naohiro Aota
Details | Diff
output of `python-updater -p` with `set -x` inside (python-updater.x.gz,80.24 KB, text/plain)
2012-02-07 22:03 UTC, Dmitri Bogomolov
Details
python-updater.patch (python-updater.patch,171 bytes, patch)
2012-02-07 22:45 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
a patch to update sed path (0001-Update-sed-search-path.patch,805 bytes, patch)
2014-01-29 05:23 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Bogomolov 2011-06-09 21:21:08 UTC
I just installed python 2.7 and 3.2 on my g/fbsd-8.0:
# eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python2.7
  [3]   python3.1
  [4]   python3.2

I run python-updater and it always fail with message "package:slot is not a valid package atom" after addind to list about 22 packages, even if I delete this package.

Reproducible: Always

Steps to Reproduce:
1. emerge python python:2.7 (maybe emerge -vuDN world)
2. python-updater
3. emerge -C package:slot (which is invalid)
4. python-updater
5. eselect python set 2 && eselect python set --python3 2
..
10. python-updater
11. emerge -=app-admin/python-updater-0.7-r1
12. python-updater
Actual Results:  
2.
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 *   Adding to list: app-admin/webapp-config-1.50.18:0
 *   Adding to list: app-portage/gentoolkit-0.3.0_rc10-r1:0
 *   Adding to list: app-portage/layman-1.4.2-r2:0
 *   Adding to list: dev-lang/python-2.6.6-r1:2.6
 *   Adding to list: dev-lang/python-2.7.1-r1:2.7
 *   Adding to list: dev-lang/python-2.7.1-r1:2.7
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-libs/glib-2.28.8:2
 *   Adding to list: dev-libs/libgamin-0.1.10-r2:0
 *   Adding to list: dev-libs/libxml2-2.7.8:2
 *   Adding to list: dev-python/django-1.3:0
 *   Adding to list: dev-python/imaging-1.1.7:0
 *   Adding to list: dev-python/ipython-0.10.2:0
 *   Adding to list: dev-python/pexpect-2.4:0
 *   Adding to list: dev-python/psycopg-2.4.1:2
 *   Adding to list: dev-python/py-freebsd-0.9.3-r2:0
 *   Adding to list: dev-python/setuptools-0.6.14-r1:0
 *   Adding to list: dev-util/xdelta-3.0.0:3
 *   Adding to list: dev-vcs/git-1.7.5.3:0
 *   Adding to list: dev-vcs/subversion-1.6.16:0
 *   Adding to list: sys-apps/file-5.07-r2:0
 *   Adding to list: sys-devel/distcc-3.1-r5:0
 * emerge -Dv1 --keep-going app-admin/webapp-config-1.50.18:0 app-portage/gentoolkit-0.3.0_rc10-r1:0 app-portage/layman-1.4.2-r2:0 dev-lang/python-2.6.6-r1:2.6 dev-lang/python-2.7.1-r1:2.7 dev-lang/python-2.7.1-r1:2.7 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.2:3.2 dev-lang/python-3.2:3.2 dev-libs/glib-2.28.8:2 dev-libs/libgamin-0.1.10-r2:0 dev-libs/libxml2-2.7.8:2 dev-python/django-1.3:0 dev-python/imaging-1.1.7:0 dev-python/ipython-0.10.2:0 dev-python/pexpect-2.4:0 dev-python/psycopg-2.4.1:2 dev-python/py-freebsd-0.9.3-r2:0 dev-python/setuptools-0.6.14-r1:0 dev-util/xdelta-3.0.0:3 dev-vcs/git-1.7.5.3:0 dev-vcs/subversion-1.6.16:0 sys-apps/file-5.07-r2:0 sys-devel/distcc-3.1-r5:0
!!! 'app-admin/webapp-config-1.50.18:0' is not a valid package atom.
!!! Please check ebuild(5) for full details.

10.
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 *   Adding to list: dev-lang/python-2.6.6-r1:2.6
 *   Adding to list: dev-lang/python-2.7.1-r1:2.7
 *   Adding to list: dev-lang/python-2.7.1-r1:2.7
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-libs/glib-2.28.8:2
 *   Adding to list: dev-libs/libgamin-0.1.10-r2:0
 *   Adding to list: dev-libs/libxml2-2.7.8:2
 *   Adding to list: dev-python/django-1.3:0
 *   Adding to list: dev-python/imaging-1.1.7:0
 *   Adding to list: dev-python/ipython-0.10.2:0
 *   Adding to list: dev-python/pexpect-2.4:0
 *   Adding to list: dev-python/psycopg-2.4.1:2
 *   Adding to list: dev-python/py-freebsd-0.9.3-r2:0
 *   Adding to list: dev-python/setuptools-0.6.14-r1:0
 *   Adding to list: dev-util/xdelta-3.0.0:3
 *   Adding to list: dev-vcs/git-1.7.5.3:0
 *   Adding to list: dev-vcs/subversion-1.6.16:0
 *   Adding to list: sys-apps/file-5.07-r2:0
 *   Adding to list: sys-devel/distcc-3.1-r5:0
 * emerge -Dv1 --keep-going dev-lang/python-2.6.6-r1:2.6 dev-lang/python-2.7.1-r1:2.7 dev-lang/python-2.7.1-r1:2.7 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.2:3.2 dev-lang/python-3.2:3.2 dev-libs/glib-2.28.8:2 dev-libs/libgamin-0.1.10-r2:0 dev-libs/libxml2-2.7.8:2 dev-python/django-1.3:0 dev-python/imaging-1.1.7:0 dev-python/ipython-0.10.2:0 dev-python/pexpect-2.4:0 dev-python/psycopg-2.4.1:2 dev-python/py-freebsd-0.9.3-r2:0 dev-python/setuptools-0.6.14-r1:0 dev-util/xdelta-3.0.0:3 dev-vcs/git-1.7.5.3:0 dev-vcs/subversion-1.6.16:0 sys-apps/file-5.07-r2:0 sys-devel/distcc-3.1-r5:0
!!! 'dev-lang/python-2.6.6-r1:2.6' is not a valid package atom.

12.
 * Starting Python Updater from 3.2 to 2.7 :
 * No packages needs to be remerged.

Expected Results:  
Remerging all python-related packages

I don't really understand what happen. Maybe this problem not in FreeBSD or python-updater. If there some test actions to clear it up, I will perform it.
Comment 1 Dmitri Bogomolov 2011-06-09 21:23:41 UTC
Excuse me. On step 12 I had 2.7 and 3.2:

# python-updater 
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2:     2.7
 * Active version of Python 3:     3.2
 *   Adding to list: dev-lang/python-2.6.6-r1:2.6
 *   Adding to list: dev-lang/python-2.6.6-r1:2.6
 *   Adding to list: dev-lang/python-2.7.1-r1:2.7
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.1.3-r1:3.1
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-lang/python-3.2:3.2
 *   Adding to list: dev-libs/glib-2.28.8:2
 *   Adding to list: dev-libs/libgamin-0.1.10-r2:0
 *   Adding to list: dev-libs/libxml2-2.7.8:2
 *   Adding to list: dev-python/django-1.3:0
 *   Adding to list: dev-python/imaging-1.1.7:0
 *   Adding to list: dev-python/ipython-0.10.2:0
 *   Adding to list: dev-python/pexpect-2.4:0
 *   Adding to list: dev-python/psycopg-2.4.1:2
 *   Adding to list: dev-python/py-freebsd-0.9.3-r2:0
 *   Adding to list: dev-python/setuptools-0.6.14-r1:0
 *   Adding to list: dev-util/xdelta-3.0.0:3
 *   Adding to list: dev-vcs/git-1.7.5.3:0
 *   Adding to list: dev-vcs/subversion-1.6.16:0
 *   Adding to list: net-dialup/freeradius-2.0.5:0
 *   Adding to list: sys-apps/file-5.07-r2:0
 *   Adding to list: sys-devel/distcc-3.1-r5:0
 * emerge -Dv1 --keep-going dev-lang/python-2.6.6-r1:2.6 dev-lang/python-2.6.6-r1:2.6 dev-lang/python-2.7.1-r1:2.7 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.1.3-r1:3.1 dev-lang/python-3.2:3.2 dev-lang/python-3.2:3.2 dev-libs/glib-2.28.8:2 dev-libs/libgamin-0.1.10-r2:0 dev-libs/libxml2-2.7.8:2 dev-python/django-1.3:0 dev-python/imaging-1.1.7:0 dev-python/ipython-0.10.2:0 dev-python/pexpect-2.4:0 dev-python/psycopg-2.4.1:2 dev-python/py-freebsd-0.9.3-r2:0 dev-python/setuptools-0.6.14-r1:0 dev-util/xdelta-3.0.0:3 dev-vcs/git-1.7.5.3:0 dev-vcs/subversion-1.6.16:0 net-dialup/freeradius-2.0.5:0 sys-apps/file-5.07-r2:0 sys-devel/distcc-3.1-r5:0
!!! 'dev-lang/python-2.6.6-r1:2.6' is not a valid package atom.
!!! Please check ebuild(5) for full details.
Comment 2 Dmitri Bogomolov 2011-06-09 21:26:15 UTC
Created attachment 276421 [details]
emerge --info
Comment 3 Naohiro Aota gentoo-dev 2011-07-25 10:49:14 UTC
This may happen because there's no old version (here, dev-lang/python-2.6.6-r1) available on tree. Please try updating first. (but anyway, I'd like to have python-updater to handle this issue better)
Comment 4 Dmitri Bogomolov 2011-07-31 13:25:12 UTC
(In reply to comment #3)
> This may happen because there's no old version (here, dev-lang/python-2.6.6-r1)
> available on tree. Please try updating first. (but anyway, I'd like to have
> python-updater to handle this issue better)

Update didn't help.

# eix -Ic python
[I] app-admin/eselect-python (20100321@03/25/2010): Eselect module for management of multiple Python versions
[I] app-admin/python-updater (0.9@05/30/2011): Script used to reinstall Python packages after changing of active Python versions
[U] dev-lang/python (2.6.6-r2(2.6)@07/31/2011 2.7.1-r1(2.7)@07/31/2011 3.1.3-r1(3.1)@02/25/2011 -> (~)2.4.6(2.4) (~)2.5.4-r4(2.5) (~)2.6.7(2.6) (~)2.7.2(2.7) (~)3.1.4(3.1) (~)3.2(3.2)): Python is an interpreted, interactive, object-oriented programming language.
Found 3 matches.

All versions present in tree. But python-updater still write "not a valid package atom".
Comment 5 Naohiro Aota gentoo-dev 2011-07-31 13:58:03 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > This may happen because there's no old version (here, dev-lang/python-2.6.6-r1)
> > available on tree. Please try updating first. (but anyway, I'd like to have
> > python-updater to handle this issue better)
> 
> Update didn't help.
> 
> All versions present in tree. But python-updater still write "not a valid
> package atom".

What package is claimed as "not a valid package atom"? Still "dev-lang/python" or not?
What I meant was applied not only for python. I'm suspecting "not a valid package atom" is due to any missing package in the tree.
Comment 6 Dmitri Bogomolov 2011-07-31 14:11:31 UTC
(In reply to comment #5)

> What package is claimed as "not a valid package atom"? Still "dev-lang/python"
> or not?
> What I meant was applied not only for python. I'm suspecting "not a valid
> package atom" is due to any missing package in the tree.

app-admin/webapp-config-1.50.18:0 the first. If I begin to delete packages, it will be dev-lang/python.
Comment 7 Dmitri Bogomolov 2011-07-31 14:22:00 UTC
Now I have deleted app-admin/webapp-config-1.50.18, app-portage/gentoolkit-0.3.0.4-r1, app-portage/layman-2.0.0_rc1-r1 and python-updater writes:

!!! 'dev-lang/python-2.6.6-r2:2.6' is not a valid package atom.
!!! Please check ebuild(5) for full details.

All this versions now in tree. It seems all package atoms is invalid for python-updater in my system.
Comment 8 Naohiro Aota gentoo-dev 2011-07-31 14:32:08 UTC
(In reply to comment #7)
> Now I have deleted app-admin/webapp-config-1.50.18,
> app-portage/gentoolkit-0.3.0.4-r1, app-portage/layman-2.0.0_rc1-r1 and
> python-updater writes:
> 
> !!! 'dev-lang/python-2.6.6-r2:2.6' is not a valid package atom.
> !!! Please check ebuild(5) for full details.
> 
> All this versions now in tree. It seems all package atoms is invalid for
> python-updater in my system.

hm, then my idea was wrong.

Python team,
Any idea or suggestion about this problem?
Comment 9 Naohiro Aota gentoo-dev 2011-08-05 12:06:38 UTC
hm, we shouldn't have both version and slot... we might have to get dev-lang/python:2.6.
Comment 10 Dmitri Bogomolov 2011-08-07 20:03:27 UTC
(In reply to comment #9)
> hm, we shouldn't have both version and slot... we might have to get
> dev-lang/python:2.6.

There is a difference between environment.bz2 on linux and fbsd for app-admin/webapp-config-1.50.18 as example

Linux:
PVR="1.50.18"
FreeBSD:
declare -x PVR="1.50.18"

In `/usr/sbin/python-updater'
1. `get_vdb_variable()' outputs PVR=declare -x PVR="1.50.18",
2. PN="${PF%-${PVR}}"=PF="webapp-config-1.50.18",
3. CATPKG=CATPKGVER="${CATEGORY}/${PN}"="app-admin/webapp-config-1.50.18",
4. CATPKGVER="${CATPKG}:${SLOT}"="${CATPKGVER}:${SLOT}"="app-admin/webapp-config-1.50.18:0"
Comment 11 Naohiro Aota gentoo-dev 2011-08-29 07:32:54 UTC
Created attachment 284973 [details, diff]
patch to use sed from /usr/lib/portage/bin/ebuild-helpers

This behavior is because of difference with "GNU sed" and "FreeBSD sed".
The easiest way to solve this would be to use "/usr/lib/portage/bin/ebuild-helpers/sed" instead.

python team,
Could you review the attached patch and consider applying the patch or give me some comments?
Comment 12 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-08-29 09:16:16 UTC
Seems fine, go ahead.
Comment 13 Naohiro Aota gentoo-dev 2011-08-29 10:30:53 UTC
Thanks. Commit to -r1
Comment 14 Arfrever Frehtes Taifersar Arahesis 2011-12-24 22:29:04 UTC
This patch causes usage of /usr/lib/portage/bin/ebuild-helpers/einfo instead of /lib/rc/bin/einfo. This change breaks indentation. eindent() and eoutdent() functions don't affect einfo from Portage.
Comment 15 Dmitri Bogomolov 2012-02-07 13:31:21 UTC
Today with app-admin/python-updater-0.10 on g/fbsd-8.2 I see the same behavior:

python-updater -p
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.1
 * Globally supported Python ABIs in installed repositories:
 *   gentoo-bsdngentoonlocal:        
 *   Adding to list: app-admin/webapp-config-1.50.18:0
 *   Adding to list: app-portage/gentoolkit-0.3.0.4-r5:0
 *   Adding to list: app-portage/layman-2.0.0_rc3:0
 *   Adding to list: dev-lang/python-2.6.6-r2:2.6
 *   Adding to list: dev-lang/python-2.6.6-r2:2.6
 *   Adding to list: dev-lang/python-2.7.2-r3:2.7
 *   Adding to list: dev-lang/python-3.1.4-r3:3.1
 *   Adding to list: dev-lang/python-3.1.4-r3:3.1
 *   Adding to list: dev-libs/libgamin-0.1.10-r2:0
 *   Adding to list: dev-libs/libxml2-2.7.8-r4:2
 *   Adding to list: dev-python/argparse-1.2.1:0
 *   Adding to list: dev-python/django-1.3.1-r1:0
 *   Adding to list: dev-python/flup-1.0.2:0
 *   Adding to list: dev-python/imaging-1.1.7-r1:0
 *   Adding to list: dev-python/psycopg-2.4.2:2
 *   Adding to list: dev-python/py-freebsd-0.9.3-r1:0
 *   Adding to list: dev-python/pyopenssl-0.13:0
 *   Adding to list: dev-python/python-dateutil-1.5:python-2
 *   Adding to list: dev-python/setuptools-0.6.24:0
 *   Adding to list: dev-python/twisted-11.1.0:0
 *   Adding to list: dev-python/twistedschedule-1.0_beta1:0
 *   Adding to list: dev-python/vobject-0.8.1c:0
 *   Adding to list: dev-vcs/git-1.7.8.4:0
 *   Adding to list: dev-vcs/subversion-1.7.2:0
 *   Adding to list: net-dialup/freeradius-2.0.5:0
 *   Adding to list: net-zope/zope-fixers-1.0:0
 *   Adding to list: net-zope/zope-interface-3.8.0:0
 *   Adding to list: sys-apps/file-5.10:0
 *   Adding to list: sys-devel/distcc-3.1-r6:0
 *   Adding to list: www-apps/donjon-0.1.2:0
 *   Adding to list: www-apps/mailc-0.3.9999:0
 * emerge -Dv1 --keep-going -p app-admin/webapp-config-1.50.18:0 app-portage/gentoolkit-0.3.0.4-r5:0 app-portage/layman-2.0.0_rc3:0 dev-lang/python-2.6.6-r2:2.6 dev-lang/python-2.6.6-r2:2.6 dev-lang/python-2.7.2-r3:2.7 dev-lang/python-3.1.4-r3:3.1 dev-lang/python-3.1.4-r3:3.1 dev-libs/libgamin-0.1.10-r2:0 dev-libs/libxml2-2.7.8-r4:2 dev-python/argparse-1.2.1:0 dev-python/django-1.3.1-r1:0 dev-python/flup-1.0.2:0 dev-python/imaging-1.1.7-r1:0 dev-python/psycopg-2.4.2:2 dev-python/py-freebsd-0.9.3-r1:0 dev-python/pyopenssl-0.13:0 dev-python/python-dateutil-1.5:python-2 dev-python/setuptools-0.6.24:0 dev-python/twisted-11.1.0:0 dev-python/twistedschedule-1.0_beta1:0 dev-python/vobject-0.8.1c:0 dev-vcs/git-1.7.8.4:0 dev-vcs/subversion-1.7.2:0 net-dialup/freeradius-2.0.5:0 net-zope/zope-fixers-1.0:0 net-zope/zope-interface-3.8.0:0 sys-apps/file-5.10:0 sys-devel/distcc-3.1-r6:0 www-apps/donjon-0.1.2:0 www-apps/mailc-0.3.9999:0
!!! 'app-admin/webapp-config-1.50.18:0' is not a valid package atom.
!!! Please check ebuild(5) for full details.

With 0.9-r1 OK.
Comment 16 Arfrever Frehtes Taifersar Arahesis 2012-02-07 20:38:47 UTC
app-admin/python-updater-0.10 uses the following code:

if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
        alias sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed"
fi

Could you check with 'set -x' where is the problem?
Comment 17 Dmitri Bogomolov 2012-02-07 22:03:59 UTC
Created attachment 301189 [details]
output of `python-updater -p` with `set -x` inside

(In reply to comment #16)

I placed `set -x` above this statement and got 1.7 M of output (:

++ echo app-admin/webapp-config-1.50.18/environment.bz2
++ sed -e 's:/.*::'
+ CATEGORY=app-admin
++ echo webapp-config-1.50.18/environment.bz2
++ sed -e 's:/.*::'
+ PF=webapp-config-1.50.18
+ PN=webapp-config-1.50.18
+ [[ -f /var/db/pkg/app-admin/webapp-config-1.50.18/SLOT ]]
+ SLOT=0
+ CATPKG=app-admin/webapp-config-1.50.18
+ [[ 0 -eq 0 ]]
+ [[ -n 0 ]]
+ CATPKGVER=app-admin/webapp-config-1.50.18:0
+ veinfo 2 'Checking app-admin/webapp-config-1.50.18:0'
Comment 18 Arfrever Frehtes Taifersar Arahesis 2012-02-07 22:45:24 UTC
Created attachment 301191 [details, diff]
python-updater.patch

Please test this patch.
Comment 19 Dmitri Bogomolov 2012-02-08 18:32:40 UTC
(In reply to comment #18)
> Created attachment 301191 [details, diff] [details, diff]
> python-updater.patch
> 
> Please test this patch.

Wow! It looks like the right output:

# python-updater -p
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.1
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   gentoo-bsd:                     2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   local:                          2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   progress:                       2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.6-jython 2.7-pypy-1.7
 * No packages need to be reinstalled.
Comment 20 Naohiro Aota gentoo-dev 2012-03-02 15:38:19 UTC
http://code.google.com/p/gentoo-progress/source/detail?spec=svn1864&r=1782#

The SVN head already has the above patch included.

Python team, if you don't mind, I'd like to include this patch as -0.10-r1.
Comment 21 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-03-02 15:53:37 UTC
Looks good to me, go ahead.
Comment 22 Naohiro Aota gentoo-dev 2012-03-02 16:02:24 UTC
Applied. Thanks.
Comment 23 Marien Zwart (RETIRED) gentoo-dev 2012-03-03 18:07:32 UTC
I've committed a followup patch (as 0.10-r2) that undoes the breakage this patch causes on any portage without /usr/lib/portage/bin/ebuild-helpers/sed (which I think means any non-prefix portage). I think I didn't re-break prefix portages in the process, but could a prefix user please confirm that? I've set the bug back to "confirmed" until this has been done.
Comment 24 Mike Gilbert gentoo-dev 2012-03-16 20:20:32 UTC
Looks like this is fixed then.
Comment 25 Dmitri Bogomolov 2013-08-28 15:41:52 UTC
This happens again with app-admin/python-updater-0.11:

 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.2
 * Globally supported Python ABIs in installed repositories:
 *   django-toolsngentoo-bsdnprogressntrac-pluginsngentoonlocal:
!!! Repository 'gentoo-bsd' is missing masters attribute in '/var/lib/layman/gentoo-bsd/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

...
!!! 'app-portage/gentoolkit-0.3.0.7-r2:0' is not a valid package atom.
!!! Please check ebuild(5) for full details.
Comment 26 Naohiro Aota gentoo-dev 2014-01-05 12:43:29 UTC
@python team

portage no longer install gsed in
bin/ebuild-helpers/sed but in bin/ebuild-helpers/bsd/sed which is causing the bug above.

Please apply a patch to correct this path problem.
Comment 27 Naohiro Aota gentoo-dev 2014-01-29 05:23:39 UTC
Created attachment 369036 [details, diff]
a patch to update sed path
Comment 28 Naohiro Aota gentoo-dev 2014-04-07 04:32:20 UTC
I'll add the above patch into portage tree soon, if python team won't take/review it.
Comment 29 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-04-07 07:05:31 UTC
Feel free!
Comment 30 Mike Gilbert gentoo-dev 2014-04-07 14:13:17 UTC
Sorry, I missed this in my last round of updates.

+*python-updater-0.13 (07 Apr 2014)
+
+  07 Apr 2014; Mike Gilbert <floppym@gentoo.org> +python-updater-0.13.ebuild:
+  Version bump. Fix path to sed on BSD, bug 370935.
+