Re: firefox-esr 38.4.0 build, Missing library for sqlite>=31.0

2015-11-07 Thread gsowww
/usr/ports/www/mozilla/mozilla.prot.mk:

MODMOZ_WANTLIB += ... sqlite3>=3.1 ...


 On Friday, 6 November 2015, 17:06, "gso...@yahoo.co.uk"
 wrote:



Building firefox38.4.0esr

===>  Verifying specs:  icudata icui18n icuuc X11 Xext Xrender Xt atk-1.0 c
cairo  fontconfig freetype gdk_pixbuf-2.0 gio-2.0 glib-2.0  gobject-2.0
gthread-2.0 m  nspr4 nss3 pango-1.0 pangocairo-1.0 pangoft2-1.0  plc4 plds4
pthread event kvm sqlite3>=31  smime3 sndio nssutil3 ssl3 stdc++ z
hunspell-1.3 Xcomposite Xcursor Xdamage Xfixes Xi Xinerama  Xrandr
gdk-x11-2.0 gtk-x11-2.0 intl>=5 iconv>=6
Missing library for sqlite3>=31.0
Fatal error
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2229
'/home/devel/build/obj/ports/firefox-esr-38.4.0/.buildwantlibs')
*** Error 1 in /usr/ports/www/firefox-esr
(/usr/ports/infrastructure/mk/bsd.port.mk:2488 'all')

Is there a way around this?



Re: azalia audio works, then stutters until reboot

2015-11-07 Thread luke350

[sorry for the dupe; correcting the 'from' address.]

On 11/07/15 04:20, Alexandre Ratchov wrote:

On Fri, Nov 06, 2015 at 05:00:13PM -0700, luke...@onemodel.org wrote:

On 09/11/15 11:55, luke...@onemodel.org wrote:
[...details are found in original thread at:
 http://marc.info/?l=openbsd-misc=144199440202788=2
]
Is there other info I can provide, or something I should try?


you could try to kill sndiod and run as root:

sndiod -ddd 2>/tmp/sndiod-log
...
(audioctl ; sleep 1 ; audioctl) >/tmp/audioctl-log

and send me both files.  Or at least last few megs if the file is
huge.


Since the problem was already occurring I can provide that now. I
killed/restareted sndiod as described, attempted to run "timidity
*.mid", but instead of the error output I described earlier it just
produced repeated chimes (ie, the audible symptoms of the problem).

Then doing this as  root:
  (audioctl ; sleep 1 ; audioctl) >/tmp/audioctl-log
...yields the 2nd of the 2 logs pasted below.  (But I wonder
if I did things in a way
that makes them informative enough, or if the problem needs
to be absent when I start the "sndiod..." command, and begin
while that is in debug mode, or anything.)

-Luke


$cat sndiod-log
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created


$cat audioctl-log
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=2
lowat=2
mode=
play.rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.pause=0
play.active=0
play.block_size=17664
play.bytes=0
play.errors=0
record.rate=44100
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.pause=0
record.active=0
record.block_size=17664
record.bytes=0
record.errors=0
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=2
lowat=2
mode=
play.rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.pause=0
play.active=0
play.block_size=17664
play.bytes=0
play.errors=0
record.rate=44100
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.pause=0
record.active=0
record.block_size=17664
record.bytes=0
record.errors=0


--
Luke A. Call
--
Things I'd like to say to more people:
http://www.onemodel.org/1/e-9223372036854618449.html



Re: firefox-esr 38.4.0 build, Missing library for sqlite>=31.0

2015-11-07 Thread Peter Hessler
Your userland and ports are out of sync. 
http://www.openbsd.org/faq/faq15.html#NoFun


