Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
Merged via commit 45103f84764b2a293b068eb0f59456f553ec45d8 with a more 
elaborate commit message + Python version requirement updated. 

Thanks for the patch!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1465910141
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
Closed #2408.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#event-8730224332
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
This is a nice example of even the most innocuous looking one-liner needing 
review...

Py_hash_t was only introduced in Python 3.2, which means we need to bump our 
Python requirement for this. 3.2 is old enough that we can just shrug and bump, 
but it needs to be documented.

> python/header-py.c:744:2: error

There aren't that many lines in current header-py.c so must be from compiling 
some other version than git master. It doesn't make the patch any less correct 
but addressing a flaw on a non-existent line would look weird.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1465792947
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
Accidentally closed, sorry about that (one of *those* Mondays it seems)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1465779717
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
Reopened #2408.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#event-8729323904
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-13 Thread Panu Matilainen
Closed #2408.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#event-8729206542
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-08 Thread Panu Matilainen
Please make a note of that in the commit message, just for future reference.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1459754648
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-07 Thread Khem Raj
> What tooling/versions is giving this error? I don't doubt that Py_hash_t is 
> the more proper type here, just that I've never seen the compiler complain 
> about this.

clang16+

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1458361863
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-07 Thread Panu Matilainen
What tooling/versions is giving this error? I don't doubt that Py_hash_t is the 
more proper type here, just that I've never seen the compiler complain about 
this.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408#issuecomment-1458064636
You are receiving this because you are subscribed to this thread.

Message ID: ___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] python: Use Py_hash_t instead of long in hdr_hash (PR #2408)

2023-03-03 Thread Khem Raj
Fixes
python/header-py.c:744:2: error: incompatible function pointer types 
initializing hashfunc (aka int (*)(struct _object *)) with 
an expression of type long (PyObject *) (aka long (struct 
_object *)) [-Wincompatible-function-pointer-types]
| hdr_hash,   /* tp_hash */
| ^~~~
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2408

-- Commit Summary --

  * python: Use Py_hash_t instead of long in hdr_hash

-- File Changes --

M python/header-py.c (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2408.patch
https://github.com/rpm-software-management/rpm/pull/2408.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2408
You are receiving this because you are subscribed to this thread.

Message ID: rpm-software-management/rpm/pull/2...@github.com
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint