NetBSD Problem Report #9011
Received: (qmail 11699 invoked from network); 17 Dec 1999 10:50:31 -0000
Message-Id: <199912171050.LAA04806@opus.augustsson.net>
Date: Fri, 17 Dec 1999 11:50:28 +0100 (CET)
From: Lennart Augustsson <augustss@augustsson.net>
Reply-To: augustss@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: packages compat12 and compat13 ruin links in /usr/lib
X-Send-Pr-Version: 3.95
>Number: 9011
>Category: pkg
>Synopsis: packages compat12 and compat13 ruin links in /usr/lib
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 17 02:50:59 +0000 1999
>Closed-Date: Mon Apr 16 21:22:23 +0000 2001
>Last-Modified: Wed Oct 29 01:50:01 +0000 2003
>Originator: Lennart Augustsson
>Release: NetBSD-current 1999-12-16
>Organization:
Department of Computing Science, Chalmers University
>Environment:
System: NetBSD opus 1.4P NetBSD 1.4P (OPUS) #132: Mon Nov 29 22:14:03 CET 1999 augustss@opus:/extra/NetBSD/src/sys/arch/i386/compile/OPUS i386
>Description:
When either of the packages emul/compar12 or emul/compat13 are
installed they will change some symbolic links in /usr/lib.
E.g. libedit.so will no longer be linked to the latest version,
but to an old version.
This causes great confusion when building further software, e.g.,
anything that uses libstdc++ (which many packages use).
>How-To-Repeat:
cd pkgsrc/emul/compat12; make install
>Fix:
Change installation procedure
>Release-Note:
>Audit-Trail:
From: John Darrow <John.P.Darrow@wheaton.edu>
To: gnats-bugs@netbsd.org
Cc: John.P.Darrow@wheaton.edu
Subject: pkg/9011
Date: Sat, 18 Dec 1999 12:42:43 -0600
>The real problem is that if you install emul/compat12 and/or emul/compat13
>then that installation will mess up symbolic links in /usr/lib which makes it
>impossible to compile lots and lots of other packages.
I ran in to this problem shortly after the a.out->ELF transition. The
enclosed patches are what I ended up doing. Ideally, there should be
some way to tell bsd.pkg.mk _not_ to do the normal shared library handling.
Failing that, stuff similar to the following would be needed for any arch
which moves to ELF...
(I will also append this to pr pkg/9011...)
Index: emulators/compat12/Makefile
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/emulators/compat12/Makefile,v
retrieving revision 1.1.1.4
retrieving revision 1.4
diff -u -r1.1.1.4 -r1.4
--- Makefile 1999/06/21 18:54:05 1.1.1.4
+++ Makefile 1999/10/01 20:12:31 1.4
@@ -17,7 +17,16 @@
.include "../../mk/bsd.prefs.mk"
# This installs in /usr to avoid dynamic linker annoyances
+.if (${MACHINE_ARCH} == "i386")
+show-shlib-type:
+ ${ECHO} "a.out"
+
+.if exists(/emul/aout/usr/libexec/ld.so)
+LOCALBASE= /emul/aout/usr
+.else
LOCALBASE= /usr
+.endif
+.endif
NO_MTREE=
do-install:
Index: emulators/compat13/Makefile
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/emulators/compat13/Makefile,v
retrieving revision 1.1.1.3
retrieving revision 1.4
diff -u -r1.1.1.3 -r1.4
--- Makefile 1999/06/21 18:54:23 1.1.1.3
+++ Makefile 1999/10/01 20:12:26 1.4
@@ -19,7 +19,16 @@
.include "../../mk/bsd.prefs.mk"
# This installs in /usr to avoid dynamic linker annoyances
+.if (${MACHINE_ARCH} == "i386")
+show-shlib-type:
+ ${ECHO} "a.out"
+
+.if exists(/emul/aout/usr/libexec/ld.so)
+LOCALBASE= /emul/aout/usr
+.else
LOCALBASE= /usr
+.endif
+.endif
NO_MTREE=
do-install:
From: Frederick Bruckman <fb@enteract.com>
To: gnats-bugs@gnats.NetBSD.ORG
Cc:
Subject: Re: pkg/9011
Date: Sat, 23 Sep 2000 00:12:33 -0500 (CDT)
Overriding LOCALBASE is not good. For compat14, we could follow the
plan established by the linux compat packages, and install aout shared
libraries to ${LOCALBASE}/emul/aout, and make /emul or /emul/aout a
symlink to it. This should "just work" even for ports that haven't yet
switched to ELF, courtesy of the new "emul" path searching feature of
NetBSD-1.4.3/1.5 ld.so.
It's still not clear to me, how best to support compat1[234] all at
the same time. [The "emul" trick doesn't help for this.] My first
thought is to have a matrix of smaller packages which could be mixed
and matched to produce the desired degree of compatability. <Shudder>
Better, maybe, to subsume libraries with distinct major versions from
compat1[23] into compat-netbsd-1.4. This way, the package system will
take care that future compat-netbsd-* packages can't be installed at
the same time. (Nor would you need them to be!)
Frederick
State-Changed-From-To: open->feedback
State-Changed-By: skrll
State-Changed-When: Tue Jan 16 16:12:57 PST 2001
State-Changed-Why:
These packages have SHLIB_HANDLING= NO which should fix this problem.
State-Changed-From-To: feedback->closed
State-Changed-By: skrll
State-Changed-When: Mon Apr 16 14:22:04 PDT 2001
State-Changed-Why:
Timeout on feedback.
From: Jun-ichiro itojun Hagino <itojun@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/9011 CVS commit: pkgsrc/www/apache2
Date: Tue, 28 Oct 2003 04:49:33 +0000 (UTC)
Module Name: pkgsrc
Committed By: itojun
Date: Tue Oct 28 04:49:33 UTC 2003
Modified Files:
pkgsrc/www/apache2: Makefile Makefile.common PLIST distinfo
pkgsrc/www/apache2/patches: patch-aa
Log Message:
upgrade to 2.0.48
Changes with Apache 2.0.48
*) SECURITY [CAN-2003-0789]: mod_cgid: Resolve some mishandling of
the AF_UNIX socket used to communicate with the cgid daemon and
the CGI script. [Jeff Trawick]
*) SECURITY [CAN-2003-0542]: Fix buffer overflows in mod_alias and
mod_rewrite which occurred if one configured a regular expression
with more than 9 captures. [André Malo]
*) mod_include: fix segfault which occured if the filename was not
set, for example, when processing some error conditions.
PR 23836. [Brian Akins <bakins@web.turner.com>, André Malo]
*) fix the config parser to support <Foo>..</Foo> containers (no
arguments in the opening tag) supported by httpd 1.3. Without
this change mod_perl 2.0's <Perl> sections are broken.
["Philippe M. Chiasson" <gozer@cpan.org>]
*) mod_cgid: fix a hash table corruption problem which could
result in the wrong script being cleaned up at the end of a
request. [Jeff Trawick]
*) Update httpd-*.conf to be clearer in describing the connection
between AddType and AddEncoding for defining the meaning of
compressed file extensions. [Roy Fielding]
*) mod_rewrite: Don't die silently when failing to open RewriteLogs.
PR 23416. [André Malo]
*) mod_rewrite: Fix mod_rewrite's support of the [P] option to send
rewritten request using "proxy:". The code was adding multiple "proxy:"
fields in the rewritten URI. PR: 13946.
[Eider Oliveira <eider@bol.com.br>]
*) cache_util: Fix ap_check_cache_freshness to check max_age, smax_age, and
expires as directed in RFC 2616. [Thomas Castelle tcastelle@generali.fr]
*) Ensure that ssl-std.conf is generated at configure time, and switch
to using the expanded config variables to work the same as
httpd-std.conf PR: 19611
[Thom May]
*) mod_ssl: Fix segfaults after renegotiation failure. PR 21370
[Hartmut Keil <Hartmut.Keil@adnovum.ch>]
*) mod_autoindex: If a directory contains a file listed in the
DirectoryIndex directive, the folder icon is no longer replaced
by the icon of that file. PR 9587.
[David Shane Holden <dpejesh@yahoo.com>]
*) Fixed mod_usertrack to not get false positive matches on the
user-tracking cookie's name. PR 16661.
[Manni Wood <manniwood@planet-save.com>]
*) mod_cache: Fix the cache code so that responses can be cached
if they have an Expires header but no Etag or Last-Modified
headers. PR 23130.
[bjorn@exoweb.net]
*) mod_log_config: Fix %b log format to write really "-" when 0 bytes
were sent (e.g. with 304 or 204 response codes). [Astrid Keßler]
*) Modify ap_get_client_block() to note if it has seen EOS.
[Justin Erenkrantz]
*) Fix a bug, where mod_deflate sometimes unconditionally compressed the
content if the Accept-Encoding header contained only other tokens than
"gzip" (such as "deflate"). PR 21523. [Joe Orton, André Malo]
*) Avoid an infinite recursion, which occured if the name of an included
config file or directory contained a wildcard character. PR 22194.
[André Malo]
*) mod_ssl: Fix a problem setting variables that represent the
client certificate chain. PR 21371 [Jeff Trawick]
*) Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms(). Allow the functions to be
called for any type of mutex. PR 20312 [Jeff Trawick]
*) ab: Work over non-loopback on Unix again. PR 21495. [Jeff Trawick]
*) Fix a misleading message from the some of the threaded MPMs when
MaxClients has to be lowered due to the setting of ServerLimit.
[Jeff Trawick]
*) Lower the severity of the "listener thread didn't exit" message
to debug, as it is of interest only to developers. PR 9011
[Jeff Trawick]
*) MPMs: The bucket brigades subsystem now honors the MaxMemFree setting.
[Cliff Woolley, Jean-Jacques Clar]
*) Install config.nice into the build/ directory to make
minor version upgrades easier. [Joshua Slive]
*) Fix mod_deflate so that it does not call deflate() without checking
first whether it has something to deflate. (Currently this causes
deflate to generate a fatal error according to the zlib spec.)
PR 22259. [Stas Bekman]
*) mod_ssl: Fix FakeBasicAuth for subrequest. Log an error when an
identity spoof is encountered.
[Sander Striker]
*) mod_rewrite: Ignore RewriteRules in .htaccess files if the directory
containing the .htaccess file is requested without a trailing slash.
PR 20195. [André Malo]
*) ab: Overlong credentials given via command line no longer clobber
the buffer. [André Malo]
*) mod_deflate: Don't attempt to hold all of the response until we're
done. [Justin Erenkrantz]
*) Assure that we block properly when reading input bodies with SSL.
PR 19242. [David Deaves <David.Deaves@dd.id.au>, William Rowe]
*) Update mime.types to include latest IANA and W3C types. [Roy Fielding]
*) mod_ext_filter: Set additional environment variables for use by
the external filter. PR 20944. [Andrew Ho, Jeff Trawick]
*) Fix buildconf errors when libtool version changes. [Jeff Trawick]
*) Remember an authenticated user during internal redirects if the
redirection target is not access protected and pass it
to scripts using the REDIRECT_REMOTE_USER environment variable.
PR 10678, 11602. [André Malo]
*) mod_include: Fix a trio of bugs that would cause various unusual
sequences of parsed bytes to omit portions of the output stream.
PR 21095. [Ron Park <ronald.park@cnet.com>, André Malo, Cliff Woolley]
*) Update the header token parsing code to allow LWS between the
token word and the ':' seperator. [PR 16520]
[Kris Verbeeck <kris.verbeeck@advalvas.be>, Nicel KM <mnicel@yahoo.com>]
*) Eliminate creation of a temporary table in ap_get_mime_headers_core()
[Joe Schaefer <joe+gmane@sunstarsys.com>]
*) Added FreeBSD directory layout. PR 21100.
[Sander Holthaus <info@orangexl.com>, André Malo]
*) Fix NULL-pointer issue in ab when parsing an incomplete or non-HTTP
response. PR 21085. [Glenn Nielsen <glenn@apache.org>, André Malo]
*) mod_rewrite: Perform child initialization on the rewrite log lock.
This fixes a log corruption issue when flock-based serialization
is used (e.g., FreeBSD). [Jeff Trawick]
*) Don't respect the Server header field as set by modules and CGIs.
As with 1.3, for proxy requests any such field is from the origin
server; otherwise it will have our server info as controlled by
the ServerTokens directive. [Jeff Trawick]
To generate a diff of this commit:
cvs rdiff -r1.27 -r1.28 pkgsrc/www/apache2/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/www/apache2/Makefile.common
cvs rdiff -r1.16 -r1.17 pkgsrc/www/apache2/PLIST
cvs rdiff -r1.22 -r1.23 pkgsrc/www/apache2/distinfo
cvs rdiff -r1.10 -r1.11 pkgsrc/www/apache2/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.