On 2015 Nov 06 (Fri) at 17:06:02 + (+), gso...@yahoo.co.uk wrote:
:Building firefox38.4.0esr
:
:===>?? Verifying specs:?? icudata icui18n icuuc X11 Xext Xrender Xt atk-1.0 c
:cairo?? fontconfig freetype gdk_pixbuf-2.0 gio-2.0 glib-2.0?? gobject-2.0
:gthread-2.0 m?? nspr4 nss3 pango-1.0 pangocairo-1.0 pangoft2-1.0?? plc4 plds4
:pthread event kvm sqlite3>=31?? smime3 sndio nssutil3 ssl3 stdc++ z
:hunspell-1.3 Xcomposite Xcursor Xdamage Xfixes Xi Xinerama?? Xrandr
:gdk-x11-2.0 gtk-x11-2.0 intl>=5 iconv>=6
:Missing library for sqlite3>=31.0
:Fatal error
:*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2229
:'/home/devel/build/obj/ports/firefox-esr-38.4.0/.buildwantlibs')
:*** Error 1 in /usr/ports/www/firefox-esr
:(/usr/ports/infrastructure/mk/bsd.port.mk:2488 'all')
:
:Is there a way around this?
:

-- 
Never try to outstubborn a cat.
-- Lazarus Long, "Time Enough for Love"



Re: firefox-esr 38.4.0 build, Missing library for sqlite>=31.0

2015-11-07 Thread gsowww
Ignore that, my userland and ports are out of sync.



 On Friday, 6 November 2015, 17:06, "gso...@yahoo.co.uk"
 wrote:



Building firefox38.4.0esr

===>  Verifying specs:  icudata icui18n icuuc X11 Xext Xrender Xt atk-1.0 c
cairo  fontconfig freetype gdk_pixbuf-2.0 gio-2.0 glib-2.0  gobject-2.0
gthread-2.0 m  nspr4 nss3 pango-1.0 pangocairo-1.0 pangoft2-1.0  plc4 plds4
pthread event kvm sqlite3>=31  smime3 sndio nssutil3 ssl3 stdc++ z
hunspell-1.3 Xcomposite Xcursor Xdamage Xfixes Xi Xinerama  Xrandr
gdk-x11-2.0 gtk-x11-2.0 intl>=5 iconv>=6
Missing library for sqlite3>=31.0
Fatal error
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2229
'/home/devel/build/obj/ports/firefox-esr-38.4.0/.buildwantlibs')
*** Error 1 in /usr/ports/www/firefox-esr
(/usr/ports/infrastructure/mk/bsd.port.mk:2488 'all')

Is there a way around this?



Re: VGA memory size

2015-11-07 Thread Mohammad BadieZadegan
Thanks Dear Ryan Freeman,
It's reported right.
Best Regards.

On Thu, Nov 5, 2015 at 9:27 PM, Ryan Freeman  wrote:

> On Wed, Nov 04, 2015 at 02:18:28PM +0330, Mohammad BadieZadegan wrote:
> > Hi everybody,
> > I have searched more time to find a command to show the current VGA
> memory
> > size but nothing found for OpenBSD.
> > Is that a way to find it?
> > Thanks.
> >
>
> I'm not sure about a base utility, but you can (sometimes?) get the vga
> memory
> size via the glxinfo(1) command, ex:
>
> --snip--
> Extended renderer info (GLX_MESA_query_renderer):
> Vendor: X.Org (0x1002)
> Device: AMD RV710 (0x9540)
> Version: 10.2.9
> Accelerated: yes
> Video memory: 512MB
> Unified memory: no
> Preferred profile: core (0x1)
> Max core profile version: 3.3
> Max compat profile version: 3.0
> Max GLES1 profile version: 1.1
> Max GLES[23] profile version: 3.0
> --snip--
>
> Cheers,
>
> -Ryan
>



-- 
[image: ( openbsd.pro  933k.ir )] 



firefox-esr 38.4.0 build: .../ld: libxul.so.2.0: hidden symbol `FT_Get_X11_Font_Format' isn't defined

2015-11-07 Thread gsowww
The full error being:
...

    INPUT("../../gfx/skia/Unified_cpp_gfx_skia9.o")
    INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")

/usr/bin/ld: libxul.so.2.0: hidden symbol `FT_Get_X11_Font_Format' isn't
defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
clang-3.5: error: linker command failed with exit code 1 (use -v to see
invocation)
/home/devel/build/obj/ports/firefox-esr-38.4.0/mozilla-esr38/config/rules.mk:
812: recipe for target 'libxul.so.2.0' failed
gmake[3]: *** [libxul.so.2.0] Error 1
gmake[3]: Leaving directory
'/home/devel/build/obj/ports/firefox-esr-38.4.0/build-i386/toolkit/library'
/home/devel/build/obj/ports/firefox-esr-38.4.0/mozilla-esr38/config/recurse.m
k:74: recipe for target 'toolkit/library/target' failed
gmake[2]: *** [toolkit/library/target] Error 2

