Code Monkey home page Code Monkey logo

bitlbee-old's Introduction

DERP NOTE

ten.java

This is my contribution to the ten.java plugin contest!

  • Theme: BOOKS (death note)
  • Time: 08:00 UTC
  • MC Version: 1.6.4-R2.0
  • No stream because not enough bandwidth
  • Git repo downloaded from http://www.Demonoid.me

Compilation

  • Download & Install Maven 3
  • Clone the repository: git clone https://github.com/tenjavacontest/dequis.git
  • Compile and create the plugin package using Maven: mvn clean install
    • Note: Maven will download all required dependencies and build a ready for use plugin package!

Usage

Type /derp to get a derp note. /derp NICK to give to someone else. Instructions inside.

bitlbee-old's People

Contributors

dequis avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bitlbee-old's Issues

"Fix the damn pkgconfig include dir"

< jgeboski> dx: another thing that should be done if the API is going to break... fix the damn pkgconfig include dir
< jgeboski> to be bitlbe/*.h
< jgeboski> for instance, global includes for url.h, it's just #include <url.h>
< jgeboski> not bitlbee-url.h
< jgeboski> or bitlbee/url.h
< jgeboski> it's very uncleanly
< jgeboski> and could very likely lead to header conflicts

< jgeboski> you can see a ton of things that are ambiguously named
< jgeboski> and having them in a global include path could be severely problematic
< jgeboski> the only reason this has not been an issue as of yet is because there are not many plugins, and most other libraries do things correctly in this department

< dx> so this is just removing -I/usr/include/bitlbee from bitlbee.pc and changing includes to #include <bitlbee/url.h>?
< jgeboski> yes
< jgeboski> it might require some changes in the configure/makefiles for bitlbee, but all of those changes should be trivial as well
< dx> neat

detect_resolv_ns_static() detects a working libresolv.a, but doesn't do anything about it

This one is for @jcopenha, who cares about the portability of his resolv patch much more than i do.

So we have this:

if detect_resolv_dynamic || detect_resolv_static; then
    echo '#define HAVE_RESOLV_A' >> config.h
    if detect_resolv_ns_dynamic || detect_resolv_ns_static; then
        echo '#define HAVE_RESOLV_A_WITH_NS' >> config.h
    fi
else

And this debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291609

Which causes the detect_resolv_ns_dynamic check to fail with:

/tmp/ccyZuKqf.o: In function `main':
:(.text+0x18): undefined reference to `__ns_initparse'
:(.text+0x31): undefined reference to `__ns_parserr'
collect2: ld returned 1 exit status

And pretty much the same thing at the end of the build:

lib/lib.o: In function `srv_lookup':
ns_parse.c:(.text+0x4e44): undefined reference to `__ns_initparse'
ns_parse.c:(.text+0x4f60): undefined reference to `__ns_parserr'

In this particular failing case (with emoji because why not)

  • detect_resolv_dynamic succeeds
  • ⚠️ detect_resolv_static isn't checked
  • detect_resolv_ns_dynamic fails (debian bug)
  • detect_resolv_ns_static succeeds

Since detect_resolv_dynamic / detect_resolv_static are in charge of adding themselves to EFLAGS, this ends up trying to link against the libresolv.so, while needing libresolv.a for resolv_ns.

Soooo, wtf do we do?

glibization

from @jgeboski's suggestions - split to individual tickets as needed.

General:

  • bump minimum glib version requirement to 2.16 minimum, 2.24 maybe later
  • remove backwards compat crap (TODO: what crap?)
  • use g-types instead of checking for c99 stuff ourselves

Specific:

  • use glib's ini parser for bitlbee.conf (glib 2.6 mostly)
  • use glib's base64 encoder (glib 2.12)
  • use glib's md5 (glib 2.16)
  • use glib's sha1 (glib 2.16)
  • g_strcmp0() (glib 2.16)
  • GHashTableIter (glib 2.16)
  • GIO's GResolver (glib 2.22)
  • g_unix_signal_add() (glib 2.30) solved it with pipes
  • g_slist_free_full() (glib 2.28)

Rejected:

  • nuke event_libevent and b_io_* wrappers, use glib directly everywhere?

Checklist for official git repo migration

  • Rebase branches and merge all the pending patches
    • for-wilmer-19-jan
    • wip/md5
    • feat/hip-cat (welp)
    • patch/twitter-filter (jgeboski)
    • patch/mode-special (jgeboski)
    • wip/jabber-subprotocols
    • patch/headers
    • patch/use-dev-urandom-properly
    • flexo/python
    • WPettersson:twitter_format_strings
    • WPettersson:rawreply
    • WPettersson:threads (he will take care)
    • patch/carbons
  • Reindent (5983eca)
  • Some nightly build system
  • Poke everyone who starred or watched this repo to move over

detect_nameser_ns_types doesn't work on cygwin

The fix for the missing arpa/nameser.h types on OpenBSD broke the cygwin build. The detect_nameser_ns_types code is not called and does not correctly compile on other platforms causing redundant type definitions.

api changes for self messages

adding tickets to track stuff i want to get done before the next release

this would be loosely based on the changes the carbons patch does.

msn through https

adding tickets to track stuff i want to get done before the next release

Incorrect FSF address

incorrect-fsf-address /usr/include/bitlbee/events.h
incorrect-fsf-address /usr/include/bitlbee/proxy.h
incorrect-fsf-address /usr/share/doc/bitlbee-3.2.2/COPYING
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/lib/proxy.c
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/oscar/oscar.c
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo2_callbacks.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo2.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo2_types.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo.c
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_debug.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_httplib.c
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_httplib.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_list.h
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_util.c
incorrect-fsf-address /usr/src/debug/bitlbee-eeb82256c627b807d2a2cf657158d32b52bf17bd/protocols/yahoo/yahoo_util.h

Travis CI

Our test suite is not great but the github integration is so sweet~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.