Attached, you'll find a diff against old and new port subtree textproc/refdb for updating the port textproc/refdb. The patchset includes the following patches/fixes: - update to version 1.0.2 - update for proper staging - fix readline issue in FreeBSD > 9.X - provide a proper rc.d script which meets FreeBSD policy requirements - The patchfile also includes a huge patchfile against the lates SVN at Sourceforge which contains various fixes for issues with FreeBSD, including updates to readline issues in the older version 0.9.9_3. Also available are some patches for PHP web interface as well as patches for bib2ris, which is important for people working with LaTeX (most in scientific field seem to need this, it is broken in all prior versions < 1.0.2 of RefDB!). The port will be updated with a proper and smaller patchset as soon as upstream is providing the new refdb/1.0.3.tar.gz tarball.
*** Bug 144203 has been marked as a duplicate of this bug. ***
Where's the attachment?
Created attachment 147106 [details] gzipp'ed file Patch. Seems the system filters .gz files?
nobody wants gzipped files. We want a plain-text patch. Bugzilla has a 1Mb per file limit on attachments. There's no reason to gzip such a small file.
To be clear, can you replace the gzipped file with a plain-text version? One reason is that it allows us ti review the patch using bugzilla's diff viewer, which is handy on windows-based machines.
The original file is 5Mb. To be clear.
(In reply to ohartman from comment #7) > The original file is 5Mb. To be clear. what!? (In reply to ohartman from comment #0) > The patchfile also includes a huge patchfile against the lates SVN at > Sourceforge which contains various fixes for issues with FreeBSD, including > updates to readline issues in the older version 0.9.9_3. Also available are > some patches for PHP web interface as well as patches for bib2ris, which is > important for people working with LaTeX (most in scientific field seem to > need this, it is broken in all prior versions < 1.0.2 of RefDB!). oh geez. There is no way we're sticking a 5Mb patch file in ports. that's absurd. Why can't you just patch the current port to support staging? nobody is asking you to update the port. We only want it staged or gone. Stage it and you can have all the time you want to update it. There will not be a clock on you anymore.
an alternative solution: roll your own tarball and host it yourself.
a second alternative to convert the port to use GITHUB as the master site and download a specific tagged commit.
Created attachment 147113 [details] stagin patch and initial fixes.
The fPIC lines (e.g "CFLAGS+=-fPIC") look suspicious. It's almost never unconditionally added and usually not necessary for amd64 either (vendor configure script / makefile normally takes care of it) The post-install commands shouldn't be masked either. But this is definitely in-line with what I was expecting.
(In reply to John Marino from comment #11) > The fPIC lines (e.g "CFLAGS+=-fPIC") look suspicious. > It's almost never unconditionally added and usually not necessary for amd64 > either (vendor configure script / makefile normally takes care of it) > > The post-install commands shouldn't be masked either. > > But this is definitely in-line with what I was expecting. That was an indirect request for new submission and an explanation for -fPIC which is most likely wrong. It's not rhetorical. This port is now one of only 3 remaining unstaged ports. I was hoping I could commit a fix...
Created attachment 147163 [details] Fixes minor issues/remnants Fixes initial STAGE issues and a long standing issue with the proper rc.d script.
Thanks, this visually looks good. And it builds/works for you? Did you test it with "make check-plist" and "make stage-qa" ?
No, it wasn't tested. I'm having severe troubles with this, and I'm not even using poudriere. Ignoring that the diff didn't apply out of the box (files/patch-scripts-refdb.in already exists), there are other issues with build dependencies. for documentation building, *at least* the following are required as build dependencies: textproc/libxslt textproc/docbook-xsl textproc/fop It is still failing in the document building phase though, so I must be missing something. Do you have access to poudriere?
this can't be right: @${ECHO_MSG} " Then, for MySQL older than 4.1, run:" @${ECHO_MSG} "" - @${ECHO_MSG} " mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql" + @${ECHO_MSG} " mysql -u root refdb < ${STAGEDIR}${PREFIX}/share/refdb/sql/refdb.dump.mysql" @${ECHO_MSG} "" @${ECHO_MSG} " For MySQL 4.1 and later, run:" @${ECHO_MSG} "" - @${ECHO_MSG} " mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql41" + @${ECHO_MSG} " mysql -u root refdb < ${STAGEDIR}${PREFIX}/share/refdb/sql/refdb.dump.mysql41" The STAGEDIR only exists during building and a package user wouldn't even see that. It's not possible that instructions referencing STAGEDIR are correct. Did you get overzealous in a find/replace task?
I also think your CATMANAGER logic could be faulty. you are referencing catalog.ports in the STAGEDIR which obviously will never exist and after you modify it, it will get deleted. So that option probably doesn't do what you think it will. I can remove the option for now. I already fixed the echo messages, but I still can't build the docs.
Okay, I have removed the building of refdb-manual.pdf for now (which also eliminates the need for fop). We'll go with just html documentation for the time being. (It broke on the pdf building)
This port is seriously irritating the hell out of me. When I build it with documentation (without pdf), it rebuild the html documents over and over forever.
Okay I got past that (finally) but as expected, your unconditional -m64 flag busts i386 according to redports.
A commit references this bug: Author: marino Date: Wed Sep 10 18:57:31 UTC 2014 New revision: 367879 URL: http://svnweb.freebsd.org/changeset/ports/367879 Log: Stage textproc/refdb PR: 193484 Submitted by: ohartman (zedat.fu-berlin.de) Too much TLC: marino Changes: head/textproc/refdb/Makefile head/textproc/refdb/files/patch-doc_Makefile.in head/textproc/refdb/files/refdbd.in head/textproc/refdb/pkg-plist
I spent an absurd amount of time on this. The submission was subpar, tbh. In the future, I'm going to require proof via poudriere logs that the port has been reasonably tested. This wasn't, and under normal circumstances I would have pushed it back for rework. Anyway, it's done, it's staged, it's building on all redports platforms. closing PR.