FT_Get_X11_Font_Format being defined in
build/obj/ports/firefox-esr-38.4.0/mozilla-esr38/modules/freetype2/include/ft
xf86.h - wrapper code for an external lib., namely freetype2?
Do we have a freetype2 port?



Re: azalia audio works, then stutters until reboot

2015-11-07 Thread Alexandre Ratchov
On Fri, Nov 06, 2015 at 05:00:13PM -0700, luke...@onemodel.org wrote:
> On 09/11/15 11:55, luke...@onemodel.org wrote:
> >Short version: In OpenBSD 5.7 (with all the latest security
> >patches), after some video playing, it
> >starts to stutter, and doesn't recover until I reboot. Is there
> >a way to "reset all the audio" back so it works, short of rebooting?
> >I haven't found that in anything I've read so far, including from
> >faq 13 and manpages for audioctl and mixerctl etc.
> >
> >The details:
> [...are found in original thread at:
> http://marc.info/?l=openbsd-misc=144199440202788=2
> ]
> 
> 
> I upgraded to 5.8 as advised in the earlier thread, and the
> problem is definitely much reduced, but still happens occasionally.

The 5.8 audio driver was rewritten from scratch so the behavior may
be slightly different

> It seems to be mostly after I use the xfce volume control slider
> (ie the audio mixer panel plugin).  It usually doesn't have any
> problem if I move around in the video, change the volume via the
> slider inside the video area in the browser, or if I use the computer
> for something else, but did fail just now when I tried to watch a 2nd
> video via a link.
> 
> I confirmed that, as described before IIRC, when the problem
> occurs with symptoms in chrome, and I try to use timidity to
> play a .mid file, I get this output from timidity:
> io_open() failed
> Couldn't open sndio mode (`s')
> 
> Is there other info I can provide, or something I should try?
> 

you could try to kill sndiod and run as root:

sndiod -ddd 2>/tmp/sndiod-log

Possibly use tmux to avoid closing the window by mistake.  Then, do
your usual stuff and whenever you see the failure, run:

(audioctl ; sleep 1 ; audioctl) >/tmp/audioctl-log

and send me both files.  Or at least last few megs if the file is
huge.

This may reveal what's the state of the audio subsystem during the
failure.

thanks

-- Alexandre



radioctl slight error

2015-11-07 Thread Douglas Maus
on my system
# radioctl frequency=99.3
frequency: 99.25MHz -> 99.25MHz

Not a big deal, but frequencies of 99.3 being interpreted as slightly lower
at 99.25
is not ideal for some applications
This happens for other floats ending in '.3', '.1', etc

I tracked this down in radioctl.c to the function str_to_int():
if (optval == OPTION_FREQUENCY)
val = (int)(1000 * atof(str))
with the str="99.3", the integer val generated is 99299
because of integer truncation with the cast

a version that generates more expected values for me is something like:
val = lrint(1000*strtod(str, NULL));

at the cost of lrint() requiring the  header, and math library
and strtod() instead of the (deprecated) atof()

just FYI if someone wanted to update it



Re: azalia audio works, then stutters until reboot

2015-11-07 Thread Alexandre Ratchov
On Sat, Nov 07, 2015 at 06:27:17AM -0700, luke...@onemodel.org wrote:
> [sorry for the dupe; correcting the 'from' address.]
> 
> On 11/07/15 04:20, Alexandre Ratchov wrote:
> >On Fri, Nov 06, 2015 at 05:00:13PM -0700, luke...@onemodel.org wrote:
> >>On 09/11/15 11:55, luke...@onemodel.org wrote:
> >>[...details are found in original thread at:
> >> http://marc.info/?l=openbsd-misc=144199440202788=2
> >>]
> >>Is there other info I can provide, or something I should try?
> >>
> >you could try to kill sndiod and run as root:
> >
> >sndiod -ddd 2>/tmp/sndiod-log
> >...
> >(audioctl ; sleep 1 ; audioctl) >/tmp/audioctl-log
> >
> >and send me both files.  Or at least last few megs if the file is
> >huge.
> 
> Since the problem was already occurring I can provide that now. I
> killed/restareted sndiod as described, attempted to run "timidity
> *.mid", but instead of the error output I described earlier it just
> produced repeated chimes (ie, the audible symptoms of the problem).
> 
> Then doing this as  root:
>   (audioctl ; sleep 1 ; audioctl) >/tmp/audioctl-log
> ...yields the 2nd of the 2 logs pasted below.  (But I wonder
> if I did things in a way
> that makes them informative enough, or if the problem needs
> to be absent when I start the "sndiod..." command, and begin
> while that is in debug mode, or anything.)

sorry, forgot to mention it; please restart sndiod first; this way
all the operations that lead to the bug are logged.  Then, right
after the failure, run the audioctl commands.

thanks



Re: LC_COLLATE

2015-11-07 Thread Philip Guenther
On Sat, Nov 7, 2015 at 9:58 AM, bluesun08  wrote:
> for my postgresql-server i need:
> LC_COLLATE="de_DE.UTF-8"
>
> But the following command in the .profile don't work:
> export LC_COLLATE="de_DE.UTF-8"
>
> Why not? How can i do this?

.profile is only read by login shells.

If you want to set environment variables for a daemon the 'setenv'
option in its /etc/login.conf entry (if it has its own) should work.



> View this message in context: 
> http://openbsd-archive.7691.n7.nabble.com/LC-COLLATE-tp282248.html
> Sent from the openbsd user - misc mailing list archive at Nabble.com.

Nabble: because what email needs is *banner ads*!


Philip Guenther



Re: azalia audio works, then stutters until reboot

2015-11-07 Thread luke350

On 11/07/15 12:21, Alexandre Ratchov wrote:

sorry, forgot to mention it; please restart sndiod first; this way
all the operations that lead to the bug are logged.  Then, right
after the failure, run the audioctl commands.


I rebooted, restarted sndiod -ddd..., sound working with
timidity, volume changes caused no problem, started a video in
chrome, sound working, stopped it, changed volume (cycled that
a few times until) sound not
working in chrome (nor timidity: "...Couldn't open sndio..." as
before), ran the audioctl line, and the below logs resulted.

Is there anything more informative I should do? would sndiod
necessarily have flushed its logs after several minutes?  I
double-checked that there were 3 "d"'s in the sndiod command.

Also, do I understand correctly that the only way to return to a
working state (currently known) is to reboot?  (Cue Fats Domino,
"ain't that a shame..."  :)  but i understand and am grateful it
works at all, and for the help.)

Thanks!


$cat sndiod-log
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created


$cat audioctl-log
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=2
lowat=2
mode=play
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.pause=0
play.active=1
play.block_size=4096
play.bytes=2998272
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.pause=0
record.active=1
record.block_size=4096
record.bytes=0 



record.errors=0 



name=HD-Audio 



encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1 



properties=full_duplex,independent
hiwat=2
lowat=2
mode=play
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.pause=0
play.active=1
play.block_size=4096
play.bytes=2998272
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.pause=0
record.active=1
record.block_size=4096
record.bytes=0
record.errors=0



LC_COLLATE

2015-11-07 Thread bluesun08
Hi,

for my postgresql-server i need: 
LC_COLLATE="de_DE.UTF-8"

But the following command in the .profile don't work:
export LC_COLLATE="de_DE.UTF-8"

Why not? How can i do this?

Regards

Alex



--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/LC-COLLATE-tp282248.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: firefox-esr 38.4.0 build: .../ld: libxul.so.2.0: hidden symbol `FT_Get_X11_Font_Format' isn't defined

2015-11-07 Thread Stuart Henderson
On 2015-11-07,   wrote:
> /usr/bin/ld: libxul.so.2.0: hidden symbol `FT_Get_X11_Font_Format' isn't
> defined
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> clang-3.5: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> FT_Get_X11_Font_Format being defined in
> build/obj/ports/firefox-esr-38.4.0/mozilla-esr38/modules/freetype2/include/ft
> xf86.h - wrapper code for an external lib., namely freetype2?
> Do we have a freetype2 port?

freetype2 is part of xenocara.



Re: LC_COLLATE

2015-11-07 Thread bluesun08
ok. sorry.

