Wednesday, February 03, 2021

net/bitlbee-facebook: Login problem fix

diff -rupN bitlbee-facebook.bak/Makefile bitlbee-facebook/Makefile
--- bitlbee-facebook.bak/Makefile Sun Jan 10 10:34:12 2021
+++ bitlbee-facebook/Makefile Wed Feb 3 13:22:17 2021
@@ -2,6 +2,7 @@

COMMENT= Facebook Messenger protocol plugin for bitlbee
V= 1.2.1
+REVISION= 0
DISTNAME= bitlbee-facebook-$V
CATEGORIES= net

@@ -21,5 +22,8 @@ LIB_DEPENDS= devel/json-glib

CONFIGURE_STYLE= gnu
LIBTOOL_FLAGS= --tag=disable-static
+
+post-extract:
+ perl -pi -e 's/192\.0\.0\.31\.101/537\.0\.0\.31\.101/g' ${WRKSRC}/facebook/facebook-api.h

.include <bsd.port.mk>
Recently there is a problem with login with bitlbee-facebook.
The problem and the simple fix are explained in this github commit:
https://github.com/bitlbee/bitlbee-facebook/commit/49ea312d98b0578b9b2c1ff759e2cfa820a41f4d

I solved this simply, awaiting a new bitlbee-facebook release, as
shown in the patch attached.
(I attach the patch as a text-file, as gmail mangles all text.)
However, I'm not sure if this is the correct OpenBSD way to solve
something like this?
This fix was tested successfully on amd64 for a few days.

--

Eivind Eide

"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

No comments:

Post a Comment