Re: rpm-5.4.16 snapshot
On Mar 16, 2016, at 12:46 PM, Elan Ruusamäe wrote: > On 16.03.2016 18:28, Jeff Johnson wrote: >> There is a recent API change in libtomcrypt (like last few months) > > ah, tomcrypt, > > i think will switch to previous method in pld for now for maximum > compatibility, > release manager (baggins) decides if pld follows different defaults. > Yes you can switch back to BeeCrypt rather than libtomcrypt: change the order that crypto will be used at the top of rpmio/rpmpgp.c. You will lose ECDSA support with BeeCrypt only rpm. 73 de Jeff > -- > glen > > ___ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot
On Mar 16, 2016, at 12:12 PM, Elan Ruusamäe wrote: > On 15.03.2016 22:27, Jeff Johnson wrote: >> There is a snapshot release of rpm-5.4.16 now available at >> >> >> http://rpm5.org/files/rpm/rpm-5.4/SNAPSHOT/rpm-5.4.16-0.20160315.src.rpm > > have not yet researched from what this error comes, maybe quicklier just to > ask: > Yes. There is a recent API change in libtomcrypt (like last few months) The older name is LTC_LTC_PKCS_1_V1_5 There is an attempt to "fix" the issue like this #if defined(LTC_LTC_PKCS_1_V1_5) int _padding = LTC_LTC_PKCS_1_V1_5; /* XXX RSA */ #else int _padding = LTC_PKCS_1_V1_5; /* XXX RSA */ #endif but LTC_LTC_PKCS_1_V1_5 may not be defined (its an enum) I'll devise a better test for portability ... meanwhile use LTC_LTC_PKCS_1_V1_5 insead Thanks for the report. > > libtool: compile: ccache gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build > -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../lua/local > -I../lua/local -I../lua -I../lua -DRPM_OS_LINUX=040116 -DLTM_DESC -DUSE_LTM > -I/usr/include/db5.2 -I/usr/include/ossp-uuid -I/usr/include/ossp-uuid > -fopenmp -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 > -fno-debug-types-section -fvar-tracking-assignments -g2 > -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 > -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section > -fvar-tracking-assignments -g2 -D_GNU_SOURCE -D_REENTRANT -MT rpmltc.lo -MD > -MP -MF .deps/rpmltc.Tpo -c rpmltc.c -fPIC -DPIC -o .libs/rpmltc.o > rpmltc.c: In function 'rpmltcVerify': > rpmltc.c:385:20: error: 'LTC_PKCS_1_V1_5' undeclared (first use in this > function) > int _padding = LTC_PKCS_1_V1_5; /* XXX RSA */ >^ > rpmltc.c:385:20: note: each undeclared identifier is reported only once for > each function it appears in > rpmltc.c: In function 'rpmltcSign': > rpmltc.c:454:20: error: 'LTC_PKCS_1_V1_5' undeclared (first use in this > function) > int _padding = LTC_PKCS_1_V1_5; /* XXX RSA */ >^ > Makefile:2155: recipe for target 'rpmltc.lo' failed > make[4]: *** [rpmltc.lo] Error 1 > > -- > glen > > ___ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot
On Mar 16, 2016, at 1:09 PM, Elan Ruusamäe wrote: > On 15.03.2016 22:27, Jeff Johnson wrote: >> 3) (recommended) rpm-5.4.16 uses db-6.1.23 (not 6.1.26) with >> DB_MULTIVERSION and DB_TXN_SNAPSHOT. >> DB_TXN_SNAPSHOT avoids deadlocks with copy-on-write rather than >> locking semantics. > > so, if i use db-5.2, these changes be reverted in DB_CONFIG ? > > > --- ../rpm-5.4.15/rpmdb/DB_CONFIG.in2016-03-16 17:36:37.569145832 +0200 > +++ ../rpm-5.4.16/rpmdb/DB_CONFIG.in2016-03-16 18:48:10.648775378 +0200 > @@ -1,10 +1,12 @@ > # Environment > -#add_data_dir . > set_data_dir . > -set_create_dir . > set_lg_dir ./log > set_tmp_dir ./tmp > > +set_flags DB_MULTIVERSION on > +set_flags DB_AUTO_COMMIT on > +set_flags DB_TXN_SNAPSHOT on > + > Depends on whether db-5.2.x supports configuring those flags in DB_CONFIG. (aside) There are 3 different ways to configure BerkeleyDB 1) hard-wired in C 2) using /usr/lib/rpm/macros to pass in the appropriate info 3) using DB_CONFIG which is the "official" (and documented) method to configure I have done both 2) and 3) and there are almost no instances of hard-wired in rpm Using DB_CONFIG to configure an rpmdb is the preferred approach because "ofiical" and documented. Meanwhile try-and-see on db-5.2.x ... if you run into issues, holler and I'll figure a solution for you. I'd suggest trying db-6.1.23 if you want exactly the same behavior as rpm-5.4.16 is being testesd with 73 de Jeff > > -- > glen > > ___ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot, take 2
I have uploaded another snapshot release that addresses all the issues you have reported: rpm-5.4.16-0.20160318.src.rpm The issue of garbled text is both locale and rpm version dependent and is _NOT_ reproducible with rpm-5.4.16, but is reproducible with rpm-4.13.0 when a locale is specified. PLD and rpm5.org are likely to disagree on the issue of including I18N in spec files and in headers no matter what. I have checked that rpm can be built using --without-openssl and/or --without-acl. The linkage problem with rpmio/tgfs which uses shm_open(3) has to do with a missing -lrt which may be implicitly specified by some other configure option, perhaps OPENMP. Meanwhile I have hardwired -lrt for tgfs ldflags. The other issues I had with tgfs (a test program for GridFS using MongoDB) had to do with misconfiguration, not anything else. There is a need for an error message which I will add shortly. hth 73 de Jeff On Mar 15, 2016, at 6:14 PM, Elan Ruusamäe wrote: > On 15.03.2016 22:27, Jeff Johnson wrote: >> There is a snapshot release of rpm-5.4.16 now available at >> >> >> http://rpm5.org/files/rpm/rpm-5.4/SNAPSHOT/rpm-5.4.16-0.20160315.src.rpm > it's text fields seem to contain garbage: > > [~/rpm/packages/rpm(5.4.15) (dev-5.4.16)⚡] ➔ less > rpm-5.4.16-0.20160315.src.rpm > Name: rpm Relocations: (not relocatable) > Version : 5.4.16Vendor: (none) > Release : 0.20160315Build Date: T 15 märts 2016 > 21:13:03 EET > Install Date: (not installed)Build Host: hi.jbj.org > Group : (^E^B Source RPM: (none) > Size: 20861253 License: LGPLv2 > Signature : RSA/SHA1, T 15 märts 2016 21:13:03 EET, Key ID fd73f8a36edb4910 > URL : http://rpm5.org > Summary : <88>^F^B > Architecture: x86_64 > Description : > ^F^B > * K märts 16 2016 Jeff Johnson-5.4.16 > - improve uncoupling from rpmbuild configuration. > > > anyway, will push soon dev-5.4.16 branch in pld repo [1] for anyone wishing > to test it > > ps: tarball size increased 5mb: > > [~/rpm/packages/rpm(5.4.16) (dev-5.4.16)⚡] ➔ l rpm-5.4.*gz > -rw-r- 1 glen users 15M 25. okt2014 rpm-5.4.15.tar.gz > -rw-r--r-- 1 glen users 20M 15. märts 21:04 rpm-5.4.16.tar.gz > > > [1] http://git.pld-linux.org/packages/rpm.git & > https://github.com/pld-linux/rpm > > -- > glen > > ___ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: [packages/php] - added Obsoleted for withdrawn modules
On 2016-03-17 20:20, Elan Ruusamäe wrote: > > not that i care about php4, but in general: > >i would rather see my system not updating due broken deps, >than some random package uninstalling previous working module! +1 Jacek ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot
On 15.03.2016 22:27, Jeff Johnson wrote: There is a snapshot release of rpm-5.4.16 now available at http://rpm5.org/files/rpm/rpm-5.4/SNAPSHOT/rpm-5.4.16-0.20160315.src.rpm some rpmio/* tools link errors. hack-fixed by adding -lssl -lacl to RPMIO_LDADD_COMMON libtool: link: x86_64-pld-linux-gcc -fopenmp -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-sect ion -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -march=x86- 64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -D_GNU_SOURCE -D_REENTRANT -Wl,--as-needed -Wl,--no-copy-d t-needed-entries -Wl,-z -Wl,relro -Wl,-z -Wl,combreloc -o .libs/tset tset.o ./.libs/librpmio.so -L../lua /home/users/glen/rpm/ packages/BUILD.x86_64-linux/rpm-5.4.16/misc/.libs/librpmmisc.so /usr/lib64/libstdc++.so ../misc/.libs/librpmmisc.so -ldb_sql-5. 2 -ldb-5.2 /usr/lib64/libuuid.so /usr/lib64/libossp-uuid.so /usr/lib64/libpcreposix.so -lm /usr/lib64/libdb_sql-5.2.so /usr/lib 64/libdb-5.2.so /usr/lib64/libmagic.so /usr/lib64/libbeecrypt.so -lrt /usr/lib64/liblzma.so /usr/lib64/libbz2.so -lpthread -lel f /usr/lib64/libpopt.so -lz /usr/lib64/libsasl2.so -lcrypt /usr/lib64/libpam.so /usr/lib64/libaudit.so -ldl -lselinux -lsepol - lsemanage /usr/lib64/libpcre.so -pthread -fopenmp ./.libs/librpmio.so: undefined reference to `acl_get_file' ./.libs/librpmio.so: undefined reference to `BIO_free' ./.libs/librpmio.so: undefined reference to `BIO_s_mem' ./.libs/librpmio.so: undefined reference to `BIO_free_all' ./.libs/librpmio.so: undefined reference to `BIO_ctrl' ./.libs/librpmio.so: undefined reference to `BIO_gets' ./.libs/librpmio.so: undefined reference to `ASN1_STRING_to_UTF8' ./.libs/librpmio.so: undefined reference to `GENERAL_NAMES_free' ./.libs/librpmio.so: undefined reference to `CRYPTO_set_locking_callback' ... full log should be available soonish at https://srcbuilder.pld-linux.org/th/queue.html#144374 (i expect it fails on same place on builders too) -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: [packages/php] - added Obsoleted for withdrawn modules
not that i care about php4, but in general: i would rather see my system not updating due broken deps, than some random package uninstalling previous working module! On 17.03.2016 21:08, qboosh wrote: commit 5f8c3b489f6c9774156704d0b5e3904f84e352c2 Author: Jakub BoguszDate: Thu Mar 17 20:12:33 2016 +0100 - added Obsoleted for withdrawn modules php.spec | 11 +++ 1 file changed, 11 insertions(+) --- diff --git a/php.spec b/php.spec index a788455..2f83ec8 100644 --- a/php.spec +++ b/php.spec @@ -548,7 +548,14 @@ Provides: php(standard) %{?with_pcre:%requires_ge_to pcre pcre-devel} Suggests: browscap Obsoletes:php-common < 4:5.3.28-7 +# withdrawn modules +Obsoletes: php-filepro < 4:5.2.0 +Obsoletes: php-hwapi < 4:5.2.0 +Obsoletes: php-hyperwave < 3:5.0.0 +Obsoletes: php-java < 3:5.0.0 +Obsoletes: php-mcal < 3:5.0.0 Obsoletes:php-pecl-domxml +Obsoletes: php-qtdom < 3:5.0.0 Conflicts:php4-common < 3:4.4.4-8 Conflicts:php55-common < 4:5.5.10-4 Conflicts:rpm < 4.4.2-0.2 @@ -722,6 +729,8 @@ URL:http://php.net/manual/en/book.dba.php Requires: %{name}-common = %{epoch}:%{version}-%{release} Provides: php(dba) Obsoletes:php-dba < 4:5.3.28-7 +# withdrawn module of similar functionality but different API +Obsoletes: php-db < 3:5.0.0 %description dba This is a dynamic shared object (DSO) for PHP that will add flat-file @@ -1163,6 +1172,8 @@ URL: http://php.net/manual/en/book.oci8.php %{?requires_php_extension} Provides: php(oci8) Obsoletes:php-oci8 < 4:5.3.28-7 +# withdrawn module of similar functionality but different API +Obsoletes: php-oracle < 4:5.1.0 -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot, take 2
On 18.03.2016 09:49, Jeff Johnson wrote: I have uploaded another snapshot release that addresses all the issues you have reported: rpm-5.4.16-0.20160318.src.rpm yet another linking error: /bin/sh ../libtool --tag=CC --mode=link ccache gcc -fopenmp -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fn o-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -D_GNU_SOURCE -D_REENTRANT -Wl,--as-ne eded -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc -o b2sum b2sum.o librpmio.la ../misc/librpmmisc.la -lacl - luuid -lossp-uuid -lpcreposix -lpcre -ldl -lm -ldb_sql-5.2 -ldb-5.2 -lmagic -lsemanage -lsepol -lselinux -lsasl2 -lbeecrypt -ll zma -lbz2 -lz -lpopt -lpthread -lelf -lpopt -lz -lsasl2 -lselinux -lsepol -lsemanage -lpcre libtool: link: ccache gcc -fopenmp -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar- tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf -4 -fno-debug-types-section -fvar-tracking-assignments -g2 -D_GNU_SOURCE -D_REENTRANT -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z -Wl,relro -Wl,-z -Wl,combreloc -o .libs/b2sum b2sum.o ./.libs/librpmio.so -L../lua /home/users/glen/rpm/packages/BUILD.x86_64-linux/rpm-5.4.16/misc/.libs/librpmmisc.so /usr/lib64/libstdc++.so ../misc/.libs/librpmmisc.so -ldb_sql-5.2 -ldb-5.2 /usr/lib64/libacl.so /usr/lib64/libattr.so /usr/lib64/libuuid.so /usr/lib64/libossp-uuid.so /usr/lib64/libpcreposix.so -lm /usr/lib64/libdb_sql-5.2.so /usr/lib64/libdb-5.2.so /usr/lib64/libmagic.so /usr/lib64/libbeecrypt.so -lrt /usr/lib64/liblzma.so /usr/lib64/libbz2.so -lpthread -lelf /usr/lib64/libpopt.so -lz /usr/lib64/libsasl2.so -lcrypt /usr/lib64/libpam.so /usr/lib64/libaudit.so -ldl -lselinux -lsepol -lsemanage /usr/lib64/libpcre.so -pthread -fopenmp ./.libs/librpmio.so: undefined reference to `va_start' ./.libs/librpmio.so: undefined reference to `va_end' collect2: error: ld returned 1 exit status Makefile:1722: recipe for target 'b2sum' failed make[4]: Leaving directory '/home/users/glen/rpm/BUILD/x86_64-linux/rpm-5.4.16/rpmio' full build log can be obtained from here: https://srcbuilder.pld-linux.org/th/queue.html#144799 i wish it would be possible to disable building cruft that is not used. that is tests (as we do not run tests) and some weird and perhaps experimental tools like b2sum. pld intention is not to do some build coverage, but just get /bin/rpm compiled and packaged. and the text fields still contain garbage: [~/rpm/packages/rpm(5.4.16) (dev-5.4.16)⚡] ➔ rpm -qpi rpm-5.4.16-0.20160318.src.rpm|less Name: rpm Relocations: (not relocatable) Version : 5.4.16Vendor: (none) Release : 0.20160318Build Date: R 18 märts 2016 06:37:34 EET Install Date: (not installed)Build Host: hi.jbj.org Group : (<82>^H^A Source RPM: (none) Size: 20865854 License: LGPLv2 Signature : RSA/SHA1, R 18 märts 2016 06:37:34 EET, Key ID 768f85a5ee133bfb URL : http://rpm5.org Summary : <88> ^A Architecture: x86_64 Description : ȫ ^A (END) -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot
On Mar 16, 2016, at 3:20 PM, Elan Ruusamäe wrote: > On 15.03.2016 22:27, Jeff Johnson wrote: >> There is a snapshot release of rpm-5.4.16 now available at >> >> >> http://rpm5.org/files/rpm/rpm-5.4/SNAPSHOT/rpm-5.4.16-0.20160315.src.rpm > > some rpmio/* tools link errors. hack-fixed by adding -lssl -lacl to > RPMIO_LDADD_COMMON Not the best hack ;-) Meanwhile now that I can see the configure options from the PLD rpm.spec, I have tried rebuilding with this (fairly close) approximation to what you want on Fedora 23 (with all build deps already installed): ./configure \ --verbose \ --prefix=/usr \ --infodir='${prefix}%{__share}/info' \ --libdir='%{_libdir}' \ --localstatedir=/var \ --mandir='${prefix}%{__share}/man' \ --sysconfdir=/etc \ --enable-shared \ --enable-static \ --without-apidocs \ --with-beecrypt=external \ --with-bugreport="http://bugs.pld-linux.org/; \ --with-bzip2=external \ --with-db=external \ --with-dbapi=db \ --with-file=external \ --with-keyutils=external \ --with-libelf \ --with-lua=internal \ --with-lzma=external \ --with-neon=external \ --without-path-versioned \ --with-pcre=external \ --with-popt=external \ --with-python=2.7 \ --with-selinux=no \ --with-semanage=no \ --with-sepol=no \ --with-sqlite=no \ --with-uuid=system \ --with-vendor=pld \ --with-xz=external \ --with-zlib=external \ --with-pthreads \ --with-openssl \ --with-acl \ --enable-build-pic \ --enable-build-versionscript \ --enable-build-warnings \ --enable-build-debug \ --enable-maintainer-mode This configuration almost builds: there is an error linking tgfs.c (which is already on my fixit list) with this error /usr/bin/ld: tgfs.o: undefined reference to symbol 'shm_open@@GLIBC_2.2.5' /usr/lib64/librt.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status The easiest hack to build from the SNAPSHOT tarball is to stub out tgfs.c by copying this onto rpmio/tgfs.c int main() { return 0; } after unpacking. I will have a better fix for tgfs.c soonishly. Meanwhile the above configuration SHOULD build in PLD, modulo packaging and bcond's. hth 73 de Jeff ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: rpm-5.4.16 snapshot
On 15.03.2016 22:27, Jeff Johnson wrote: 3) (recommended) rpm-5.4.16 uses db-6.1.23 (not 6.1.26) with DB_MULTIVERSION and DB_TXN_SNAPSHOT. DB_TXN_SNAPSHOT avoids deadlocks with copy-on-write rather than locking semantics. so, if i use db-5.2, these changes be reverted in DB_CONFIG ? --- ../rpm-5.4.15/rpmdb/DB_CONFIG.in2016-03-16 17:36:37.569145832 +0200 +++ ../rpm-5.4.16/rpmdb/DB_CONFIG.in2016-03-16 18:48:10.648775378 +0200 @@ -1,10 +1,12 @@ # Environment -#add_data_dir . set_data_dir . -set_create_dir . set_lg_dir ./log set_tmp_dir ./tmp +set_flags DB_MULTIVERSION on +set_flags DB_AUTO_COMMIT on +set_flags DB_TXN_SNAPSHOT on + -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en