the real problem:
i have a windows application which needs a postgresql-database with
"de_DE.UTF-8" collation.

When i try to create such a database in openbsd i get the error: 
initdb: invalid locale name "de_DE.UTF-8"

When i try to create the collation in postgres, i get the following error:
postgres=# CREATE COLLATION german (LOCALE = 'de_DE.utf8');
ERROR:  nondefault collations are not supported on this platform

Maybe my problem is similar to this posting, but i don't understand how to
solve it:

http://openbsd-archive.7691.n7.nabble.com/LC-COLLATE-and-PostgreSQL-td43687.html






--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/LC-COLLATE-tp282248p282272.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: LC_COLLATE

2015-11-07 Thread Stefan Sperling
On Sat, Nov 07, 2015 at 04:48:28PM -0700, bluesun08 wrote:
> ok. sorry.
> 
> the real problem:
> i have a windows application which needs a postgresql-database with
> "de_DE.UTF-8" collation.
> 
> When i try to create such a database in openbsd i get the error: 
> initdb: invalid locale name "de_DE.UTF-8"
> 
> When i try to create the collation in postgres, i get the following error:
> postgres=# CREATE COLLATION german (LOCALE = 'de_DE.utf8');
> ERROR:  nondefault collations are not supported on this platform

OpenBSD doesn't provide LC_COLLATE locales.

Is there another way to use collation in postgres which is independent
of locales? Libraries like ICU (http://site.icu-project.org/) can
support collation regardless of locale settings.

Perhaps you should also ask your question in prostgres support forums.



Re: LC_COLLATE

2015-11-07 Thread bluesun08
Thank you. I try in /etc/login.conf:

postgres:\
:lang=de_DE.UTF-8:\
:setenv=LC_COLLATE=de_DE.UTF-8:\
:tc=default:

After the command "initdb  --lc-collate=de_DE.UTF-8 -D /var/postgresql/data"
i get the following error message:
 
The files belonging to this database system will be owned by user
"_postgresql".
This user must also own the server process.

initdb: invalid locale name "de_DE.UTF-8"
initdb: invalid locale name ""
initdb: invalid locale name ""
initdb: invalid locale name ""
The database cluster will be initialized with locales
  COLLATE:  C
  CTYPE:de_DE.UTF-8
  MESSAGES: de_DE.UTF-8
  MONETARY: C
  NUMERIC:  C
  TIME: C
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "german".

But i need the COLLATE "de_DE.UTF-8" and get "invalid locale name
"de_DE.UTF-8" "

What is the problem here and how can i fix this?

Regards

Alex



--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/LC-COLLATE-tp282248p282257.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: LC_COLLATE

2015-11-07 Thread Philip Guenther
On Sat, Nov 7, 2015 at 1:15 PM, bluesun08  wrote:
> Thank you. I try in /etc/login.conf:
>
> postgres:\
> :lang=de_DE.UTF-8:\
> :setenv=LC_COLLATE=de_DE.UTF-8:\
> :tc=default:
>
> After the command "initdb  --lc-collate=de_DE.UTF-8 -D /var/postgresql/data"
> i get the following error message:
>
> The files belonging to this database system will be owned by user
> "_postgresql".
> This user must also own the server process.
>
> initdb: invalid locale name "de_DE.UTF-8"
> initdb: invalid locale name ""
> initdb: invalid locale name ""
> initdb: invalid locale name ""
...
> But i need the COLLATE "de_DE.UTF-8" and get "invalid locale name
> "de_DE.UTF-8" "
>
> What is the problem here and how can i fix this?

I'm confused: you said you need that setting but you hadn't actually
verified that it solves your real problem?  I think you skipped a step
in there: what is the *real* problem you're trying to solve?


Philip Guenther



Linus Torvalds thoughts on Linux Security

2015-11-07 Thread Some Developer
I thought this might provoke a bit of a debate on this list :). What do 
you think of what Linus has to say about security?


http://linux.slashdot.org/story/15/11/06/132209/linuss-thoughts-on-linux-security



installboot with amd64 root on softraid crypto, NOT 'a' partition

2015-11-07 Thread Jonathan Thornburg
I've run into an odd problem trying to use with installboot(8) on a
softraid-crypto disk, and I wonder if anyone can suggest a
workaround/solution.


