Created attachment 218149 [details] rkdeveloptool.shar hi, this new port rkdeveloptool for rockchip. M.
Created attachment 218151 [details] rkdeveloptool.shar
Configure error in poudriere: https://gist.github.com/088538e8cd5c2ffc11dfda53689ce284
Created attachment 218153 [details] rkdeveloptool.shar
Created attachment 218154 [details] rkdeveloptool.shar
Hi, What's the pre-configure stuff for? Compiles fine without pre-configure and also without gmake in USES=. I don't see any reference of pkgconf(ig) being used so you can also remove that from USES=. Compile tested on FreeBSD 13.0-CURRENT #0 r364979 (AMD64) I think you should also refrain from referring to speculations in pkg-descr "consider to be a opensource version of upgrade_tool with very little difference." --> This is an open source alternative to upgrade_tool with some minor differences in functionality. Best regards, Daniel
Created attachment 218166 [details] Alternative patch for rkdeveloptool The tool itself identifies itself as version 1.3 so keep that version for the package and use the date of the last commit in upstream repo. This is also how OpenMandriva handles version number for this project. Drop iconv dependency (needs patch), nothing in the code uses iconv. https://github.com/rockchip-linux/rkdeveloptool/blob/master/main.cpp#L146 Remove gmake dependency, not needed Remove pre-configure, not needed Rephrase descriptions Tested on FreeBSD 13.0-CURRENT #0 r358620 (AMD64) (rkdeveloptool -v and -h) Poudriere testport OK 12.1-RELEASE (amd64)
A few notes: pkgconfig is used for libusb detection, not for the project itself (my bad, sorry). This should probably go into sysutils rather than devel? At least that's how NetBSD categorizes it and that's also where you'll find flashrom and similar utils. I'm don't know the reason behind it but the program automatically createa a log directory with a log each time being run. Like the one below, this needs to be changed. (rkdeveloptool -v) log/log2020-09-22.txt 03:57:06 Error: failed to stat config.ini, err=2
(In reply to daniel.engberg.lists from comment #5) Preconfigure is according to readme. You must sometime documentation from vendor :-)
Created attachment 218170 [details] rkdeveloptool.shar New shar file with patch.
(In reply to daniel.engberg.lists from comment #6) I added new shar file with fixes.
Created attachment 218171 [details] rkdeveloptool.shar
DISTVERSION is wrong https://www.freebsd.org/doc/en/books/porters-handbook/makefile-distfiles.html --> Example 5.11 If you insist on using gXXXXX versioning please patch the code accordingly although I don't think it's a good idea to diverge from upstream in that regard.
(In reply to daniel.engberg.lists from comment #12) I used example 5.13. Using USE_GITHUB When Upstream Does Not Use Version
Created attachment 218191 [details] rkdeveloptool.shar I updated shar file according to last comment.
You still have the incorrect date if you follow the tip (which I would recommend that you do) in the example. "20140411 is the date of the commit referenced in GH_TAGNAME, not the date the Makefile is edited, or the date the commit is made." - in the example https://github.com/rockchip-linux/rkdeveloptool/commit/1e890c4fcfca3a91cb4fb7a7b107b050aceeda17 --> "31 Aug 2020, 08:24 CEST" --> 1.3.20200831 The binary still needs to be fixed so it doesn't create directories when being run imho before getting committed.
Created attachment 218207 [details] rkdeveloptool.shar