ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] apache-1.3.34rusPL30.22-alt2
Date: Sun, 19 Mar 2006 04:16:10 +0300
Message-ID: <20060319011610.GA5247@basalt.office.altlinux.org> (raw)
In-Reply-To: <20060319002542.GA18430@localhost.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1279 bytes --]

On Sun, Mar 19, 2006 at 03:25:42AM +0300, Денис Смирнов wrote:
[...]
> По поводу моей попытки использовать rpath -- вот как раз она, судя по
> всему, и не удалась.
[...]
> --- src/Makefile.tmpl.orig	2004-11-24 22:10:19 +0300
> +++ src/Makefile.tmpl	2006-03-19 00:33:09 +0300
> @@ -45,12 +45,13 @@
>  
>  lib$(TARGET).ep: lib$(TARGET).$(SHLIB_SUFFIX_NAME)
>  	$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \
> +		-Wl,--rpath=. \
>  	      -o lib$(TARGET).ep -DSHARED_CORE_TIESTATIC main/http_main.c \
>  		  -L. -l$(TARGET) $(LIBS)
>  

Ещё бы.  Как вы себе представляете rpath="."?  Правильная версия attached.

>  lib$(TARGET).$(SHLIB_SUFFIX_NAME): subdirs modules.o
>  	$(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c
> -	$(LD_SHLIB) $(LDFLAGS_SHLIB) -o lib$(TARGET).$(SHLIB_SUFFIX_NAME) buildmark.o $(OBJS) $(REGLIB) $(EXPATLIB) $(LD_SHCORE_DEF) $(LD_SHCORE_LIBS)
> +	$(LD_SHLIB) $(LDFLAGS_SHLIB) -o lib$(TARGET).$(SHLIB_SUFFIX_NAME) buildmark.o $(OBJS) $(REGLIB) $(EXPATLIB) $(LD_SHCORE_DEF) $(LD_SHCORE_LIBS) -lmm -lz -lcrypt -ldl
>  	@if [ ".$(SHLIB_SUFFIX_LIST)" != . ]; then \
>  		rm -f lib$(TARGET).$(SHLIB_SUFFIX_NAME).*; \
>  		for suffix in $(SHLIB_SUFFIX_LIST) ""; do \

Это не portable, но для начала сгодится.


-- 
ldv

[-- Attachment #1.2: apache.spec.diff --]
[-- Type: text/plain, Size: 2787 bytes --]

--- apache-1.3.34rusPL30.22-alt2/apache.spec	2006-01-25 12:37:07 +0000
+++ apache-1.3.34rusPL30.22-alt3/apache.spec	2006-03-19 00:45:52 +0000
@@ -6,7 +6,7 @@
 %define russian_patchlevel PL30.22
 %define apache_vanilla_version 1.3.34
 %define apache_version %{apache_vanilla_version}rus%russian_patchlevel
-%define apache_release alt2
+%define apache_release alt3
 %define mod_realip_version 2.0
 %define mod_perl_version 1.29
 %define mod_perl_version_pad %{mod_perl_version}00
@@ -111,6 +111,7 @@ Patch9: apache-1.3.33-alt-hardlimit.patc
 Patch10: apache-1.3.31-acl-support.patch
 
 Patch75: apache-1.3.27-openbsd-tmp.patch
+Patch76: apache-1.3.34-alt-makefile.patch
 
 Patch80: uneapi.patch
 # Expat patch
@@ -413,6 +414,7 @@ cp $RPM_BUILD_DIR/mod_realip-%mod_realip
 %endif
 
 %patch75 -p1
+%patch76 -p1
 
 #patch90 -p0
 
@@ -883,6 +885,10 @@ fi
 # - include /etc/monitrc.d/apache ?
 
 %changelog
+* Sun Mar 19 2006 Denis Smirnov <mithraen@altlinux.ru> 1.3.34rusPL30.22-alt3
+- Fixed building with -Wl,--as-needed.
+- Quoted macros in changelog.
+
 * Wed Jan 25 2006 Michael Shigorin <mike@altlinux.org> 1.3.34rusPL30.22-alt2
 - security fix for CVE-2005-3352:
   + cross-site scripting (XSS) vulnerability in the mod_imap module of Apache
@@ -952,7 +958,7 @@ fi
   + implemented separate TMPDIR (addon modules should follow) (#5989)
   + disabled mod_charset for mod_perl (hm... #2941-related)
   + commented out "AddDefaultCharset iso8859-1" by default (#5754)
-  + added %apache_vhostdir and %apache_vhconfdir (#5634)
+  + added %%apache_vhostdir and %%apache_vhconfdir (#5634)
   + upped HARD_SERVER_LIMIT from 256 to 1024 (#5748; needs additional
     /etc/security/limits.conf tweaking to actually happen)
   + changed %%suexec_docroot from /home to %apache_home (#2461)
@@ -1032,7 +1038,7 @@ fi
 - added mod_deflate to current builds; off by default (#2905)
 - fixed altlinux.html
 - %apache_home/html/*.gif and %apache_home/cgi-bin/* are now
-  %config(noreplace); added %apache_home/html/README.txt (#3715)
+  %%config(noreplace); added %apache_home/html/README.txt (#3715)
 
 * Thu Jun 17 2004 Michael Shigorin <mike@altlinux.ru> 1.3.31rusPL30.20-alt4%release_tag
 - fixed default httpd{-perl,}.conf regarding Ukrainian charsets and content
@@ -1171,7 +1177,7 @@ fi
   updated to 1.3.28 and merged into Patch1)
 - added %%add_findprov_lib_path
 - APACHE_HEADER_INSTALL=1 now (#917, #2373)
-- workaround for careless: %config(noreplace) %apache_home/html/*html*
+- workaround for careless: %%config(noreplace) %apache_home/html/*html*
   (#1067, #2510; see also bug comments for proper solution)
 - fixed includedir substitution for apxs-perl (#1254)
 - *major* revamp of mime.types file (#1331, #2468, #2848)

[-- Attachment #1.3: apache-1.3.34-alt-makefile.patch --]
[-- Type: text/plain, Size: 1030 bytes --]

--- apache_1.3.34/src/Makefile.tmpl.orig	2004-11-24 19:10:19 +0000
+++ apache_1.3.34/src/Makefile.tmpl	2006-03-19 00:42:16 +0000
@@ -46,11 +46,11 @@ target_shared: $(SHCORE_IMPLIB) $(SHARED
 lib$(TARGET).ep: lib$(TARGET).$(SHLIB_SUFFIX_NAME)
 	$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \
 	      -o lib$(TARGET).ep -DSHARED_CORE_TIESTATIC main/http_main.c \
-		  -L. -l$(TARGET) $(LIBS)
+		  -L. -l$(TARGET) $(LIBS) -Wl,--rpath=\$$ORIGIN
 
 lib$(TARGET).$(SHLIB_SUFFIX_NAME): subdirs modules.o
 	$(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c
-	$(LD_SHLIB) $(LDFLAGS_SHLIB) -o lib$(TARGET).$(SHLIB_SUFFIX_NAME) buildmark.o $(OBJS) $(REGLIB) $(EXPATLIB) $(LD_SHCORE_DEF) $(LD_SHCORE_LIBS)
+	$(LD_SHLIB) $(LDFLAGS_SHLIB) -o lib$(TARGET).$(SHLIB_SUFFIX_NAME) buildmark.o $(OBJS) $(REGLIB) $(EXPATLIB) $(LD_SHCORE_DEF) $(LD_SHCORE_LIBS) -lmm -lz -lcrypt -ldl
 	@if [ ".$(SHLIB_SUFFIX_LIST)" != . ]; then \
 		rm -f lib$(TARGET).$(SHLIB_SUFFIX_NAME).*; \
 		for suffix in $(SHLIB_SUFFIX_LIST) ""; do \

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2006-03-19  1:16 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-21 17:18       ` [devel] mikmod-3.1.6a-alt4: rebuild failed Michael Shigorin
2006-03-21 17:21         ` Dmitry V. Levin
2006-03-18 20:25                   ` [devel] [10 packages]: " Michael Shigorin
2006-03-18 21:12                     ` Денис Смирнов
2006-03-20  9:26                       ` Michael Shigorin
2006-03-18 22:32                     ` Dmitry V. Levin
2006-03-19  0:25                       ` Денис Смирнов
2006-03-19  1:16                         ` Dmitry V. Levin [this message]
2006-03-19 10:13                           ` [devel] apache-1.3.34rusPL30.22-alt2 Денис Смирнов
2006-03-19 14:20                             ` Dmitry V. Levin
2006-03-20  9:34                           ` Michael Shigorin
2006-03-21 20:23                           ` Dmitry V. Levin
2006-03-20  9:28                         ` [devel] q: apache-1.3 && shared core? (was: [10 packages]: rebuild failed) Michael Shigorin
2006-03-21 20:27                         ` [devel] mod_auth_db Dmitry V. Levin
2006-03-21 16:50                       ` [devel] [10 packages]: rebuild failed Michael Shigorin
2006-03-21 16:54                         ` Dmitry V. Levin
2006-03-21 16:58                           ` Michael Shigorin
2006-03-21 17:20                             ` Dmitry V. Levin
2006-03-24 19:38                   ` [devel] xmms-in-cdparanoia-0.1-alt1: " Michael Shigorin
2006-03-27 10:43                     ` Sergey V Turchin
2006-03-27 18:20                       ` Michael Shigorin
2006-03-25 19:19               ` [devel] timeshift-0.1-alt1: " Michael Shigorin
2006-03-25 19:30                 ` Andrey Rahmatullin
2006-03-25 20:12                   ` Michael Shigorin
2006-03-25 20:59                 ` Dmitry V. Levin
2006-03-26 13:28                   ` Michael Shigorin
2006-04-03  7:47                 ` Andrei Bulava
2006-04-03  8:22                   ` [devel] [JT] " Michael Shigorin
2006-04-03 11:38                   ` [devel] " Dmitry V. Levin
2006-04-03 12:39                     ` Michael Shigorin
2006-03-26 14:02     ` [devel] liblasi-1.0.4-alt1: " Michael Shigorin
2006-03-26 14:25       ` Valery V. Inozemtsev
2006-03-26 18:10         ` Michael Shigorin
2006-03-26 18:35           ` Valery V. Inozemtsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060319011610.GA5247@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git