Background
--

As described in ,
I have an amd64 laptop (Thinkpad T60p) which has multiple sets of
softraid-crypto root/var/usr partitions, sharing common swap and home
partitions:

  sd0
  ---
   |  a-+- (sd1) softraid crypt, size = 44.5G
   || a = root   256M
   || d = root2  256M
   || e = var2G
   || f = var2   2G
   || g = usr20G
   || h = usr2   20G
   |   -+-
   |  b   swap   6G
   |  j-+- (sd2) softraid crypt, size = all remaining space
   || j = home
  ---  -+-

sd0 is the physical disk.  It has 3 openbsd-partitions: a, b, and j.

sd1 is a softraid-crypto disk living inside sd0a.  sd1 stores all the
OS partitions.  More precisely, sd1 stores *two* sets of root, var, and
usr partitions.  My starting point is that sd1[aeg] contain a working
OpenBSD 5.6-stable/amd64, and sd1[dfh] are empty.

sd2 is a softraid-crypt disk living inside sd0j.  sd2 stores /home,
and (I think) isn't relevant here.

The boot procedure is to turn the laptop on, and (after memory tests etc)
enter the sd1 passphrase.  The machine will then boot from sd1[aeg] (or
sd1[dfh] if I enter 'boot sr1d:/bsd' at the "boot>" prompt, assuming there's
an OpenBSD installation on those partitions).  I activate sd2 and mount
/home via a perl script run after the machine is running multiuser, i.e.,
this doesn't form part of the OS-level boot sequence.


Problem
---

I want to move to 5.8... *but* I want to keep the ability to
boot and run 5.6-stable as a backup even after 5.8 is running.
[I'm pretty confident that 5.8 will install/run fine,
but I'm less confident that all the perl modules I
currently use under 5.6 will grok 5.8 properly.]
That is, I'd like to have a new 5.8 install in sd1[aeg], and (a copy of)
my previous 5.6-stable in sd1[dfh], with the latter bootable via entering
"boot sr1d:/bsd" at the "boot>" prompt.

My plan was the following:
1. copy the 5.6-stable OpenBSD installation from sd1[aeg] to sd1[dfh]
2. install 5.8-release on sd1[aeg] from the CD set
3. update 5.8-release on sd1[aeg] to 5.8-stable as usual

However, I've run into trouble with step 1.  In more detail, I did this:

(boot 5.6-stable from partitions sd1[aeg])
# newfs /dev/rsd1d
# mount -o softdep,noatime /dev/sd1d /mnt
# tar|tar copy from / to /mnt
#
# newfs /dev/rsd1f
# mount -o softdep,noatime,nodev,nosuid /dev/sd1d /mnt/var
# tar|tar copy from /var to /mnt/var
#
# newfs /dev/rsd1h
# mount -o softdep,noatime,nodev /dev/sd1d /mnt/usr
# tar|tar copy from /usr to /mnt/usr
#
# edit /mnt/etc/fstab to change from mounting sd1[aeg] to sd1[dfh]
# fiddle around a bit, including unmounting /mnt/var
#
# mount
/dev/sd1a on / type ffs (local, noatime, softdep)
mfs:1891 on /tmp type mfs (asynchronous, local, nodev, nosuid, size=500 
1024-blocks)
/dev/sd1e on /var type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd1g on /usr type ffs (local, noatime, nodev, softdep)
mfs:17343 on /usr/tmp type mfs (asynchronous, local, nodev, nosuid, 
size=200 1024-blocks)
/dev/sd1d on /mnt type ffs (local, noatime, softdep)
/dev/sd1h on /mnt/usr type ffs (local, noatime, nodev, nosuid, softdep)
# installboot -v -r /mnt sd1 <- note  -r /mnt  here
Using /mnt as root
installing bootstrap on /dev/rsd1c
using first-stage /mnt/usr/mdec/biosboot, second-stage /mnt/usr/mdec/boot
sd1: softraid volume with 1 disk(s)
sd1: installing boot loader on softraid volume
/mnt/usr/mdec/boot is 5 blocks x 16384 bytes
sd0a: installing boot blocks on /dev/rsd0c, part offset 208
master boot record (MBR) at sector 0
partition 3: type 0xA6 offset 64 size 1465144001
/mnt/usr/mdec/biosboot will be written at sector 64
# reboot

