Created attachment 187882 [details] gz file with 4 svn diff This is a package of ports that enables chinese cangjie input method package includes: /chinese/libcangjie /chinese/pycangjie /chinese/ibus-cangjie /deve/pycanberra WWW: http://cangjians.github.io/ You have to install the packages in this order libcangjie -> pycangjie -> ibus-cangjie Because of issues with python versions in Makefiles pycanberra can be installed anytime before ibus-cangjie; it's optional and allows for sounds. My Python porting skills might not be up to snuff and this could probably be written better. I am open to suggestions on improving this. This is a heavy port to test because it needs LLVM and that takes about 1 hour to build the whole thing, gnome stuff I guess.
How's this port going?
make check-plist for devel/pycanberra complains about: ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra-1.0-py%%PYTHON_VER%%.egg-info/PKG-INFO Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra-1.0-py%%PYTHON_VER%%.egg-info/SOURCES.txt Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra-1.0-py%%PYTHON_VER%%.egg-info/dependency_links.txt Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra-1.0-py%%PYTHON_VER%%.egg-info/top_level.txt Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/__init__.py Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/__init__.pyc Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/__init__.%%PYTHON_PYOEXTENSION%% Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/pycanberra.py Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/pycanberra.pyc Error: Missing: %%PYTHON_SITELIBDIR%%/pycanberra/pycanberra.%%PYTHON_PYOEXTENSION%% ===> Error: Plist issues found.
(In reply to Kurt Jaeger from comment #2) I didn't realize that the autoplist handled this for me.
Created attachment 188242 [details] pycanberra svn diff This is an updated pycanberra removing the pkg-plist which should be handled automatically by USES_PYTHON= autoplist directive. Also removed bsd.make.[pre|post] stuff
A commit references this bug: Author: pi Date: Fri Nov 24 18:31:19 UTC 2017 New revision: 454830 URL: https://svnweb.freebsd.org/changeset/ports/454830 Log: New port: devel/pycanberra A very basic wrapper for libcanberra. Ensure all strings passed to libcanberra are byte strings. WWW: https://github.com/totdb/pycanberra PR: 223565 Submitted by: owen94012@gmail.com Changes: head/devel/Makefile head/devel/pycanberra/ head/devel/pycanberra/Makefile head/devel/pycanberra/distinfo head/devel/pycanberra/files/ head/devel/pycanberra/files/patch-setup.py head/devel/pycanberra/pkg-descr
A commit references this bug: Author: pi Date: Fri Nov 24 18:40:22 UTC 2017 New revision: 454831 URL: https://svnweb.freebsd.org/changeset/ports/454831 Log: devel/pycanberra: remove comment line PR: 223565 Reported by: joneum Changes: head/devel/pycanberra/Makefile
testbuilds@work
Testbuild fails, see the buildlog at http://people.freebsd.org/~pi/logs/chinese__ibus-cangjie-cur-1511548562.txt
(In reply to Kurt Jaeger from comment #8) Are you building this in Poudriere? I think I've seen this error before from a previous port, can you please add: autopoint intltool to the ibus-cangjie Makefile? If it's too much trouble I'll just create a new svn diff and attach that.
Were you able to build the port or do I need to submit an updated diff file?
(In reply to bcomputerguy from comment #10) o You have to install them in this order: libcangjie -> pycangjie -> ibus-cangjie can you try that? I just did a test and it worked as expected.
I'm testbuilding with poudriere, and it fails, see the log. If this: libcangjie -> pycangjie -> ibus-cangjie is required to build, the _DEPENDS should reflect it. Can you submit an update that reflects this ?
Created attachment 189001 [details] ibus-cangjie with pycanberra support I build ibus-cangjie. I had to abuse flavors a bit, forcing pycangjie to build version above 3.4 and commenting out the python check line in the configure.ac file. I'll try to get upstream to fix the issues but for now the port builds cleanly as is. pycanberra needs to be updated with this diff as well.
(In reply to Kurt Jaeger from comment #14) Awesome, I'll see if I can get some changes upstream to remove those kludges I put in the Makefiles. Suitable to submit to the ports tree?
I'm still building. It re-builds gtk20 and cmake. Ah, there are issues: [00:10:39] [03] [00:00:12] Skipping chinese/pycangjie | zh-pycangjie-1.3: Dependent port chinese/libcangjie | zh-libcangjie-1.3 failed
(In reply to Kurt Jaeger from comment #16) What version of FreeBSD are you building on? I don't get any failures, can you provide more details? FreeBSD blubee 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r326056: Tue Nov 21 14:54:55 UTC 2017 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Testbuilds for chinese/bus-cangjie all fail to find a working python during configure. Any ideas ? See the poudriere build logs at: http://people.freebsd.org/~pi/logs/chinese__ibus-cangjie-10i-1513888731.txt http://people.freebsd.org/~pi/logs/chinese__ibus-cangjie-111-1513888731.txt http://people.freebsd.org/~pi/logs/chinese__ibus-cangjie-cur-1513888731.txt I build with poudriere on cur (12.0-CURRENT 1200051 amd64), 11.1amd64 and 10.3i386.
Created attachment 189021 [details] current state of the three missing ports The diff is the state of the ports I'm testbuilding right now (some small fixes to build with flavors).
(In reply to Kurt Jaeger from comment #18) This doesn't make any sense, why wouldn't it pull in python?
(In reply to Kurt Jaeger from comment #19) You shouldn't need to apply any changes, the port builds cleanly. I tested it before submitting and I just rested it just now. Unless I'm missing something w/ poudriere why is it building correctly for me with the diffs that I setup and failing for you? build log: https://pastebin.com/0Kuhy49c
(In reply to bcomputerguy from comment #20) Good question, but if you check your log, the configure run does not mention python, while my build checks for python. I'm as surprised as you are.
(In reply to Kurt Jaeger from comment #22) it seems that I updated the wrong diff. I had to add a kludge, comment out the python check in the configure file because I "KNOW" i'll have installed python3.6 with ibus-cangjie. If it checks for python, it will find it but configure will fail because python version < 3.2.3 I filed a bug about it here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224486 I'll look at the diffs and see why I uploaded the wrong .diff files. can you add this to your ibus-cangjie/Makefile ---------- .include <bsd.port.pre.mk> do-configure: @(cd ${WRKSRC} && \ ${REINPLACE_CMD} -e 's|([3.2.3])|([2.7])|g' ${WRKSRC}/configure.ac && \ autopoint --force && \ intltoolize --force --copy --automake && \ aclocal -I m4 && \ autoheader && \ automake --add-missing --copy && \ autoconf && \ ./configure ${CONFIGURE_ENV}) #ugly kludge fix [1] #[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224486 #I know python3 will be installed so I'll just look around this check .include <bsd.port.post.mk>
Created attachment 189054 [details] proper diff file I have to apologize, I made the diff without committing my local changes AND I didn't look at the diff files before uploading them, so the diffs were really incomplete. I made all the changes and now things should build as expected. Apologies again for my oversight...
(In reply to bcomputerguy from comment #24) Please check the uploaded file: fetch -o ib.diff https://bugs.freebsd.org/bugzilla/attachment.cgi?id=189054 ib.diff 100% of 3072 B 16 MBps 00m00s $ less ib.diff "ib.diff" may be a binary file. See it anyway? $ file ib.diff ib.diff: POSIX tar archive $ tar vft ib.diff -rw-r--r-- 0 blubee blubee 0 Dec 20 19:49 ibus-cangjie.diff -rw-r--r-- 0 blubee blubee 729 Dec 20 19:02 pycanberra.diff $ l ib.diff -rw-rw-r-- 1 pi wheel 3072 Dec 23 15:25 ib.diff I think it's still not correct. Can you re-check ?
Created attachment 189072 [details] ibus-cangjie & pycanberra svn dot diff files If there's still something wrong with these files, here's a pastebin of their contents: ibus-cangjie.diff [chinese/[libcangjie|pycangjie|ibus-cangjie] https://pastebin.com/AELmEE44 pycanberra.diff [devel/pycangjie] https://pastebin.com/VDmqitJQ
A commit references this bug: Author: pi Date: Sun Dec 31 19:12:26 UTC 2017 New revision: 457714 URL: https://svnweb.freebsd.org/changeset/ports/457714 Log: New port: chinese/pycangjie This is a Python wrapper to libcangjie, the library implementing the Cangjie input method. WWW: http://cangjians.github.io/projects/pycangjie/ PR: 223565 Submitted by: hello@blubee.me Changes: head/chinese/Makefile head/chinese/pycangjie/ head/chinese/pycangjie/Makefile head/chinese/pycangjie/distinfo head/chinese/pycangjie/files/ head/chinese/pycangjie/files/patch-autogen.sh head/chinese/pycangjie/pkg-descr head/chinese/pycangjie/pkg-plist
A commit references this bug: Author: pi Date: Sun Dec 31 19:14:13 UTC 2017 New revision: 457715 URL: https://svnweb.freebsd.org/changeset/ports/457715 Log: New port: chinese/libcangjie This is a C library implementing the Cangjie input method. This library is based on Wan Leung Wong's original libcangjie with some updated API. WWW: https://github.com/Cangjians/libcangjie PR: 223565 Submitted by: hello@blubee.me Changes: head/chinese/Makefile head/chinese/libcangjie/ head/chinese/libcangjie/Makefile head/chinese/libcangjie/distinfo head/chinese/libcangjie/pkg-descr head/chinese/libcangjie/pkg-plist
A commit references this bug: Author: pi Date: Sun Dec 31 19:15:50 UTC 2017 New revision: 457716 URL: https://svnweb.freebsd.org/changeset/ports/457716 Log: New port: chinese/ibus-cangjie This is an IBus engine for users of the Cangjie and Quick input methods. It is primarily intended to Hong Kong people who want to input Traditional Chinese, as they are (by far) the majority of Cangjie and Quick users. WWW: http://cangjians.github.io/projects/ibus-cangjie/ PR: 223565 Submitted by: hello@blubee.me Changes: head/chinese/Makefile head/chinese/ibus-cangjie/ head/chinese/ibus-cangjie/Makefile head/chinese/ibus-cangjie/distinfo head/chinese/ibus-cangjie/files/ head/chinese/ibus-cangjie/files/patch-autogen.sh head/chinese/ibus-cangjie/pkg-descr head/chinese/ibus-cangjie/pkg-plist
One thing: the removal of the python stuff in chinese/ibus-cangjie/Makefile. I suggest you look into this once more, maybe this can be done much more cleanly using some patch to configure.ac and autoreconf, maybe next time there's an update to that port ?
(In reply to Kurt Jaeger from comment #31) Upstream seems a bit meh as far as responsiveness but I'll keep trying.
build failing on i386, logs: http://package19.nyi.freebsd.org/data/103i386-default-build-as-user/457820/logs/zh-ibus-cangjie-2.4.log url: http://package19.nyi.freebsd.org/build.html?mastername=103i386-default-build-as-user&build=457820 The problem is that you guys didn't commit the [devel/pycanberra] diff. Can you please commit that as well?
antoine fixed that in r457831, see https://lists.freebsd.org/pipermail/svn-ports-all/2018-January/170159.html Or is there something else that does not work ?
(In reply to Kurt Jaeger from comment #34) Everything is OK now. I was getting ddos by buildscout because of build failures.
I just checked and ibus-canjie isn't in head? https://www.freshports.org/chinese/ibus-cangjie/ Reports that the port has been deleted. svn info reports: svn info /usr/ports/ 路徑: /usr/ports Working Copy Root Path: /usr/ports URL: svn://svn.freebsd.org/ports/head Relative URL: ^/head 檔案庫根目錄: svn://svn.freebsd.org/ports 檔案庫 UUID: 35697150-7ecd-e111-bb59-0022644237b5 修訂版: 459157 節點種類: 目錄 排程: 正常 最後更新作者: kwm 最後修改修訂版: 459157 最後修改日期: 2018-01-16 14:54:08 +0800 (週二, 16 1月 2018) so everything seems up to date. Why was ibus-cangjie deleted?
(In reply to bcomputerguy from comment #36) Was later re-added, because first version was not buildable.