Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Alex Taylor

Pages: [1] 2 3 ... 21
1
Applications / Re: anpm - yum permission denied ?
« on: May 04, 2022, 03:57:40 am »
I saw this same error (same package) when I changed my platform from i686 to pentium4 and then immediately attempted to install libc and libcx. libc started to install but then this message came up.  I suspect the change in platform may have confused things.  I did see yum apparently seemed to suddenly think that the pentium4 version of libc was installed after changing the platform.

I rebooted, after which the currently-installed libc showed as i686 again, and I was able to update it (the latest pentium4 version installed) with no further issue.

2
Applications / Re: SeaMonkey downloads and Unix permissions
« on: January 10, 2022, 03:54:08 am »
In my QE editor and a few other programs, I simply make sure that new files are created without EAs. 

More precisely, because libc creates these file permission EAs on a new file automatically, my save routines all have some logic to immediately delete them if the file was new. (I don't do that when updating an existing file because the user might actually have set them on purpose.)

e.g.
Code: [Select]
    if ( !fileExists ) {
#ifdef __OS2__
        // If this is a new file, get rid of the useless default EAs added by klibc
        deleteEA( pszFileName, (PCSZ) "UID");
        deleteEA( pszFileName, (PCSZ) "GID");
        deleteEA( pszFileName, (PCSZ) "MODE");
        deleteEA( pszFileName, (PCSZ) "INO");
        deleteEA( pszFileName, (PCSZ) "RDEV");
        deleteEA( pszFileName, (PCSZ) "GEN");
        deleteEA( pszFileName, (PCSZ) "FLAGS");
#endif
    }

Code: [Select]
unsigned long deleteEA( char *pszPathName, const char *pszEAName )
{
    PFEA2LIST pFEA2List = NULL;
    PFEA2     pFEA2 = NULL;
    EAOP2     eaop2 = {0};
    size_t    cb = 0;
    APIRET    rc = ERROR_NOT_ENOUGH_MEMORY;

    cb = sizeof( FEA2LIST ) + strlen( pszEAName );
    pFEA2List = (PFEA2LIST) calloc( cb, 1 );
    if ( pFEA2List ) {
        pFEA2List->cbList = cb;
        pFEA2 = pFEA2List->list;
        pFEA2->cbName = (BYTE) strlen( pszEAName );
        strcpy( pFEA2->szName, pszEAName );
        pFEA2->cbValue = 0;

        eaop2.fpFEA2List = pFEA2List;
        rc = DosSetPathInfo( (PCSZ) pszPathName, FIL_QUERYEASIZE,
                             (PBYTE) &eaop2, sizeof( eaop2 ), DSPI_WRTTHRU );
        free( pFEA2List );
    }
    return (unsigned long) rc;
}

3
Setup & Installation / Re: VirtualBox and Warpin (wic.exe)
« on: December 30, 2021, 03:26:52 am »
So I extracted the install script (wic -X) from the VirtualBox WPI file and listed the package (wic -l), but I have not found a way to list the specific files in the package other than extracting them with wic -x. It looks like I should be able to delete the 9 files, add the newer versions from the Guest Additions ISO, update the script (see below), and add that, as well.

Archive: "vboxadd.wpi"
WPI revision: 3
Stub size: 0 bytes
Package 1
     9 files, size:  5,107,122 bytes original
                     1,694,924 bytes compressed (67% compression)
Summary: 1 package(s), 9 files total
     5,107,122 bytes original
     1,694,924 bytes compressed (67% compression)

Put a package number at the end of the command line to see the files in that package.

Or you can use my ARCVIEW program, it will display WPI file contents.

Quote
The version string for the PACKAGEID in the install script would need to be changed:
<PCK INDEX=1 PACKAGEID="Oracle\VirtualBox\Client Additions\6\1\12"

What am I missing?

Other than updating the changed files, not much. Unless, of course, the actual required install logic needs to be changed, in which case you'll need to figure that out.

4
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 20, 2021, 03:44:14 am »
FWIW, Dmitry seems to have isolated the problem in libcn and has provided a test build (link in the quoted ticket) which appears to fix the problem here.

5
For the past several days, I have been getting redirected to a page with this error whenever I log on to OS2World.

Logon itself succeeds. I can hit Back or select the Home page link and continue from there.

6
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 19, 2021, 03:40:54 am »
OS/2 doesn't adjust to daylight saving time anyway. Of course, I can set daytime (if I run it) to take DST into account, but I wasn't running daytime while using the additions.

Mine does, what am I doing right?

Presumably, you're running either an add-on program which does this, like DSTswitch, or a network time sync utility like CLKMGR or daytime.


In any case, there has been some progress in identifying the problem here. It seems the VBox additions are not the only affected program: https://github.com/bitwiseworks/libc/issues/109

7
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 17, 2021, 01:45:10 am »
I often set the time sync of the VM to be independent of the host operating system.  To disable time sync:
Use a command line:
"C:\Program Files\Oracle\VirtualBox\VBoxManage" setextradata "arca_vm" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Unfortunately, I assume that will have much the same effect on the clock as disabling additions, meaning I can't set it up to sync when resuming the VM from pause state.  The nice thing about the additions is that the clock is constantly kept in sync and doesn't rely on running a remote sync tool at regular intervals like daytime.

It's not good to set up a remote sync tool to run every minute (or less), which is what would be needed to simulate this function in the guest.

The VM reads and presents the system time as the host operating system presents it, this means that when you install a guest system you should always instruct the guest operating system not to adjust to daylight savings time, and not to use internet time correction/lookup. It is getting the correct time from the host anyway.

Otherwise both the systems will correct themselves during DST changeovers.

OS/2 doesn't adjust to daylight saving time anyway. Of course, I can set daytime (if I run it) to take DST into account, but I wasn't running daytime while using the additions.

8
Applications / Time sync in VirtualBox guest off by 1 hour
« on: July 16, 2021, 04:19:36 am »
I'm setting up an OS/2 (ArcaOS 5.0.6) guest in VirtualBox 6.1.22 running on Windows 10. 

I've installed the OS/2 Guest Additions, which (among other things) keeps the guest time synced to the host. Except... it insists on setting the guest's time to 1 hour behind the correct time. I assume that it's failing to take DST into account.

My guest TZ value is:

TZ=EST5EDT,3,2,0,7200,11,1,0,7200,3600

which is correct, and works fine for native OS/2 time sync programs like DAYTIME.

My host (Win) is set to the UTC-5 (Eastern US & Canada) zone with daylight saving time enabled. It does show the correct time (which is one hour ahead of what the guest shows).

Has anyone seen this before, and have any ideas how to fix it? This is a real problem. I've temporarily had to disable Additions entirely but that's obviously a terrible workaround.

9
Setup & Installation / Re: A question of fonts
« on: June 14, 2021, 11:43:11 pm »
Judging by your screenshot, it actually appears to be working.

Believe it or not, that is actually the font's name that you see in the font folder.  More accurately, it's the string which the font header has in its face name field.

My command-line font header tool reports the following on this font:

Code: [Select]
FreeType 2 library initialized successfully.
Font (null) read successfully.
Names table contains 12 entries:
 0: Plat 1, Enc 3, Lang 0x2, ID  4  [4 bytes]
 1: Plat 3, Enc 1, Lang 0x409, ID  0  (U)"Copyright (c) 2016 Swiss Typefaces Sarl. All rights reserved."
 2: Plat 3, Enc 1, Lang 0x409, ID  2  (U)"¶"
 3: Plat 3, Enc 1, Lang 0x409, ID  3  (U)"Copyright (c) 2016 Swiss Typefaces Sarl. All rights reserved."
 4: Plat 3, Enc 1, Lang 0x409, ID  4  (U)"¶"
 5: Plat 3, Enc 1, Lang 0x409, ID  5  (U)"Version 1.000"
...

Strings 2 and 4 are the font name strings.

Just to verify that this isn't some bug in FreeType (which my tool uses), I opened the font in FontLab Studio and examined the header there. I confirmed it has a null value as the family name, and a single junk character as the face name.

I also notice that the font's license field says that it's licensed exclusively for the use of eBay, Inc.

I conclude that this is a special font designed for a specific application, and is not designed for general use.

10
Networking / Re: Arcamapper (SAMBA) loses connection
« on: May 28, 2021, 01:40:16 am »
I use a Synology NAS from ArcaOS with the latest ArcaMapper. (Actually, my current installed NDPSMB and Samba libraries are probably newer than what's in 5.0.6 as I have some components installed from the arcanoae-exp repo.)

I have no problems from my ArcaOS laptop browsing images on the NAS with PMView. I recently moved a lot of my DSLR photos onto the NAS and haven't had any issues.

One thing that may be worth mentioning - I have EA Support turned off for all my shares on the NAS, precisely because ext* doesn't support them to the extent OS/2 assumes. If the EAs are indeed a problem, you might be better off turning them off when mounting the share, because most programs are capable of recognizing when EAs are unavailable and acting accordingly. OTOH, if they think EAs are supported and they aren't (adequately), then I could see some things running into problems.


(Disclaimer: I work for Arca Noae, so you might not take my assurances as perfectly objective, although I assure you they are perfectly sincere.)

11
Web applications / Re: QT5 simplebrowser
« on: February 21, 2021, 06:53:54 pm »
Looks like libevent is what you want:

[C:\]yum provides */evnt*
libevent-2.1.11-2.oc00.i686 : Abstract asynchronous event notification library
Repo        : netlabs-rel
Matched from:
Filename    : /@unixroot/usr/lib/evnto217.dll
Filename    : /@unixroot/usr/lib/evnte217.dll
Filename    : /@unixroot/usr/lib/evntc217.dll
Filename    : /@unixroot/usr/lib/evnt217.dll
Filename    : /@unixroot/usr/lib/evntp217.dll

12
Networking / Re: OpenSSH_7.7p1 tcgetattr: Invalid argument
« on: January 28, 2021, 01:38:40 pm »
The SSHD port has always been a bit rough around the edges. Make sure your TERM setting is something reasonable, whatever the documentation recommends or perhaps 'os2'.

Also see what your login shell is: CMD, TNPIPE, or VIOROUTE. If one of those doesn't work well, try one of the others.  (I always found TNPIPE seemed to work most smoothly, but it has some limitations.)

13
Multimedia / Re: Updated Uniaud32 build
« on: January 24, 2021, 06:37:18 pm »
No significant changes - mainly updated some libraries to the latest kernel (rbtree, regmap, regcache) and some code cleanups from AlexT

?? ???

14
I need to take a couple of ICO (icon) files and convert them to an OS/2 BMP format. Seems easy enough, right?

Well, my problem is that doing the conversion does not preserve the ICON's background transparency...why not?

That's because unlike ICO, the BMP format doesn't support transparency.


Quote
So if transparent BMP is off the table, what's the easiest way for me to apply a particular colour as background to an ICO file so it's still preserved in the BMP image itself?

Sure. Open the Icon Editor, choose File -> New and select the Bitmap format, with a size identical to the icon you want.  Then open the icon in another instance of Icon Editor, use the fill tool to fill in the background colour you want, and then choose Edit -> Select All and Edit -> Copy, then paste it into the instance which has the bitmap open. Then save the bitmap.


15
Applications / Re: PMView - colour vibrancy gone after save?
« on: November 23, 2020, 04:57:41 am »
My understanding is that saving as JPEG (more accurately, JFIF) with "100%" quality does not mean lossless compression.  It means (approximately speaking) 100% of the possible fidelity available using the lossy JPEG compression.  Or, to put it another way, "the least amount of loss possible". You will still lose image quality. (You may also quite possibly end up with a larger image than you would have using PNG.)

That said, there is apparently a (non-JFIF) JPEG standard for lossless compression, but AIUI it uses a different file format and is not commonly used or implemented.

Pages: [1] 2 3 ... 21