(N.b. all the tar|tar copies use GNU tar from the gtar-1.27.1-static
package.  This handles sparse files, and can copy (create) /dev entries
fine.)

At this point the machine can boot and run sd1[aeg] fine.  *But* if I
enter "boot sr1d:/bsd" at the "boot>" prompt, the machine boots sd1[aeg],
not the desired sd1[dfh].  In other words, at this point my "backup"
sd1[dfh] partitions aren't usefully bootable :(.


Questions
-
I guess my basic question is, what's wrong here and what's the cleanest
way to achieve my desired ends (assuming they're achievable)?

Of course, I could go ahead install 5.8 on sd1[aeg]... but then I wouldn't
have the ability to (easily) boot 5.6-stable as a backup.

I read with interest krw@'s recent Undeadly description

of fixing a softraid-crypto bug in installboot(8),
| I spent some time helping stsp@ fix installboot(8) to handle softraid
| crypto installs, while stoutly maintaining my ignorance of softraid
| crypto. I failed to 

Re: installboot with amd64 root on softraid crypto, NOT 'a' partition

2015-11-07 Thread Nick Holland
On 11/07/15 19:56, Jonathan Thornburg wrote:
...
> (or
> sd1[dfh] if I enter 'boot sr1d:/bsd' at the "boot>" prompt, assuming there's
   ^
> an OpenBSD installation on those partitions).  

...
> Questions
> -
> I guess my basic question is, what's wrong here and what's the cleanest
> way to achieve my desired ends (assuming they're achievable)?

What's wrong is you are violating the basic rule of "boot from 'a', root
is 'a'".

Anything you do to work around it today may break in the future, I don't
think there has been any real interest with developers in supporting
multiple OpenBSD systems on one physical (or logical) disk.

Going backwards to ignore a problem isn't the OpenBSD Way.

If your goal is to wind-back a bad upgrade, you have your backups
(RIGHT??) of all your config files and data files...just reinstall the
old version that worked and all associated packages (list is at
/var/db/pkg on your backup).

Nick.



Re: Linus Torvalds thoughts on Linux Security

2015-11-07 Thread Eric Furman
Please don't encourage trolls.
This has already been discussed at length on this list to no purpose.



Linus Torvalds thoughts on Linux Security

2015-11-07 Thread Benjamin Heath
On Nov 7, 2015 9:33 PM, "Some Developer"  wrote:
>
> On 08/11/15 04:26, Eric Furman wrote:
>>
>> Please don't encourage trolls.
>> This has already been discussed at length on this list to no purpose.
>>
>
> I'm not a troll. Just saw the thread on Slashdot and thought it would be
interesting to see what other people thought.
>
> I'll refrain from posting such things in the future if the only response
I get is being called a troll (which is a really unimaginative insult by
the way).
>

He didn't. He said don't encourage them, and that this conversation has
already been had. No more or less, and no insult to you.

I personally don't mind that much. But I also appreciate a well-controlled
list that's free of noise and available for support.



Re: Linus Torvalds thoughts on Linux Security

2015-11-07 Thread Jack J. Woehr

Some Developer wrote:
I thought this might provoke a bit of a debate on this list :). What do you think of what Linus has to say about 
security?


http://linux.slashdot.org/story/15/11/06/132209/linuss-thoughts-on-linux-security


I think he knows his market and his product. Securing Linux would require undoing a lot of what Linus and Linux has 
struggled to achieve.


Linux can never return to the simplicity of OpenBSD, and simplicity is the key 
to security.

He has his space, and his clarity in defining that space is a boost to the 
entrepreneurial opportunities for OpenBSD.

--
Jack J. Woehr # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a way of skeptically interrogating the universe
www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan



Re: Linus Torvalds thoughts on Linux Security

2015-11-07 Thread Some Developer

On 08/11/15 04:26, Eric Furman wrote:

Please don't encourage trolls.
This has already been discussed at length on this list to no purpose.



I'm not a troll. Just saw the thread on Slashdot and thought it would be 
interesting to see what other people thought.


I'll refrain from posting such things in the future if the only response 
I get is being called a troll (which is a really unimaginative insult by 
the way).