diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
commit | 2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch) | |
tree | 8c816148bcbd22757d892089c989ae614eae4f5a /dev-python/pypam | |
parent | 0f558761aa2dee1017b4751e4017205e015a9560 (diff) |
gentoo resync : 09.07.2022
Diffstat (limited to 'dev-python/pypam')
-rw-r--r-- | dev-python/pypam/Manifest | 11 | ||||
-rw-r--r-- | dev-python/pypam/files/PyPAM-0.5.0-dealloc.patch | 17 | ||||
-rw-r--r-- | dev-python/pypam/files/PyPAM-0.5.0-memory-errors.patch | 128 | ||||
-rw-r--r-- | dev-python/pypam/files/PyPAM-0.5.0-nofree.patch | 60 | ||||
-rw-r--r-- | dev-python/pypam/files/PyPAM-0.5.0-return-value.patch | 57 | ||||
-rw-r--r-- | dev-python/pypam/files/PyPAM-python3-support.patch | 198 | ||||
-rw-r--r-- | dev-python/pypam/files/pypam-0.5.0-stricter.patch | 15 | ||||
-rw-r--r-- | dev-python/pypam/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/pypam/pypam-0.5.0-r6.ebuild | 45 | ||||
-rw-r--r-- | dev-python/pypam/pypam-0.5.0-r7.ebuild | 45 | ||||
-rw-r--r-- | dev-python/pypam/pypam-0.5.0-r8.ebuild | 40 |
11 files changed, 0 insertions, 621 deletions
diff --git a/dev-python/pypam/Manifest b/dev-python/pypam/Manifest deleted file mode 100644 index 368bcff4b12b..000000000000 --- a/dev-python/pypam/Manifest +++ /dev/null @@ -1,11 +0,0 @@ -AUX PyPAM-0.5.0-dealloc.patch 479 BLAKE2B 6ac545e93f2ed7b5cac789c8b736e92a809f34e7dcd976f0d712a7ec98993b8768e2bf7a5daa2bbcee75b68aa5c40a4f70617da51b2c598446ed00326f33fa51 SHA512 82cdcffade33fd558694d3bfa1d1ea81b314f446a002b8b6ce0392f48747ec06304c87eaa550d59304cebe3b6af64bd775c162be1079871307731da10daa8910 -AUX PyPAM-0.5.0-memory-errors.patch 3582 BLAKE2B e6660ff163dd17a77f2c701752b4a822b6e984b04d3c9b745a7dbf62794250453617b494dcd48f55f45a0495219150c3a85257dd353fbffbaa736f66b08d468c SHA512 b3d403b5b9c4d27846fb8de9f47cad1827af769df85729fd92fb530a9adfb63b915d7cfa8eaf0fecf745f800e9748a3dd85e2b1d9fcb04f25086252b76981577 -AUX PyPAM-0.5.0-nofree.patch 1913 BLAKE2B f22624c695efca7f73f4f8aeb821bdc5cfe1440cea9202feaac2005d49b04de79fc9882199f508bb2f2bff747aeccb7299358d5a6601f8e9a57934745da1d29e SHA512 7292483d60f75d577055f4bf7380b110620669a19b3e2e3a4700e2c816758af865213cf19b329260338e82f9a0cba03a14dea06ba636251f1436ec0c3373f751 -AUX PyPAM-0.5.0-return-value.patch 1728 BLAKE2B f8f08fb3e254c2f706fb0dc17874bae0dbb21ea4185e22ca859f53b78058dc27817219eafcb30fc1482047983b8a2fac509b5feb9975457f0bf34bebfac8200b SHA512 a00e84a8f865f63b88e6889ba020e7c9050e0f218243d62d3890af50033aed7a187500612c392fade64e03391d0702e46d51c3a3aba9340dc498c2d1dbee5627 -AUX PyPAM-python3-support.patch 5759 BLAKE2B 4aabd07b022f1c9db01b462438a2908cc248a1751e86230cbeacb8ecf11af5f7696a41387acfed6d6fd7231b053cd736a02fb597b401bdcd8515f11e1e5628ff SHA512 f2fa907fa2f4459894a14f801b65d7459c82ee202a39e6f18f77aa98192543326372a55217615da8b82c34891892d61f8290c3d6e8989ac577083429dd071abd -AUX pypam-0.5.0-stricter.patch 287 BLAKE2B d3c70bc1db78da2f8434cc076b2a2044dc0d23683cafbd520d98aef089da4d1fe7c0344e72f838a894423d9b8f53e566b10c3cb6b6e267fcc67de14d69601ab6 SHA512 2ea057cce5e8b7810c879554cb9793b3869342a95c5ffa5239012157a3d09c8ab8cbca1f18424b147e83d6ffd770c417cdd39b7521780e611f8c69991c91d9eb -DIST PyPAM-0.5.0.tar.gz 105206 BLAKE2B 7778275cae11606ca8e522d2f99fb0558c55545cdaedb3ff7c55b4bb693ed3429e22566912f53c7795f73316bc45f1bfbdf5a53daec234dba87e1c141e2410f2 SHA512 9e0e919e34930d2283307cd6665c5287c664a76a5de56367bd975867ac26b376ae03d30cb3bc4a16390c977ca2690cfd2e90ac73dcc7886b8c999444da4a07e0 -EBUILD pypam-0.5.0-r6.ebuild 1103 BLAKE2B f309b200853809f4ffc061c44fa50eef542ef5f82cd4e7447f9f81d082ce36c9731c5e26ea02a9e0c7aaf9008590e55626bbfa13c6f99c2b45de6b01951071aa SHA512 0d8361f00ad8153a335e19420bea366180f1723d5632685f49bb5ee098e872121c5a22dead6c5df03069ca9978b371c79ffed3d8cbd07ac20d0694f97e0e7a33 -EBUILD pypam-0.5.0-r7.ebuild 1113 BLAKE2B 834cb09bfae4cf57baa0db8ce179a6d7dddaf90783b97e03f172cb07942156a34af82389e98c798dbc0d2088dc7124731a5901d5a9e650846eaa0633cc4c31a8 SHA512 7711644f9414a70ba83c3af42d5a4f93c065624c1959b52083287932cee07663bb1e527ec2c4520bff896b8acbe626485897b464d6779ce92dd3e951fd72a2fd -EBUILD pypam-0.5.0-r8.ebuild 1024 BLAKE2B b8a021bbc82f4d195f61a96168b0d5b52073a55f7135d1fc8cac4ae0b418c52275bd2eaa7ee2cacb37f946423816cb9dbf4c3638abb8a4dfdeb94647c7728a78 SHA512 0d478fe615952366ea063c1f1c8eb634c556e43f2a9105bf6ca77051f78457755b7cd79082c1632b92f1dd19652ef0bf452add64f8d77d182abbdaff4db0f58a -MISC metadata.xml 166 BLAKE2B d722eb15953d598289863849a29a7cb30aee8bb377f28eadd4f9832c86a3908f238f05351aa4ca511ef0b6bf1e486c5b3cd83eff62940c82f4c28c199a739792 SHA512 04043d591dec13326c96e2d223af0875732a0a030f1cd100330f810b82ef655484eee2143831aaf7370f38f767741cc284eaa875d965b7198e72218b23ab378a diff --git a/dev-python/pypam/files/PyPAM-0.5.0-dealloc.patch b/dev-python/pypam/files/PyPAM-0.5.0-dealloc.patch deleted file mode 100644 index 596491c46bcd..000000000000 --- a/dev-python/pypam/files/PyPAM-0.5.0-dealloc.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -up a/PAMmodule.c b/PAMmodule.c ---- a/PAMmodule.c -+++ b/PAMmodule.c -@@ -538,10 +538,11 @@ static void PyPAM_dealloc(PyPAMObject *s - free(self->service); - free(self->user); - free(self->conv); -- pam_end(self->pamh, PAM_SUCCESS); -+ if (self->pamh) -+ pam_end(self->pamh, PAM_SUCCESS); - dlclose(self->dlh2); - dlclose(self->dlh1); -- PyMem_DEL(self); -+ PyObject_Del(self); - } - - static PyObject * PyPAM_getattr(PyPAMObject *self, char *name) diff --git a/dev-python/pypam/files/PyPAM-0.5.0-memory-errors.patch b/dev-python/pypam/files/PyPAM-0.5.0-memory-errors.patch deleted file mode 100644 index 6da3dd6eb7d6..000000000000 --- a/dev-python/pypam/files/PyPAM-0.5.0-memory-errors.patch +++ /dev/null @@ -1,128 +0,0 @@ -diff -up a/PAMmodule.c b/PAMmodule.c ---- a/PAMmodule.c -+++ b/PAMmodule.c -@@ -37,33 +37,48 @@ static void PyPAM_Err(PyPAMObject *self, - - err_msg = pam_strerror(self->pamh, result); - error = Py_BuildValue("(si)", err_msg, result); -- Py_INCREF(PyPAM_Error); - PyErr_SetObject(PyPAM_Error, error); -+ Py_XDECREF(error); - } - - static int PyPAM_conv(int num_msg, const struct pam_message **msg, - struct pam_response **resp, void *appdata_ptr) - { -- PyObject *args; -- -+ PyObject *args, *msgList, *respList, *item; -+ struct pam_response *response, *spr; - PyPAMObject* self = (PyPAMObject *) appdata_ptr; -+ - if (self->callback == NULL) - return PAM_CONV_ERR; - - Py_INCREF(self); - -- PyObject* msgList = PyList_New(num_msg); -- -+ msgList = PyList_New(num_msg); -+ if (msgList == NULL) { -+ Py_DECREF(self); -+ return PAM_CONV_ERR; -+ } -+ - for (int i = 0; i < num_msg; i++) { -- PyList_SetItem(msgList, i, -- Py_BuildValue("(si)", msg[i]->msg, msg[i]->msg_style)); -+ item = Py_BuildValue("(si)", msg[i]->msg, msg[i]->msg_style); -+ if (item == NULL) { -+ Py_DECREF(msgList); -+ Py_DECREF(self); -+ return PAM_CONV_ERR; -+ } -+ PyList_SetItem(msgList, i, item); - } -- -+ - args = Py_BuildValue("(OO)", self, msgList); -- PyObject* respList = PyEval_CallObject(self->callback, args); -+ if (args == NULL) { -+ Py_DECREF(self); -+ Py_DECREF(msgList); -+ return PAM_CONV_ERR; -+ } -+ respList = PyEval_CallObject(self->callback, args); - Py_DECREF(args); - Py_DECREF(self); -- -+ - if (respList == NULL) - return PAM_CONV_ERR; - -@@ -71,11 +86,15 @@ static int PyPAM_conv(int num_msg, const - Py_DECREF(respList); - return PAM_CONV_ERR; - } -- -- *resp = (struct pam_response *) malloc( -+ -+ response = (struct pam_response *) malloc( - PyList_Size(respList) * sizeof(struct pam_response)); -+ if (response == NULL) { -+ Py_DECREF(respList); -+ return PAM_CONV_ERR; -+ } -+ spr = response; - -- struct pam_response* spr = *resp; - for (int i = 0; i < PyList_Size(respList); i++, spr++) { - PyObject* respTuple = PyList_GetItem(respList, i); - char* resp_text; -@@ -85,7 +104,7 @@ static int PyPAM_conv(int num_msg, const - free((--spr)->resp); - --i; - } -- free(*resp); -+ free(response); - Py_DECREF(respList); - return PAM_CONV_ERR; - } -@@ -95,7 +114,8 @@ static int PyPAM_conv(int num_msg, const - } - - Py_DECREF(respList); -- -+ *resp = response; -+ - return PAM_SUCCESS; - } - -@@ -122,7 +142,11 @@ static PyObject * PyPAM_pam(PyObject *se - PyPAMObject_Type.ob_type = &PyType_Type; - p = (PyPAMObject *) PyObject_NEW(PyPAMObject, &PyPAMObject_Type); - -+ if (p == NULL) -+ return NULL; -+ - if ((spc = (struct pam_conv *) malloc(sizeof(struct pam_conv))) == NULL) { -+ Py_DECREF((PyObject *)p); - PyErr_SetString(PyExc_MemoryError, "out of memory"); - return NULL; - } -@@ -455,9 +479,15 @@ static PyObject * PyPAM_getenvlist(PyObj - } - - retval = PyList_New(0); -+ if (retval == NULL) -+ return NULL; - - while ((cp = *(result++)) != NULL) { - entry = Py_BuildValue("s", cp); -+ if (entry == NULL) { -+ Py_DECREF(retval); -+ return NULL; -+ } - PyList_Append(retval, entry); - Py_DECREF(entry); - } diff --git a/dev-python/pypam/files/PyPAM-0.5.0-nofree.patch b/dev-python/pypam/files/PyPAM-0.5.0-nofree.patch deleted file mode 100644 index f27e9d543d06..000000000000 --- a/dev-python/pypam/files/PyPAM-0.5.0-nofree.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff --git a/PAMmodule.c b/PAMmodule.c -index 03cb799..a7ff8a5 100644 ---- a/PAMmodule.c -+++ b/PAMmodule.c -@@ -24,8 +24,6 @@ typedef struct { - char *service; - char *user; - PyObject *callback; -- struct pam_response *response_data; -- int response_len; - PyObject *user_data; - void *dlh1, *dlh2; - } PyPAMObject; -@@ -54,15 +52,6 @@ static int PyPAM_conv(int num_msg, const struct pam_message **msg, - - Py_INCREF(self); - -- if (NULL != self->response_data) { -- for (int i = 0; i < self->response_len; i++) { -- free(self->response_data[0].resp); -- } -- free(self->response_data); -- self->response_data = NULL; -- self->response_len = 0; -- } -- - PyObject* msgList = PyList_New(num_msg); - - for (int i = 0; i < num_msg; i++) { -@@ -92,6 +81,10 @@ static int PyPAM_conv(int num_msg, const struct pam_message **msg, - char* resp_text; - int resp_retcode = 0; - if (!PyArg_ParseTuple(respTuple, "si", &resp_text, &resp_retcode)) { -+ while (i > 0) { -+ free((--spr)->resp); -+ --i; -+ } - free(*resp); - Py_DECREF(respList); - return PAM_CONV_ERR; -@@ -100,10 +93,6 @@ static int PyPAM_conv(int num_msg, const struct pam_message **msg, - spr->resp_retcode = resp_retcode; - Py_DECREF(respTuple); - } -- -- // Save this so we can free it later. -- self->response_data = *resp; -- self->response_len = PyList_Size(respList); - - Py_DECREF(respList); - -@@ -144,8 +133,6 @@ static PyObject * PyPAM_pam(PyObject *self, PyObject *args) - p->user = NULL; - Py_INCREF(Py_None); - p->callback = Py_None; -- p->response_data = NULL; -- p->response_len = 0; - Py_INCREF(Py_None); - p->user_data = Py_None; - diff --git a/dev-python/pypam/files/PyPAM-0.5.0-return-value.patch b/dev-python/pypam/files/PyPAM-0.5.0-return-value.patch deleted file mode 100644 index 3773d6fafd20..000000000000 --- a/dev-python/pypam/files/PyPAM-0.5.0-return-value.patch +++ /dev/null @@ -1,57 +0,0 @@ -diff -up a/PAMmodule.c b/PAMmodule.c ---- a/PAMmodule.c -+++ b/PAMmodule.c -@@ -248,7 +248,7 @@ static PyObject * PyPAM_setcred(PyObject - result = pam_setcred(_self->pamh, flags); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - -@@ -270,7 +270,7 @@ static PyObject * PyPAM_acct_mgmt(PyObje - result = pam_acct_mgmt(_self->pamh, flags); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - -@@ -292,7 +292,7 @@ static PyObject * PyPAM_chauthtok(PyObje - result = pam_chauthtok(_self->pamh, flags); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - -@@ -314,7 +314,7 @@ static PyObject * PyPAM_open_session(PyO - result = pam_open_session(_self->pamh, flags); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - -@@ -336,7 +336,7 @@ static PyObject * PyPAM_close_session(Py - result = pam_close_session(_self->pamh, flags); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - -@@ -433,7 +433,7 @@ static PyObject * PyPAM_putenv(PyObject - result = pam_putenv(_self->pamh, val); - - if (result != PAM_SUCCESS) { -- PyErr_SetString(PyPAM_Error, "Not authenticated"); -+ PyPAM_Err(_self, result); - return NULL; - } - diff --git a/dev-python/pypam/files/PyPAM-python3-support.patch b/dev-python/pypam/files/PyPAM-python3-support.patch deleted file mode 100644 index a4100953631f..000000000000 --- a/dev-python/pypam/files/PyPAM-python3-support.patch +++ /dev/null @@ -1,198 +0,0 @@ ---- a/PAMmodule.c -+++ b(PAMmodule.c -@@ -15,6 +15,14 @@ - #include <stdio.h> - #include <dlfcn.h> - -+#if PY_MAJOR_VERSION >= 3 -+#define IS_PY3K -+#else -+// include bytesobject.h to map PyBytes_* to PyString_* -+#include <bytesobject.h> -+#endif -+ -+ - static PyObject *PyPAM_Error; - - typedef struct { -@@ -28,7 +36,11 @@ - void *dlh1, *dlh2; - } PyPAMObject; - -+#ifdef IS_PY3K -+static PyTypeObject PyPAMObject_Type; -+#else - staticforward PyTypeObject PyPAMObject_Type; -+#endif - - static void PyPAM_Err(PyPAMObject *self, int result) - { -@@ -139,7 +151,6 @@ - return NULL; - } - -- PyPAMObject_Type.ob_type = &PyType_Type; - p = (PyPAMObject *) PyObject_NEW(PyPAMObject, &PyPAMObject_Type); - - if (p == NULL) -@@ -562,35 +573,44 @@ - PyObject_Del(self); - } - --static PyObject * PyPAM_getattr(PyPAMObject *self, char *name) --{ -- return Py_FindMethod(PyPAMObject_Methods, (PyObject *) self, name); --} -- - static PyObject * PyPAM_repr(PyPAMObject *self) - { - char buf[1024]; - - snprintf(buf, 1024, "<pam object, service=\"%s\", user=\"%s\", conv=%p, pamh=%p>", - self->service, self->user, self->conv, self->pamh); -- return PyString_FromString(buf); -+ return PyBytes_FromString(buf); - } - - static PyTypeObject PyPAMObject_Type = { -- PyObject_HEAD_INIT(0) /* Must fill in type value later */ -- 0, -- "pam", -- sizeof(PyPAMObject), -- 0, -- (destructor)PyPAM_dealloc, /*tp_dealloc*/ -- 0, /*tp_print*/ -- (getattrfunc)PyPAM_getattr, /*tp_getattr*/ -- 0, /*tp_setattr*/ -- 0, /*tp_compare*/ -- (reprfunc)PyPAM_repr, /*tp_repr*/ -- 0, /*tp_as_number*/ -- 0, /*tp_as_sequence*/ -- 0, /*tp_as_mapping*/ -+ PyVarObject_HEAD_INIT(NULL, 0) /* Must fill in type value later */ -+ "pam", /* tp_name */ -+ sizeof(PyPAMObject), /* tp_basicsize */ -+ 0, /* tp_itemsize */ -+ (destructor)PyPAM_dealloc, /* tp_dealloc */ -+ 0, /* tp_print */ -+ 0, /* tp_getattr */ -+ 0, /* tp_setattr */ -+ 0, /* tp_compare */ -+ (reprfunc)PyPAM_repr, /* tp_repr */ -+ 0, /* tp_as_number */ -+ 0, /* tp_as_sequence */ -+ 0, /* tp_as_mapping */ -+ 0, /* tp_hash */ -+ 0, /* tp_call */ -+ 0, /* tp_str */ -+ PyObject_GenericGetAttr, /* tp_getattro */ -+ 0, /* tp_setattro */ -+ 0, /* tp_as_buffer */ -+ Py_TPFLAGS_DEFAULT, /* tp_flags */ -+ "PyPAM", /* tp_doc */ -+ 0, /* tp_traverse */ -+ 0, /* tp_clear */ -+ 0, /* tp_richcompare */ -+ 0, /* tp_weaklistoffset */ -+ 0, /* tp_iter */ -+ 0, /* tp_iternext */ -+ PyPAMObject_Methods, /* tp_methods */ - }; - - static PyMethodDef PyPAM_Methods[] = { -@@ -607,7 +627,12 @@ - */ - static void insint(PyObject *d, char *name, int value) - { -- PyObject* v = PyInt_FromLong((long) value); -+ PyObject* v; -+#ifdef IS_PY3K -+ v = PyLong_FromLong((long) value); -+#else -+ v = PyInt_FromLong((long) value); -+#endif - - if (!v || PyDict_SetItemString(d, name, v)) - PyErr_Clear(); -@@ -615,19 +640,42 @@ - Py_XDECREF(v); - } - -+#ifdef IS_PY3K -+static struct PyModuleDef pamdef = { -+ PyModuleDef_HEAD_INIT, -+ "PAM", -+ NULL, -+ -1, -+ PyPAM_Methods, -+ NULL, -+ NULL, -+ NULL, -+ NULL -+}; -+ -+#define INITERROR return NULL -+PyObject *PyInit_PAM(void) -+ -+#else -+#define INITERROR return - void initPAM(void) -+#endif - { - PyObject *m, *d; - -+#ifdef IS_PY3K -+ m = PyModule_Create(&pamdef); -+#else - m = Py_InitModule("PAM", PyPAM_Methods); -+#endif - d = PyModule_GetDict(m); - - PyPAM_Error = PyErr_NewException("PAM.error", NULL, NULL); - if (PyPAM_Error == NULL) -- return; -+ INITERROR; - PyDict_SetItemString(d, "error", PyPAM_Error); - -- PyPAMObject_Type.ob_type = &PyType_Type; -+ Py_TYPE(&PyPAMObject_Type) = &PyType_Type; - PyPAMObject_Type.tp_doc = PyPAMObject_doc; - Py_INCREF(&PyPAMObject_Type); - -@@ -692,4 +740,7 @@ - insint(d, "PAM_BINARY_PROMPT", PAM_BINARY_PROMPT); - #endif - -+#ifdef IS_PY3K -+ return m; -+#endif - } ---- a/setup.py -+++ b/setup.py -@@ -12,7 +12,7 @@ - license='LGPL', - ext_modules=[ - Extension( -- 'PAMmodule', -+ 'PAM', - ['PAMmodule.c'], - libraries=['pam', 'pam_misc'], - extra_compile_args = ['-std=c99'], ---- a/tests/PamTest.py -+++ b/tests/PamTest.py -@@ -41,13 +41,13 @@ - def test_userdata_default(self): - """The default value for userdata is None.""" - -- self.failUnless(self.pam.get_userdata() is None) -+ self.assertTrue(self.pam.get_userdata() is None) - - def test_userdata(self): - """The userdata getter and setter will store and return any data.""" - - self.pam.set_userdata(1) -- self.failUnless(self.pam.get_userdata() == 1) -+ self.assertTrue(self.pam.get_userdata() == 1) - - def test_start(self): - """pam.start() works as expected.""" diff --git a/dev-python/pypam/files/pypam-0.5.0-stricter.patch b/dev-python/pypam/files/pypam-0.5.0-stricter.patch deleted file mode 100644 index 2ebe2d0af953..000000000000 --- a/dev-python/pypam/files/pypam-0.5.0-stricter.patch +++ /dev/null @@ -1,15 +0,0 @@ -=== modified file 'PAMmodule.c' ---- a/PAMmodule.c -+++ b/PAMmodule.c -@@ -9,8 +9,9 @@ - -+#include <Python.h> - #include <security/pam_appl.h> - #include <security/pam_misc.h> --#include <Python.h> - #include <stdio.h> -+#include <string.h> - #include <dlfcn.h> - - static PyObject *PyPAM_Error; - diff --git a/dev-python/pypam/metadata.xml b/dev-python/pypam/metadata.xml deleted file mode 100644 index dde3e0dc4ca9..000000000000 --- a/dev-python/pypam/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!--maintainer-needed--> -</pkgmetadata> diff --git a/dev-python/pypam/pypam-0.5.0-r6.ebuild b/dev-python/pypam/pypam-0.5.0-r6.ebuild deleted file mode 100644 index aebb5e349358..000000000000 --- a/dev-python/pypam/pypam-0.5.0-r6.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=no -MY_P="PyPAM-${PV}" -PYTHON_COMPAT=( python3_{7..9} ) -inherit distutils-r1 flag-o-matic - -DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" -HOMEPAGE="http://www.pangalactic.org/PyPAM" -SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz - https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" -IUSE="" - -DEPEND=">=sys-libs/pam-0.64" -RDEPEND="${DEPEND}" - -DOCS=( AUTHORS examples/pamtest.py ) - -PATCHES=( - # Pull patches from fedora. - "${FILESDIR}/PyPAM-${PV}-dealloc.patch" - "${FILESDIR}/PyPAM-${PV}-nofree.patch" - "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" - "${FILESDIR}/PyPAM-${PV}-return-value.patch" - "${FILESDIR}/PyPAM-python3-support.patch" - # Fix a missing include. - "${FILESDIR}/${P}-stricter.patch" -) - -src_compile() { - append-cflags -fno-strict-aliasing - distutils-r1_src_compile -} - -python_test() { - "${PYTHON}" tests/PamTest.py -} diff --git a/dev-python/pypam/pypam-0.5.0-r7.ebuild b/dev-python/pypam/pypam-0.5.0-r7.ebuild deleted file mode 100644 index a7a3593a67d9..000000000000 --- a/dev-python/pypam/pypam-0.5.0-r7.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=no -MY_P="PyPAM-${PV}" -PYTHON_COMPAT=( python3_{7..10} ) -inherit distutils-r1 flag-o-matic - -DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" -HOMEPAGE="http://www.pangalactic.org/PyPAM" -SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz - https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" -IUSE="" - -DEPEND=">=sys-libs/pam-0.64" -RDEPEND="${DEPEND}" - -DOCS=( AUTHORS examples/pamtest.py ) - -PATCHES=( - # Pull patches from fedora. - "${FILESDIR}/PyPAM-${PV}-dealloc.patch" - "${FILESDIR}/PyPAM-${PV}-nofree.patch" - "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" - "${FILESDIR}/PyPAM-${PV}-return-value.patch" - "${FILESDIR}/PyPAM-python3-support.patch" - # Fix a missing include. - "${FILESDIR}/${P}-stricter.patch" -) - -src_compile() { - append-cflags -fno-strict-aliasing - distutils-r1_src_compile -} - -python_test() { - "${PYTHON}" tests/PamTest.py || die -} diff --git a/dev-python/pypam/pypam-0.5.0-r8.ebuild b/dev-python/pypam/pypam-0.5.0-r8.ebuild deleted file mode 100644 index 9d2b524b2b96..000000000000 --- a/dev-python/pypam/pypam-0.5.0-r8.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -MY_P="PyPAM-${PV}" -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" -HOMEPAGE="http://www.pangalactic.org/PyPAM" -SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz - https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" -IUSE="" - -DEPEND=">=sys-libs/pam-0.64" -RDEPEND="${DEPEND}" - -DOCS=( AUTHORS examples/pamtest.py ) - -PATCHES=( - # Pull patches from fedora. - "${FILESDIR}/PyPAM-${PV}-dealloc.patch" - "${FILESDIR}/PyPAM-${PV}-nofree.patch" - "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" - "${FILESDIR}/PyPAM-${PV}-return-value.patch" - "${FILESDIR}/PyPAM-python3-support.patch" - # Fix a missing include. - "${FILESDIR}/${P}-stricter.patch" -) - -python_test() { - "${EPYTHON}" tests/PamTest.py || die -} |