Bug 280659 - [NEW PORT] devel/pycdc: Python bytecode disassembler and decompiler
Summary: [NEW PORT] devel/pycdc: Python bytecode disassembler and decompiler
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-06 12:15 UTC by gatekeeper
Modified: 2024-08-10 11:38 UTC (History)
1 user (show)

See Also:


Attachments
git patch (4.33 KB, patch)
2024-08-06 12:15 UTC, gatekeeper
no flags Details | Diff
git patch (4.33 KB, patch)
2024-08-06 15:00 UTC, gatekeeper
no flags Details | Diff
git patch (2.01 KB, patch)
2024-08-06 15:36 UTC, gatekeeper
no flags Details | Diff
git patch (2.10 KB, patch)
2024-08-06 22:21 UTC, gatekeeper
no flags Details | Diff
git patch (2.06 KB, patch)
2024-08-06 23:05 UTC, gatekeeper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gatekeeper 2024-08-06 12:15:32 UTC
Created attachment 252550 [details]
git patch

I would like to add pycdc to the ports tree.

NOTE: I have disabled the optimization in the CMakeFiles.txt, otherwise the program crashes with segmentation fault for some tests. This is something I will be reporting  upstream. This also happens if I compile the software under Linux; therefore, this is not FreeBSD-specific issue, but rather a problem upstream (my best guess is UB in code).
Comment 1 gatekeeper 2024-08-06 14:27:03 UTC
(In reply to gatekeeper from comment #0)
https://github.com/zrax/pycdc/issues/486
Comment 2 gatekeeper 2024-08-06 15:00:02 UTC
Created attachment 252562 [details]
git patch

Fix copy-paste error: set license to GPLv3
Comment 3 gatekeeper 2024-08-06 15:36:27 UTC
Created attachment 252564 [details]
git patch

Update pycdc with upstream fix for UB
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-06 21:07:19 UTC
1. PORTVERSION=0.20240806 => DISTVERSION=g20240806

2. Why pkg-descr use name "Decompyle++", but PORTNAME=pycdc?
Perhaps it is worth adding a brief explanation.
Comment 5 gatekeeper 2024-08-06 22:21:09 UTC
Created attachment 252571 [details]
git patch

Changed version, and rephrased the pkg-descr.
Seems that the official name for the project is pycdc, but the authors refer to it in the readme files as Decompyle++. Therefore, also added a note illustrating just that.
Comment 6 gatekeeper 2024-08-06 23:05:31 UTC
Created attachment 252574 [details]
git patch

Reverted back the text, but just kept the note in the first line of pkg-descr
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-06 23:28:03 UTC
distinfo is not updated - I fixed it.
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-08-07 00:16:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b5336de74e52f5e2ac15fa8def3cfdfcd61b3e3

commit 3b5336de74e52f5e2ac15fa8def3cfdfcd61b3e3
Author:     gatekeeper <tiago.gasiba@gmail.com>
AuthorDate: 2024-08-06 23:59:19 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-06 23:59:19 +0000

    devel/pycdc: New port: Python bytecode disassembler and decompiler

    NOTE: pycdc is also known as Decompyle++.
    Decompyle++ aims to translate compiled Python byte-code back into valid
    and human-readable Python source code. While other projects have achieved
    this with varied success, Decompyle++ is unique in that it seeks to
    support byte-code from any version of Python.
    Decompyle++ includes both a byte-code disassembler (pycdas) and a
    decompiler (pycdc).
    https://github.com/zrax/pycdc

    PR:     280659

 devel/pycdc/Makefile (new)  | 28 ++++++++++++++++++++++++++++
 devel/pycdc/distinfo (new)  |  3 +++
 devel/pycdc/pkg-descr (new) |  9 +++++++++
 3 files changed, 40 insertions(+)
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-07 00:20:32 UTC
Thanks.
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-08-10 11:38:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6f4c98ac6e2d356aadb65767cc134e3e3f2572a

commit c6f4c98ac6e2d356aadb65767cc134e3e3f2572a
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-08-10 11:32:20 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-10 11:36:27 +0000

    devel/Makefile: add port devel/pycdc

    PR:             280659
    Reported by:    antoine (via email)
    Fixes:          3b5336de74e5 (New port: Python bytecode disassembler and decompiler)

 devel/Makefile | 1 +
 1 file changed, 1 insertion(+)