On Wed, Aug 29, 2018 at 4:57 AM, Waldek Kozaczuk <jwkozac...@gmail.com>
wrote:

> Nadav was right. Blacklisting site-packages and dist-packages fixes the
> problem on Fedora.
>
> The only problem I saw on my Fedora VM, deleting characters from python
> console (both 2x and 3x) would not work. Possibly wrong terminal settings,
>

Indeed. I seems this issue is not caused by not copying site-packages et al.
Rather, on my Linux host, if I run

   TERM= python

i.e., python with an empty "TERM" variable set, I get the same buggy
backspace behavior.

If I run

./scripts/run.py -V -e "--env=TERM=unknown /python"

and copy the "unknown" terminal (as from the "rogue" example), it works
well.

I'm still trying to figure out how to do this in a less ugly way.




>
> On Monday, August 27, 2018 at 7:40:40 AM UTC-4, Geraldo Netto wrote:
>>
>> Dear Friends,
>>
>> I think we could use pip to check if  we have any python package that
>> binds/uses systemd
>> I don't have a fedora vm anymore but on linux mint, I have installed
>> "pip" (I guess yum/dnf has the same package name)
>>
>> Then, we can list all packages:
>> netto@morpheus:~$ pip list --format=columns
>> Package             Version
>> ------------------- ---------
>> ...
>> six                 1.11.0
>> ...
>>
>> Finally:
>> netto@morpheus:~$ sudo pip show -f six
>> Name: six
>> Version: 1.11.0
>> Summary: Python 2 and 3 compatibility utilities
>> Home-page: http://pypi.python.org/pypi/six/
>> Author: Benjamin Peterson
>> Author-email: benj...@python.org
>> License: MIT
>> Location: /home/netto/.local/lib/python2.7/site-packages
>> Requires:
>> Files:
>>   six-1.11.0.dist-info/DESCRIPTION.rst
>>   six-1.11.0.dist-info/INSTALLER
>>   six-1.11.0.dist-info/METADATA
>>   six-1.11.0.dist-info/RECORD
>>   six-1.11.0.dist-info/WHEEL
>>   six-1.11.0.dist-info/metadata.json
>>   six-1.11.0.dist-info/top_level.txt
>>   six.py
>>   six.pyc
>>
>> I took six as an example because as Waldek said, ubuntu based distros
>> don't have any systemd binding/dependency installed
>> (I could confirm it on linux mint too)
>>
>>
>> Kind Regards,
>>
>> Geraldo Netto
>> Sapere Aude => Non dvcor, dvco
>> http://exdev.sf.net/
>>
>>
>> On Mon, 27 Aug 2018 at 06:01, Nadav Har'El <n...@scylladb.com> wrote:
>>
>>> The missing functions seem to be from libsystemd, I guess we need to add
>>> that too. The question is how to automatically figure out it's needed.
>>> Maybe we need to "ldd" more stuff to collect more needed libraries...
>>>
>>> I don't know if there's something we can do to *not* need these
>>> libraries. After all,  OSv does *not* really have systemd. I wonder if we
>>> just delete (blacklist) /lib/python3.6/site-packages/systemd/ or
>>> something, may python will not look for it in the first place.
>>>
>>>
>>>
>>> --
>>> Nadav Har'El
>>> n...@scylladb.com
>>>
>>> On Fri, Aug 17, 2018 at 7:01 AM, Waldek Kozaczuk <jwkoz...@gmail.com>
>>> wrote:
>>>
>>>> Even all 3 examples from Python 3 readme work fine with Fedora 28
>>>> distribution of Python 3 with my latest ELF patch, there is some weird
>>>> behavior which I do not see with Ubuntu distribution.
>>>>
>>>> For example if I try to execute some erroneous python code Python
>>>> breaks like so:
>>>>
>>>> ./scripts/run.py --api -e "/python3 -c \"prin('Hello')\""
>>>> OSv v0.51.0-25-g807f0385
>>>> eth0: 192.168.122.15
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sched_getscheduler to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol flistxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol unlinkat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> __wcscat_chk to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol fsetxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol llistxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> fremovexattr to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol lgetxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol listxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sched_getparam to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sched_setscheduler to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sigtimedwait to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol readlinkat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol fexecve to
>>>> bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol mkdirat to
>>>> bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> __wcsncpy_chk to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol lsetxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> clock_settime to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol fgetxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sched_rr_get_interval to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol __xmknodat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol linkat to
>>>> bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> removexattr to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> getgrouplist to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol sigpending
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> sched_setparam to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol fchownat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol getxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol renameat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol setxattr
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol symlinkat
>>>> to bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol waitid to
>>>> bind now
>>>> WARN:/usr/lib/libpython3.6m.so.1.0: - failed to find symbol
>>>> lremovexattr to bind now
>>>> WARN:/lib/python3.6/lib-dynload/syslog.cpython-36m-x86_64-linux-gnu.so:
>>>> - failed to find symbol setlogmask to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_journal.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_stream_fd
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_journal.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_sendv to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_restart_unique to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_flush_matches to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_seek_tail
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_has_persistent_files to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_restart_fields to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_add_conjunction to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_open_files_fd to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_catalog_for_message_id to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_get_data
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_has_runtime_files to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_query_unique to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_open to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_next_skip
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_previous
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_add_match
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_id128_get_boot to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_open_directory_fd to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_get_events
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_enumerate_fields to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_previous_skip to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_reliable_fd to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_enumerate_unique to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_close to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_timeout to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_test_cursor to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_monotonic_usec to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_get_fd to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_restart_data to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_wait to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_open_files
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_next to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_realtime_usec to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_process to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_enumerate_data to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_seek_monotonic_usec to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_add_disjunction to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_seek_head
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_catalog to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_get_cursor
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_seek_realtime_usec to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_seek_cursor to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_get_data_threshold to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_id128_from_string
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_open_directory to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol sd_journal_get_usage
>>>> to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/_reader.cpython-
>>>> 36m-x86_64-linux-gnu.so: - failed to find symbol
>>>> sd_journal_set_data_threshold to bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/id128.cpython-36m-
>>>> x86_64-linux-gnu.so: - failed to find symbol sd_id128_get_boot to bind
>>>> now
>>>> WARN:/lib/python3.6/site-packages/systemd/id128.cpython-36m-
>>>> x86_64-linux-gnu.so: - failed to find symbol sd_id128_randomize to
>>>> bind now
>>>> WARN:/lib/python3.6/site-packages/systemd/id128.cpython-36m-
>>>> x86_64-linux-gnu.so: - failed to find symbol sd_id128_get_machine to
>>>> bind now
>>>> /lib/python3.6/site-packages/systemd/_journal.cpython-36m-x8
>>>> 6_64-linux-gnu.so: failed looking up symbol sd_journal_sendv
>>>>
>>>> [backtrace]
>>>> 0x0000000000354fb4 <elf::object::symbol(unsigned int, bool)+260>
>>>> 0x000000000035533f <elf::object::resolve_pltgot(unsigned int)+127>
>>>> 0x0000000000355642 <elf_resolve_pltgot+50>
>>>> 0x000000000039885f <???+3770463>
>>>> 0x00002000001ff31f <???+2093855>
>>>> 0x0000100001973b86 <PyCFunction_Call+86>
>>>> 0x0000100001d23e3f <???+30555711>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "OSv Development" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to osv-dev+u...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "OSv Development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to osv-dev+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "OSv Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osv-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to