Page MenuHomeFreeBSD

textproc/pootle revival
ClosedPublic

Authored by rene on Nov 26 2014, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 10:36 AM
Unknown Object (File)
Wed, Nov 6, 5:20 PM
Unknown Object (File)
Wed, Nov 6, 2:36 AM
Unknown Object (File)
Sun, Nov 3, 7:55 PM
Unknown Object (File)
Sun, Nov 3, 4:28 AM
Unknown Object (File)
Wed, Oct 30, 2:21 PM
Unknown Object (File)
Mon, Oct 28, 10:08 PM
Unknown Object (File)
Fri, Oct 25, 1:29 PM

Details

Summary

@wblock asked me to revive pootle. Well, here it is -- it needs a bit of work though.

Pootle depends on an older version of django. We have this version in ports, but we don't have a way to build django packages like www/py-django-tastypie against anything other than the default django version. As a result, a conflict is created because these django modules try to bring in the wrong version of django.

Also we're missing a port entirely for django-voting, but if we can resolve these issues pootle can be revived!

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

feld retitled this revision from to textproc/pootle revival.
feld updated this object.
feld edited the test plan for this revision. (Show Details)
feld set the repository for this revision to rP FreeBSD ports repository.
feld added subscribers: koobs, xmj, wblock.
koobs requested changes to this revision.Nov 27 2014, 1:32 AM
koobs added a reviewer: koobs.
koobs added inline comments.
textproc/pootle/Makefile
7
12

Remove 'Pootle is a'

13–14

Missing LICENSE / LICENSE_FILE

14–15

These are all RUN_DEPENDS, not BUILD_DEPENDS. Most Python packages are the same

17

Unnecessary with above change

18–19

What are the actual conflicts here?

33

autoplist?

33–34

Not necessary with AUTOPLIST

35–36

Suggest dedicated user/group IN UID/GID

42–43

Is this necessary with the shared desc in Mk/bsd.options.desc.mk ?

42–43

Is this necessary with the shared desc in Mk/bsd.options.desc.mk ?

43
  • Does pootle support SQLITE? If so, this is a better OPTIONS_DEFAULT and matches what django does.
  • Do the others 'need' to be default?
43

s/+=/=

This revision now requires changes to proceed.Nov 27 2014, 1:32 AM
textproc/pootle/Makefile
14–15

In addition to that (already mentioned on IRC),
the new version that's currently in RC status will work with Django 1.6 (officially),
and Django 1.7 (unofficially, but confirmed with the developers).

If you bind it to 1.6 weirdness will ensue, due to some of the RUN_DEPENDENCIES mentioned here pulling in Django 1.7.

So, for better or worse, I'd recommend binding it to Django 1.7 directly.

The PCBSD folks just updated to the newer version of Pootle and might have suggestions for the port.

textproc/pootle/files/pootle.in
16

Shouldn't that still be %%POOTLELOGDIR%%?

textproc/pootle/Makefile
18–19

Not sure. Leftover from old port.

43

SQLITE? Yes. But they do not want you to use SQLITE in production.

As for the others -- I don't like forcing people to build from ports to use their favorite database if it doesn't pull in very many dependencies.

textproc/pootle/files/pootle.in
16

I was working towards killing %%POOTLELOGDIR%% because to me it seems like something you should be configuring in rc.conf not in the port Makefile.

pootle 2.5.3 is out, I'll see how that works out.

I should probably merge my version into here, a preview of it is available at https://people.freebsd.org/~rene/pootle-2.1.5.3.tar.xz

rene set the repository for this revision to rP FreeBSD ports repository.
rene added a reviewer: feld.

Taking this revision so that phabricator lets me attach a new diff to it.

rene edited edge metadata.
  • Update dependencies
  • Remove pkg-plist in favor of autoplist
  • Make it run (but config is probably wrong)
rene marked 6 inline comments as done.Jul 3 2015, 8:14 PM
rene edited edge metadata.
  • Added textproc/py-diff-match-patch as RUN_DEPENDS
  • Use USERS and GROUPS
  • Clean up Makefile
rene marked 5 inline comments as done.Jul 12 2015, 1:37 PM
rene added inline comments.
textproc/pootle/Makefile
42–43

Yes, MEMCACHED is not in bsd.options.desc.mk (yet)

rene marked an inline comment as done.

Use SVN option instead of homegrown SUBVERSION, the former has a description already.

feld removed a reviewer: feld.
rene marked an inline comment as done.Jul 13 2015, 5:32 AM

Good work rene! I'll try to comb it over soon.

This looks pretty cool. What bugs do the patches fix specifically? We've been using Pootle just installed from pip and its normal methods, seems to work fine here.

In D1234#61288, @kmoore wrote:

This looks pretty cool. What bugs do the patches fix specifically? We've been using Pootle just installed from pip and its normal methods, seems to work fine here.

Oops, only saw this now...

The patches are just the usual "make it work" patches, some interfaces were no longer available (e.g. sha_constructor -> hashlib.sha1).

The patch regarding transaction.commit_on_success is taken from https://github.com/evernote/pootle/commit/8f64489 . https://codereview.stackexchange.com/questions/53751/replacement-for-commit-on-success might also be interesting to read.

rene marked 4 inline comments as done.Oct 2 2015, 9:48 AM
rene added inline comments.
textproc/pootle/Makefile
14–15

The current port does not depend on Django directly, only on
django-taggit>0.10, django-assets>=0.8, and django-voting>=0.1

14–15

textproc/py-sphinx seems to be used both as a build and run dependency [1], what would be best?

[1] https://www.freshports.org/textproc/py-sphinx/

textproc/pootle/files/pootle.in
16

I removed %%POOTLELOGDIR%% in my working copy. If needed we can add it back.

rene marked 8 inline comments as done.Oct 2 2015, 1:08 PM
rene added inline comments.
textproc/pootle/Makefile
14–15

I left out textproc/py-sphinx for now, it builds fine without.

43

Currently the port only has support for MySQL and PostgreSQL, so the comment is irrelevant.

I can live with MySQL and especially PostgreSQL as the database backend. That should suffice for the port, I think.

This revision was automatically updated to reflect the committed changes.
rene marked an inline comment as done.