[opensuse-packaging] php5-pear-xinc problem
Hi, Ralf, It's a weird problem. you can see it from here: https://build.opensuse.org/package/show?package=php5-pear-xinc&project=home%... I deleted "xinc" from s:p:a and created a package "php5-pear-xinc". due to pear.php.net bug #9280 and #10661, I can't just install using: pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} directly. it'll return a unknown channel and Xinc-2.1.tgz no valid error. so I found a workaround here: http://yuval.bar-or.org/blog/2009/11/offline-installation-of-pear-packages/ by replacing unofficial channel with pear.php.net using: sed -i "s/<channel>pear.elektrischeslicht.de<\/channel>/<channel>pear.php.net<\/channel>/" package.xml and later change it back to install xml. But I got a %post failure while the %post scriptlet is exactly the same as other packages in s:p:a. anyone knows how to get out from this? Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 01.03.2012 10:26, schrieb Marguerite Su:
This workaround sounds wrong. The BuildRequires on the elektischeslicht channel should provide a BuildRoot with the channel already installed. I will need to look deeper into this in the evening. -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dear Marguerite, I recommend to add the php5-pear-channel-xinc to your development project. As it has already been deleted from php:applications, you could take the package from https://build.opensuse.org/package/show?package=php5-pear-channel-xinc&proje... At the first glance, the package looks good to me. Johannes Am 01.03.12 10:26, schrieb Marguerite Su:
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 01.03.2012 12:27, schrieb Johannes Weberhofer:
The gerritbeine package references the wrong/old channel. There is a new xinc channel -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Yes, I have that channel fixed in package php5-pear-channel-xinc from s:p:a. I branched that package into my development repository, but the php5-pear-xinc build still fails. But in the buildlog of php5-pear-xinc, I saw %post scriptlet in php5-pear-channel-xinc was not executed because it was installed before php5-pear package. I don't know if it's the reason why php5-pear-xinc can't find the channel and returns the unkown channel error. I've checked almost everything in specfile. as you said, it seems okay, it is just exactly the same with other packages in s:p:a. but without my dirty channel replacement fix. it can't run pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}, no matter the %post scriptlet. Here's the error info, the last two comment in this page. but there's no developer reply there. http://code.google.com/p/xinc/wiki/InstallXincFromPearChannel And no other useful information through the internet. On Thu, Mar 1, 2012 at 9:10 PM, Ralf Lang <lang@b1-systems.de> wrote:
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
I would add the following lines to the php5-pear-channel-xinc.spec: Requires: php-pear Requires: php > 5 Provides: php-pear-channel-xinc The "Conflicts: %{name} = 1.0" can be removed (I think you have incremented the version). In the php5-pear-xinc.spec you should add the required version number for the channel: Requires: php5-pear-channel-xinc = 2.0 BuildRequires: php5-pear-channel-xinc = 2.0 to ensure, that those packages fit to the package. Johannes Am 01.03.12 15:55, schrieb Marguerite Su:
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Mar 1, 2012 at 11:19 PM, Johannes Weberhofer <jweberhofer@weberhofer.at> wrote:
Hi, Johannes Weberhofer, Your fix in php5-pear-channel-xinc ensures php5-pear installed before channel (Requires: php5-pear) . thus fix php5-pear-xinc channel error. But %post scriptlet still fails: pear install --nodeps --soft --force --register-only %{xmldir}/%{pear_name}.xml can you take care of this? Here: https://build.opensuse.org/package/show?package=php5-pear-xinc&project=home%... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hello! I have additionally defined the following line at the spec's top: %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} And I'm using the bleow lines for post/postun sections: %post if [ "$1" = "1" ]; then # install (rpm -i) %{__pear} install --nodeps --soft --force --register-only %{pear_xmldir}/%{pear_name}.xml ||: fi if [ "$1" = "2" ]; then # update (rpm -U) %{__pear} upgrade --offline --register-only %{pear_xmldir}/%{pear_name}.xml ||: fi %postun if [ "$1" -eq "0" ] ; then # uninstall (rpm -e) %{__pear} uninstall --nodeps --ignore-errors --register-only %{pear_name} >/dev/null ||: fi Note, that the lines end with ||: , which makes the codes fail silently. Best regards, Johannes Am 02.03.12 01:06, schrieb Marguerite Su:
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Mar 2, 2012 at 1:31 PM, Johannes Weberhofer <jweberhofer@weberhofer.at> wrote:
Thanks for your quick help. I have done that and fixed some rpmlint errors & warnings. it can build successfully now. But there're still 3 out of my effort (I'm not familiar with these warnings and 'cause my mother language is not English/I'm not major in CS, I can't understand what they are talking about, even with explanations on Wiki.). can you help me polishing it further ? They are: W: percent in %post (I am not the author of your work. I have no idea which "%" triggers this warning) W: missing-lsb-keyword (not familiar with shell, and I don't know what is "lsb") W: htaccess-file (not familiar with apache rewrite rule and regex) Check it here: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=php5-p... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Quoting Marguerite Su <i@marguerite.su>:
I suggest you check the resulting package with rpm -qp --scripts <rpmname> ==> If you see some % somewhere, you can identify what was not expanded and might have wrong side-effects
W: htaccess-file (not familiar with apache rewrite rule and regex)
I don't think there is anything wrong here: it's simpy a warning that you DO have a .htaccess file; it might or might not work on an installed system. Donminqiue -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 02.03.12 17:03, schrieb Dominique Leuenberger a.k.a DimStar:
You have copied my pear_xmldir whilst you are using xmldir; that can't expand.
There is a description available at http://en.opensuse.org/openSUSE:Packaging_init_scripts
Best Regards, Johannes -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, Mar 3, 2012 at 12:39 AM, Johannes Weberhofer <jweberhofer@weberhofer.at> wrote:
oh, thank you, lol. the long specfile dazzled me.
Thanks. I add a tag: Short-Description in lsb header, which is #!/bin/sh ### BEGIN INIT INFO ... ### END INIT INFO and add a legal header copied from /etc/init.d/skeleton (init script template).
I filtered it using php5-pear-xinc.rpmlintrc.
Thank you all for the time and help. Now I'm going to push it back to s:p:a. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dear Marguerite, I recomment to keep the tests enabled as a reminder - the log entries are a bit annoying, but not more. I also recomment to remove the .htaccess file(s), and to add a /etc/apache2/conf.d/xinc.conf file, which collects all the needed configurations. The file should look like shown below. Of course, you have to use your web-root directory for the directory name. <directory /usr/share/xinc> ... configuration from .htaccess ... </directory> Best regards, Johannes Am 03.03.12 01:13, schrieb Marguerite Su:
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, Mar 3, 2012 at 5:06 PM, Johannes Weberhofer <jweberhofer@weberhofer.at> wrote:
Fixed. It by default ships an external xinc.conf, so I just add rewrite rules there and cleaned the internal htaccess.
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
This is not a problem, at least not now. We will have to come to some agreements on preinstalled configurations. We had this thread some days ago and did not yet come to the point where we all agree how to do it. -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi folks, There are two different tarballs for i386 and x86_64 arch exist for the applicaion I want to make RPM package from. I feel, I need some hints to understand how such situation should be handled. My guess, I need to specify two Source attributes and then choose suitable one, using %ifarch macro. But it's not clear how such macro as %setup will know what exactly archive to be used? Should I do this step manually? I'll be grateful for any advices. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 03/02/2012 02:14 PM, andrey.lisin@gmail.com wrote:
Please start a new thread with a new message - and not as a reply to another one. People might not notice the change of subject. You should be able to do somethink like: Source0: source-i386 Source1: source-x86-64 %ifarch x86 %setup -n somedir -a 0 %endif %ifarch x86-64 %setup -n somedir -a 1 %endif Or setup both at the same time - if they unpack in different directories and decide at build/install time where to cd. Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
Andreas Jaeger
-
andrey.lisin@gmail.com
-
Dominique Leuenberger a.k.a DimStar
-
Johannes Weberhofer
-
Marguerite Su
-
Ralf Lang