Re: [Rpm-maint] [rpm-software-management/rpm] The max lengthe of RPM package name is 66? (#974)

2019-12-19 Thread fbs2016
The java program create the RPM package with a spec file as input. 
It's hard to tell why it can't work as only the extraction by standard RPM 
command failed. 
Maybe I can debug the RPM source code to find why it reports the err then I can 
update the java code to meet the standard RPM extraction requirement.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/974#issuecomment-567823579___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] find-debuginfo.sh: speed up %dir generation (#975)

2019-12-19 Thread Florian Festi
@ffesti pushed 1 commit.

96f5f40e9d584034863e14c6f62728f78507d361  Rename add_percent_dir to 
generate_percent_dir


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/rpm-software-management/rpm/pull/975/files/efc38a7623f764f6b1e66b00c6ed83be18c1f6bb..96f5f40e9d584034863e14c6f62728f78507d361
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add support for reading BDB without the library (#980)

2019-12-19 Thread Michael Schroeder
@mlschroe pushed 1 commit.

97092ae8be7ec0f02c8a4f833f65831625985b84  Add support for reading BDB without 
the library


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/rpm-software-management/rpm/pull/980/files/042fdf6d8823ea2b3423134f23217f1d1f96d6e5..97092ae8be7ec0f02c8a4f833f65831625985b84
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Not all console_scripts entry points need pkg_resources from setuptools (#954)

2019-12-19 Thread Florian Festi
Should be fixed with #973. Closing.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/954#issuecomment-567512834___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Not all console_scripts entry points need pkg_resources from setuptools (#954)

2019-12-19 Thread Florian Festi
Closed #954.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/954#event-2897426024___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add support for reading BDB without the library (#980)

2019-12-19 Thread Michael Schroeder
@mlschroe pushed 1 commit.

042fdf6d8823ea2b3423134f23217f1d1f96d6e5  Add support for reading BDB without 
the library


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/rpm-software-management/rpm/pull/980/files/783e042b84a771719096bdc4be1ef833948055ec..042fdf6d8823ea2b3423134f23217f1d1f96d6e5
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add support for reading BDB without the library (#980)

2019-12-19 Thread Michael Schroeder
mlschroe commented on this pull request.



> @@ -594,6 +594,20 @@ AS_IF([test "$enable_ndb" = yes],[
 ])
 AM_CONDITIONAL([NDB], [test "$enable_ndb" = yes])
 
+#=
+# Process --enable-bdb-ro
+AC_ARG_ENABLE([bdb-ro], [AS_HELP_STRING([--enable-ndb-ro 
(EXPERIMENTAL)],[enable the read-only Berkeley DB code])],

No, copy'n'pasted from the ndb lines.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/980#discussion_r359870963___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add support for reading BDB without the library (#980)

2019-12-19 Thread ニール・ゴンパ
Conan-Kudo requested changes on this pull request.

I don't know how I feel about this, but...

> @@ -594,6 +594,20 @@ AS_IF([test "$enable_ndb" = yes],[
 ])
 AM_CONDITIONAL([NDB], [test "$enable_ndb" = yes])
 
+#=
+# Process --enable-bdb-ro
+AC_ARG_ENABLE([bdb-ro], [AS_HELP_STRING([--enable-ndb-ro 
(EXPERIMENTAL)],[enable the read-only Berkeley DB code])],

`--enable-ndb-ro` -> `--enable-bdb-ro`

Freudian slip? ;)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/980#pullrequestreview-334640374___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Add support for reading BDB without the library (#980)

2019-12-19 Thread Michael Schroeder
This commit implements a slow read-only backend that allows
accessing of BerkeleyDB databases without using the BerkeleyDB
library. The code supports btree version 9 and hash version 8
and 9.

There are two use cases for this:

1) Conversion of an existing BerkeleyDB to a different
   backend.

2) Allowing package scriptlets to do database queries while
   in a transaction that replaced rpm with a version that
   no longer links against BerkeleyDB.

Currently prefix searching is not supported (but it would be
easy to add).
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add support for reading BDB without the library

-- File Changes --

M configure.ac (14)
M lib/Makefile.am (4)
A lib/backend/bdb_ro.c (736)
M lib/backend/dbi.c (3)
M lib/backend/dbi.h (5)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/980
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] find-debuginfo.sh: speed up %dir generation (#975)

2019-12-19 Thread Florian Festi
Ok, overall this looks like a much better solution that the original sed orgy. 
But the original code just adds those dir lines but keeps the file entries in 
place. This is kinda strange as the file entries are appended to the .new files 
in the lines right below. The new code only creates the dir entries. This looks 
more correct. But the name of the function and its comment should probably 
reflect that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/975#issuecomment-567446752___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] The max lengthe of RPM package name is 66? (#974)

2019-12-19 Thread Florian Festi
No, the package name should not be limited. It looks like there is a bug in the 
code creating the lead. But it is hard to tell where exactly this is. If your 
Java program is creating the package directly without creating a spec file and 
then running rpmbuild I would advice checking the code that creates the lead in 
there. If it does create a spec it might be a bug in rpm 4.4.2 which is ancient 
and we won't fix anythin in there. But oyu can try to switch to rpm 4.4.2.3 
which contains lots of bugfixes.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/974#issuecomment-567419141___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] The max lengthe of RPM package name is 66? (#974)

2019-12-19 Thread fbs2016
Thanks, Festi. In fact, I use a java program which to create RPM package, which 
refer to an old RPM API (RPM 4.4.2).
I can use it to create a RPM package and use the standard RPM command to parser 
it, like rpm/rpm2cpio command. 
I meet the name length limit problem when create RPM package, then I try to set 
the name length to a larger one, it success. But it failed when I try to 
extract the package using standard rpm2cpio comand:
error: rpm2cpio: illegal signature type
error reading header from package
cpio: premature end of archive

Does the standard rpmbuild command with version 4.4.2 also have the name length 
limit? And how to solve the the backward compatibility on the latest rpm 
command? 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/974#issuecomment-567397866___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint